fix lint
This commit is contained in:
parent
cd3fa2a709
commit
3b95f5881f
|
@ -42,13 +42,12 @@ describe Auth::ContainerRegistryAuthenticationService do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
shared_examples 'a browsable' do
|
shared_examples 'a browsable' do
|
||||||
let(:access) do
|
let(:access) do
|
||||||
[{ 'type' => 'registry',
|
[{ 'type' => 'registry',
|
||||||
'name' => 'catalog',
|
'name' => 'catalog',
|
||||||
'actions' => ['*']
|
'actions' => ['*'] }]
|
||||||
}]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'a valid token'
|
it_behaves_like 'a valid token'
|
||||||
|
@ -140,7 +139,7 @@ describe Auth::ContainerRegistryAuthenticationService do
|
||||||
it_behaves_like 'not a container repository factory'
|
it_behaves_like 'not a container repository factory'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'for private project' do
|
context 'for private project' do
|
||||||
let(:project) { create(:project) }
|
let(:project) { create(:project) }
|
||||||
|
|
||||||
|
@ -521,7 +520,6 @@ describe Auth::ContainerRegistryAuthenticationService do
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'a browsable'
|
it_behaves_like 'a browsable'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'unauthorized' do
|
context 'unauthorized' do
|
||||||
|
@ -578,6 +576,5 @@ describe Auth::ContainerRegistryAuthenticationService do
|
||||||
it_behaves_like 'a forbidden'
|
it_behaves_like 'a forbidden'
|
||||||
it_behaves_like 'not a container repository factory'
|
it_behaves_like 'not a container repository factory'
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue