diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-07-27 19:56:33 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-03 13:08:36 +0200 |
commit | 392113919adc75ba1537d89a0de8d0641e24d5b8 (patch) | |
tree | 79c4e5a802592024b3d6621afe4c052bea77ad4e /features/project | |
parent | 551145bc98e257280b615e305d531a44d7aa4131 (diff) | |
download | gitlab-ce-392113919adc75ba1537d89a0de8d0641e24d5b8.tar.gz |
Validate tag-names and references in WebUI, API
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/commits/branches.feature | 8 | ||||
-rw-r--r-- | features/project/commits/tags.feature | 20 |
2 files changed, 24 insertions, 4 deletions
diff --git a/features/project/commits/branches.feature b/features/project/commits/branches.feature index 6725a697c21..d124cb7eecd 100644 --- a/features/project/commits/branches.feature +++ b/features/project/commits/branches.feature @@ -15,7 +15,7 @@ Feature: Project Browse branches Scenario: I create a branch Given I visit project branches page And I click new branch link - When I submit new branch form + And I submit new branch form Then I should see new branch created @javascript @@ -27,17 +27,17 @@ Feature: Project Browse branches Scenario: I create a branch with invalid name Given I visit project branches page And I click new branch link - When I submit new branch form with invalid name + And I submit new branch form with invalid name Then I should see new an error that branch is invalid Scenario: I create a branch with invalid reference Given I visit project branches page And I click new branch link - When I submit new branch form with invalid reference + And I submit new branch form with invalid reference Then I should see new an error that ref is invalid Scenario: I create a branch that already exists Given I visit project branches page And I click new branch link - When I submit new branch form with branch that already exists + And I submit new branch form with branch that already exists Then I should see new an error that branch already exists diff --git a/features/project/commits/tags.feature b/features/project/commits/tags.feature index 1ac0f8bfa45..36c7a6492ff 100644 --- a/features/project/commits/tags.feature +++ b/features/project/commits/tags.feature @@ -7,5 +7,25 @@ Feature: Project Browse tags Scenario: I can see all git tags Then I should see "Shop" all tags list + Scenario: I create a tag + And I click new tag link + And I submit new tag form + Then I should see new tag created + + Scenario: I create a tag with invalid name + And I click new tag link + And I submit new tag form with invalid name + Then I should see new an error that tag is invalid + + Scenario: I create a tag with invalid reference + And I click new tag link + And I submit new tag form with invalid reference + Then I should see new an error that tag ref is invalid + + Scenario: I create a tag that already exists + And I click new tag link + And I submit new tag form with tag that already exists + Then I should see new an error that tag already exists + # @wip # Scenario: I can download project by tag |