BigW Consortium Gitlab

Commit b408a192 by Andre Guedes

Adding mock for full_access_token

parent 164ef8a3
...@@ -11,6 +11,7 @@ FactoryGirl.define do ...@@ -11,6 +11,7 @@ FactoryGirl.define do
after(:build) do |image, evaluator| after(:build) do |image, evaluator|
if evaluator.stubbed if evaluator.stubbed
allow(Gitlab.config.registry).to receive(:enabled).and_return(true) 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({ allow(image.client).to receive(:repository_tags).and_return({
name: image.name_with_namespace, name: image.name_with_namespace,
tags: evaluator.tags tags: evaluator.tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment