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
98bea4b1
Commit
98bea4b1
authored
Mar 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updatev security tests since admin is a superuser now. Has access to any project
parent
c610347c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
spec/features/security/project_access_spec.rb
spec/features/security/project_access_spec.rb
+17
-17
No files found.
spec/features/security/project_access_spec.rb
View file @
98bea4b1
...
...
@@ -33,7 +33,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -44,7 +44,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -55,7 +55,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -66,7 +66,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -77,7 +77,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -88,7 +88,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -99,7 +99,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -114,7 +114,7 @@ describe "Application access" do
it
{
@blob_path
.
should
be_allowed_for
master
}
it
{
@blob_path
.
should
be_allowed_for
reporter
}
it
{
@blob_path
.
should
be_
deni
ed_for
:admin
}
it
{
@blob_path
.
should
be_
allow
ed_for
:admin
}
it
{
@blob_path
.
should
be_denied_for
guest
}
it
{
@blob_path
.
should
be_denied_for
:user
}
it
{
@blob_path
.
should
be_denied_for
:visitor
}
...
...
@@ -125,7 +125,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_denied_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -136,7 +136,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_denied_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -147,7 +147,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -158,7 +158,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -169,7 +169,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -180,7 +180,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -196,7 +196,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -212,7 +212,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
@@ -223,7 +223,7 @@ describe "Application access" do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_
deni
ed_for
:admin
}
it
{
should
be_
allow
ed_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
...
...
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