Adding mock for full_access_token
This commit is contained in:
parent
164ef8a348
commit
b408a192e0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue