diff options
author | Valery Sizov <valery@gitlab.com> | 2019-08-01 15:03:08 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2019-08-01 20:38:07 +0300 |
commit | f519a4b72f81a1e3c81e5e684d236bbe30e0dd2d (patch) | |
tree | 469cbc073884f0a8f30ae7fd474b699c4ac47c13 /spec/services/auth | |
parent | beb7d8922746942f1f4108108b04859ba61ea1ea (diff) |
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809
Introducing Docker Registry replication
Diffstat (limited to 'spec/services/auth')
-rw-r--r-- | spec/services/auth/container_registry_authentication_service_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/services/auth/container_registry_authentication_service_spec.rb b/spec/services/auth/container_registry_authentication_service_spec.rb index 4f4776bbb27..3ca389ba25b 100644 --- a/spec/services/auth/container_registry_authentication_service_spec.rb +++ b/spec/services/auth/container_registry_authentication_service_spec.rb @@ -145,6 +145,19 @@ describe Auth::ContainerRegistryAuthenticationService do it_behaves_like 'not a container repository factory' end + describe '#pull_access_token' do + let(:project) { create(:project) } + let(:token) { described_class.pull_access_token(project.full_path) } + + subject { { token: token } } + + it_behaves_like 'an accessible' do + let(:actions) { ['pull'] } + end + + it_behaves_like 'not a container repository factory' + end + context 'user authorization' do let(:current_user) { create(:user) } |