Commit 3d744009 authored by Vratislav Kalenda's avatar Vratislav Kalenda

fix code style issues

parent 2420d838
...@@ -52,7 +52,10 @@ describe Auth::ContainerRegistryAuthenticationService do ...@@ -52,7 +52,10 @@ describe Auth::ContainerRegistryAuthenticationService do
it_behaves_like 'a valid token' it_behaves_like 'a valid token'
it_behaves_like 'not a container repository factory' it_behaves_like 'not a container repository factory'
it { expect(payload).to include('access' => access) }
it 'has the correct scope' do
expect(payload).to include('access' => access)
end
end end
shared_examples 'an accessible' do shared_examples 'an accessible' do
...@@ -63,7 +66,10 @@ describe Auth::ContainerRegistryAuthenticationService do ...@@ -63,7 +66,10 @@ describe Auth::ContainerRegistryAuthenticationService do
end end
it_behaves_like 'a valid token' it_behaves_like 'a valid token'
it { expect(payload).to include('access' => access) }
it 'has the correct scope' do
expect(payload).to include('access' => access)
end
end end
shared_examples 'an inaccessible' do shared_examples 'an inaccessible' do
...@@ -515,6 +521,7 @@ describe Auth::ContainerRegistryAuthenticationService do ...@@ -515,6 +521,7 @@ describe Auth::ContainerRegistryAuthenticationService do
context 'registry catalog browsing authorized as admin' do context 'registry catalog browsing authorized as admin' do
let(:current_user) { create(:user, :admin) } let(:current_user) { create(:user, :admin) }
let(:current_params) do let(:current_params) do
{ scope: "registry:catalog:*" } { scope: "registry:catalog:*" }
end end
...@@ -573,6 +580,7 @@ describe Auth::ContainerRegistryAuthenticationService do ...@@ -573,6 +580,7 @@ describe Auth::ContainerRegistryAuthenticationService do
let(:current_params) do let(:current_params) do
{ scope: "registry:catalog:*" } { scope: "registry:catalog:*" }
end end
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
......
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