diff options
author | Andre Guedes <andrebsguedes@gmail.com> | 2016-12-16 12:07:20 -0200 |
---|---|---|
committer | Andre Guedes <andrebsguedes@gmail.com> | 2017-02-22 11:30:11 -0300 |
commit | b408a192e0fbf630d4f9a4112f6835be50a681d8 (patch) | |
tree | 69bf53a3cde20f46b755850e775813f27d0db500 /spec/factories | |
parent | 164ef8a348cac86097313bc453493ccf739adffe (diff) | |
download | gitlab-ce-b408a192e0fbf630d4f9a4112f6835be50a681d8.tar.gz |
Adding mock for full_access_token
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/container_images.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/factories/container_images.rb b/spec/factories/container_images.rb index 6141a519a75..3693865101d 100644 --- a/spec/factories/container_images.rb +++ b/spec/factories/container_images.rb @@ -11,6 +11,7 @@ FactoryGirl.define do after(:build) do |image, evaluator| if evaluator.stubbed allow(Gitlab.config.registry).to receive(:enabled).and_return(true) + allow(Auth::ContainerRegistryAuthenticationService).to receive(:full_access_token).and_return('token') allow(image.client).to receive(:repository_tags).and_return({ name: image.name_with_namespace, tags: evaluator.tags |