summaryrefslogtreecommitdiff
path: root/features/project/builds/permissions.feature
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-15 13:56:43 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-15 13:56:43 +0100
commit6a504c8256fe5281819cc0a6dc916230f4203c7c (patch)
tree5bf1440cfc58494ed4476fff74caec016b193a20 /features/project/builds/permissions.feature
parent6b2f38f39a473e6791b39e61645d76638d4bd673 (diff)
downloadgitlab-ce-6a504c8256fe5281819cc0a6dc916230f4203c7c.tar.gz
Add feature tests for permissions for build artifacts read abilityfeature/allow-artifacts-for-reporters
Diffstat (limited to 'features/project/builds/permissions.feature')
-rw-r--r--features/project/builds/permissions.feature18
1 files changed, 18 insertions, 0 deletions
diff --git a/features/project/builds/permissions.feature b/features/project/builds/permissions.feature
new file mode 100644
index 00000000000..1193bcd74f6
--- /dev/null
+++ b/features/project/builds/permissions.feature
@@ -0,0 +1,18 @@
+Feature: Project Builds Permissions
+ Background:
+ Given I sign in as a user
+ And project exists in some group namespace
+ And project has CI enabled
+ And project has a recent build
+
+ Scenario: I try to download build artifacts as guest
+ Given I am member of a project with a guest role
+ And recent build has artifacts available
+ When I access artifacts download page
+ Then page status code should be 404
+
+ Scenario: I try to download build artifacts as reporter
+ Given I am member of a project with a reporter role
+ And recent build has artifacts available
+ When I access artifacts download page
+ Then download of build artifacts archive starts