summaryrefslogtreecommitdiff
path: root/features/project/deploy_keys.feature
blob: 47cf774094f6492fbb1d04cfad45bd2535ecfbf8 (plain)
1
2
3
4
5
6
7
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
Feature: Project Deploy Keys
  Background:
    Given I sign in as a user
    And I own project "Shop"

  Scenario: I should see deploy keys list
    Given project has deploy key
    When I visit project deploy keys page
    Then I should see project deploy key

  Scenario: I should see project deploy keys
    Given other projects have deploy keys
    When I visit project deploy keys page
    Then I should see other project deploy key
    And I should only see the same deploy key once

  Scenario: I should see public deploy keys
    Given public deploy key exists
    When I visit project deploy keys page
    Then I should see public deploy key

  Scenario: I add new deploy key
    Given I visit project deploy keys page
    When I click 'New Deploy Key'
    And I submit new deploy key
    Then I should be on deploy keys page
    And I should see newly created deploy key

  Scenario: I attach other project deploy key to project
    Given other projects have deploy keys
    And I visit project deploy keys page
    When I click attach deploy key
    Then I should be on deploy keys page
    And I should see newly created deploy key

  Scenario: I attach public deploy key to project
    Given public deploy key exists
    And I visit project deploy keys page
    When I click attach deploy key
    Then I should be on deploy keys page
    And I should see newly created deploy key