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
iv
gitlab-ce
Commits
4b18162b
Commit
4b18162b
authored
Feb 08, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build/permissions.feature tests adding missing steps
parent
447f1e30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
features/project/builds/permissions.feature
features/project/builds/permissions.feature
+3
-3
features/steps/shared/builds.rb
features/steps/shared/builds.rb
+4
-0
No files found.
features/project/builds/permissions.feature
View file @
4b18162b
...
...
@@ -7,7 +7,7 @@ Feature: Project Builds Permissions
Scenario
:
I
try to visit build details as guest
Given
I am member of a project with a guest role
When
I visit recent build
details
page
When
I visit recent build
summary
page
Then
page status code should be 404
Scenario
:
I
try to visit project builds page as guest
...
...
@@ -18,7 +18,7 @@ Feature: Project Builds Permissions
Scenario
:
I
try to visit build details of internal project without access to builds
Given
The project is internal
And
public access for builds is disabled
When
I visit recent build
details
page
When
I visit recent build
summary
page
Then
page status code should be 404
Scenario
:
I
try to visit internal project builds page without access to builds
...
...
@@ -30,7 +30,7 @@ Feature: Project Builds Permissions
Scenario
:
I
try to visit build details of internal project with access to builds
Given
The project is internal
And
public access for builds is enabled
When
I visit recent build
details
page
When
I visit recent build
summary
page
Then
I see details of a build
And
I see build trace
...
...
features/steps/shared/builds.rb
View file @
4b18162b
...
...
@@ -14,6 +14,10 @@ module SharedBuilds
visit
namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
)
end
step
'I visit project builds page'
do
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
)
end
step
'recent build has artifacts available'
do
artifacts
=
Rails
.
root
+
'spec/fixtures/ci_build_artifacts.zip'
archive
=
fixture_file_upload
(
artifacts
,
'application/zip'
)
...
...
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