BigW Consortium Gitlab

permissions.feature 1.98 KB
Newer Older
1 2 3 4 5 6 7
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

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  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
    Then page status code should be 404

  Scenario: I try to visit project builds page as guest
    Given I am member of a project with a guest role
    When I visit project builds page
    Then page status code should be 404

  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
    Then page status code should be 404

  Scenario: I try to visit internal project builds page without access to builds
    Given The project is internal
    And public access for builds is disabled
    When I visit project builds page
    Then page status code should be 404

  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
    Then I see details of a build
    And I see build trace

  Scenario: I try to visit internal project builds page with access to builds
    Given The project is internal
    And public access for builds is enabled
    When I visit project builds page
    Then I see the build

43 44 45 46 47 48 49 50 51 52 53
  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