diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-02 00:13:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-02 00:13:36 +0300 |
commit | e415571a6e766e961cd49a0ac92576c460a49e4d (patch) | |
tree | ac24a689ea599cb1ef4ff2dcea38984e8b5502c8 /spec/requests | |
parent | 68ce709bef9bc89bbb9869e24508777bbe0a1a1d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/graphql/mutations/packages/protection/rule/create_spec.rb | 2 | ||||
-rw-r--r-- | spec/requests/api/graphql/mutations/packages/protection/rule/delete_spec.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/requests/api/graphql/mutations/packages/protection/rule/create_spec.rb b/spec/requests/api/graphql/mutations/packages/protection/rule/create_spec.rb index aff398d66e2..ae5b6a5af95 100644 --- a/spec/requests/api/graphql/mutations/packages/protection/rule/create_spec.rb +++ b/spec/requests/api/graphql/mutations/packages/protection/rule/create_spec.rb @@ -23,6 +23,7 @@ RSpec.describe 'Creating the packages protection rule', :aggregate_failures, fea graphql_mutation(:create_packages_protection_rule, kwargs, <<~QUERY packageProtectionRule { + id packageNamePattern packageType pushProtectedUpToAccessLevel @@ -52,6 +53,7 @@ RSpec.describe 'Creating the packages protection rule', :aggregate_failures, fea subject expect(mutation_response_package_protection_rule).to include( + 'id' => be_present, 'packageNamePattern' => kwargs[:package_name_pattern], 'packageType' => kwargs[:package_type], 'pushProtectedUpToAccessLevel' => kwargs[:push_protected_up_to_access_level] diff --git a/spec/requests/api/graphql/mutations/packages/protection/rule/delete_spec.rb b/spec/requests/api/graphql/mutations/packages/protection/rule/delete_spec.rb index d5b602d4664..1d94d520674 100644 --- a/spec/requests/api/graphql/mutations/packages/protection/rule/delete_spec.rb +++ b/spec/requests/api/graphql/mutations/packages/protection/rule/delete_spec.rb @@ -26,11 +26,13 @@ RSpec.describe 'Deleting a package protection rule', :aggregate_failures, featur subject expect(mutation_response).to include( + 'errors' => be_blank, 'packageProtectionRule' => { + 'id' => package_protection_rule.to_global_id.to_s, 'packageNamePattern' => package_protection_rule.package_name_pattern, 'packageType' => package_protection_rule.package_type.upcase, 'pushProtectedUpToAccessLevel' => package_protection_rule.push_protected_up_to_access_level.upcase - }, 'errors' => be_blank + } ) end |