Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
spec/services/auth/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