diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-03 15:52:24 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-03 15:52:24 +0200 |
commit | baa00d542478759be225a45dc805d0314e1921d2 (patch) | |
tree | 8a959e57256764f536fe36db0b6876171843b70d /spec/features/security | |
parent | 0af4cbc57266cd7d2c433442c537da5c8970a3da (diff) | |
download | gitlab-ce-baa00d542478759be225a45dc805d0314e1921d2.tar.gz |
Refactor container registry repository tag stubs
Diffstat (limited to 'spec/features/security')
-rw-r--r-- | spec/features/security/project/internal_access_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/security/project/private_access_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/security/project/public_access_spec.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/security/project/internal_access_spec.rb b/spec/features/security/project/internal_access_spec.rb index a961d8b4f69..6ecdc8cbb71 100644 --- a/spec/features/security/project/internal_access_spec.rb +++ b/spec/features/security/project/internal_access_spec.rb @@ -446,7 +446,7 @@ describe "Internal Project Access", feature: true do let(:container_repository) { create(:container_repository) } before do - stub_container_registry_tags('latest') + stub_container_registry_tags(repository: :any, tags: ['latest']) stub_container_registry_config(enabled: true) project.container_repositories << container_repository end diff --git a/spec/features/security/project/private_access_spec.rb b/spec/features/security/project/private_access_spec.rb index b7e42e67d82..a8fc0624588 100644 --- a/spec/features/security/project/private_access_spec.rb +++ b/spec/features/security/project/private_access_spec.rb @@ -435,7 +435,7 @@ describe "Private Project Access", feature: true do let(:container_repository) { create(:container_repository) } before do - stub_container_registry_tags('latest') + stub_container_registry_tags(repository: :any, tags: ['latest']) stub_container_registry_config(enabled: true) project.container_repositories << container_repository end diff --git a/spec/features/security/project/public_access_spec.rb b/spec/features/security/project/public_access_spec.rb index 02660984b29..08cf2bf5291 100644 --- a/spec/features/security/project/public_access_spec.rb +++ b/spec/features/security/project/public_access_spec.rb @@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do let(:container_repository) { create(:container_repository) } before do - stub_container_registry_tags('latest') + stub_container_registry_tags(repository: :any, tags:['latest']) stub_container_registry_config(enabled: true) project.container_repositories << container_repository end |