Adding mock for full_access_token

This commit is contained in:
Andre Guedes 2016-12-16 12:07:20 -02:00
parent 164ef8a348
commit b408a192e0

View file

@ -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