summaryrefslogtreecommitdiff
path: root/features/project
diff options
context:
space:
mode:
Diffstat (limited to 'features/project')
-rw-r--r--features/project/builds/artifacts.feature4
-rw-r--r--features/project/builds/permissions.feature18
-rw-r--r--features/project/builds/summary.feature4
3 files changed, 22 insertions, 4 deletions
diff --git a/features/project/builds/artifacts.feature b/features/project/builds/artifacts.feature
index b624a0bdb58..7a7dbb71b18 100644
--- a/features/project/builds/artifacts.feature
+++ b/features/project/builds/artifacts.feature
@@ -2,8 +2,8 @@ Feature: Project Builds Artifacts
Background:
Given I sign in as a user
And I own a project
- And CI is enabled
- And I have recent build for my project
+ And project has CI enabled
+ And project has a recent build
Scenario: I download build artifacts
Given recent build has artifacts available
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
diff --git a/features/project/builds/summary.feature b/features/project/builds/summary.feature
index 5e938ea090e..e90ea592aab 100644
--- a/features/project/builds/summary.feature
+++ b/features/project/builds/summary.feature
@@ -2,8 +2,8 @@ Feature: Project Builds Summary
Background:
Given I sign in as a user
And I own a project
- And CI is enabled
- And I have recent build for my project
+ And project has CI enabled
+ And project has a recent build
Scenario: I browse build summary page
When I visit recent build summary page