BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3d744009
Commit
3d744009
authored
Oct 10, 2017
by
Vratislav Kalenda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code style issues
parent
2420d838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
container_registry_authentication_service_spec.rb
...es/auth/container_registry_authentication_service_spec.rb
+10
-2
No files found.
spec/services/auth/container_registry_authentication_service_spec.rb
View file @
3d744009
...
...
@@ -52,7 +52,10 @@ describe Auth::ContainerRegistryAuthenticationService do
it_behaves_like
'a valid token'
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
shared_examples
'an accessible'
do
...
...
@@ -63,7 +66,10 @@ describe Auth::ContainerRegistryAuthenticationService do
end
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
shared_examples
'an inaccessible'
do
...
...
@@ -515,6 +521,7 @@ describe Auth::ContainerRegistryAuthenticationService do
context
'registry catalog browsing authorized as admin'
do
let
(
:current_user
)
{
create
(
:user
,
:admin
)
}
let
(
:current_params
)
do
{
scope:
"registry:catalog:*"
}
end
...
...
@@ -573,6 +580,7 @@ describe Auth::ContainerRegistryAuthenticationService do
let
(
:current_params
)
do
{
scope:
"registry:catalog:*"
}
end
it_behaves_like
'a forbidden'
it_behaves_like
'not a container repository factory'
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment