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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3b95f588
Commit
3b95f588
authored
Oct 08, 2017
by
Vratislav Kalenda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint
parent
cd3fa2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
spec/services/auth/container_registry_authentication_service_spec.rb
...es/auth/container_registry_authentication_service_spec.rb
+3
-6
No files found.
spec/services/auth/container_registry_authentication_service_spec.rb
View file @
3b95f588
...
@@ -42,13 +42,12 @@ describe Auth::ContainerRegistryAuthenticationService do
...
@@ -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
...
@@ -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
...
@@ -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
...
@@ -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
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