summaryrefslogtreecommitdiff
path: root/spec/features/security
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 15:52:24 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 15:52:24 +0200
commitbaa00d542478759be225a45dc805d0314e1921d2 (patch)
tree8a959e57256764f536fe36db0b6876171843b70d /spec/features/security
parent0af4cbc57266cd7d2c433442c537da5c8970a3da (diff)
downloadgitlab-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.rb2
-rw-r--r--spec/features/security/project/private_access_spec.rb2
-rw-r--r--spec/features/security/project/public_access_spec.rb2
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