Commit ac414a540a0d200ae14da7339966ba5c5d8fc42c
Committed by
Paulo Meireles
1 parent
bfd5375b
Exists in
master
and in
29 other branches
[Mezuro] Removed outdated script file and renamed project feature
Showing
3 changed files
with
65 additions
and
76 deletions
Show diff stats
plugins/mezuro/features/call_monkey_server.sh
@@ -1,11 +0,0 @@ | @@ -1,11 +0,0 @@ | ||
1 | -#!/bin/bash | ||
2 | - | ||
3 | -MONKEY_SERVER_ADDRESS="localhost" | ||
4 | -MONKEY_SERVER_PORT=50688 | ||
5 | - | ||
6 | -# Ignore errors from all commands | ||
7 | -trap "" ERR | ||
8 | - | ||
9 | -exec 5<>/dev/tcp/$MONKEY_SERVER_ADDRESS/$MONKEY_SERVER_PORT | ||
10 | -echo "SCENARIO $1" >&5 | ||
11 | -echo "Calling monkey-server in Scenario $1" |
plugins/mezuro/features/creating_project.feature
@@ -1,65 +0,0 @@ | @@ -1,65 +0,0 @@ | ||
1 | -@mezuro | ||
2 | -Feature: Create project | ||
3 | - As a mezuro user | ||
4 | - I want to create a Mezuro project | ||
5 | - | ||
6 | - Background: | ||
7 | - Given the following users | ||
8 | - | login | name | | ||
9 | - | joaosilva | Joao Silva | | ||
10 | - And I am logged in as "joaosilva" | ||
11 | - And "Mezuro" plugin is enabled | ||
12 | - And the following community | ||
13 | - | identifier | name | | ||
14 | - | mycommunity | My Community | | ||
15 | - And "Joao Silva" is admin of "My Community" | ||
16 | - | ||
17 | - Scenario: I see Mezuro project's input form | ||
18 | - Given I am on mycommunity's control panel | ||
19 | - When I follow "Mezuro project" | ||
20 | - Then I should see "Title" | ||
21 | - And I should see "Description" | ||
22 | - | ||
23 | - Scenario: I create a Mezuro project with valid attributes | ||
24 | - Given I am on mycommunity's control panel | ||
25 | - When I create a Mezuro project with the following data | ||
26 | - | Title | Sample Project | | ||
27 | - | Description | Sample Description | | ||
28 | - Then I should see "Sample Project" | ||
29 | - And I should see "Sample Description" | ||
30 | - And I should see "Add Repository" | ||
31 | - | ||
32 | - @selenium | ||
33 | - Scenario: I edit a Mezuro project | ||
34 | - Given I am on mycommunity's control panel | ||
35 | - When I create a Mezuro project with the following data | ||
36 | - | Title | Sample Project | | ||
37 | - | Description | Sample Description | | ||
38 | - And I am on article "Sample Project" | ||
39 | - And I should be on /mycommunity/sample-project | ||
40 | - When I follow "Edit" | ||
41 | - | ||
42 | - @selenium | ||
43 | - Scenario: I delete a Mezuro project that belongs to me | ||
44 | - Given the following Mezuro project | ||
45 | - | name | description | owner | | ||
46 | - | Sample Project | Sample Description | joaosilva | | ||
47 | - And I am on article "Sample Project" | ||
48 | - And I should be on /joaosilva/sample-project | ||
49 | - When I follow "Delete" | ||
50 | - And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | ||
51 | - Then I go to /joaosilva/sample-project | ||
52 | - And I should see "There is no such page: /joaosilva/sample-project" | ||
53 | - | ||
54 | - @selenium | ||
55 | - Scenario: I cannot delete a Mezuro project that doesn't belong to me | ||
56 | - Given the following Mezuro project | ||
57 | - | name | description | owner | | ||
58 | - | Sample Project | Sample Description | joaosilva | | ||
59 | - And I am on article "Sample Project" | ||
60 | - And I should be on /joaosilva/sample-project | ||
61 | - When I follow "Delete" | ||
62 | - And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | ||
63 | - Then I go to /joaosilva/sample-project | ||
64 | - And I should see "There is no such page: /joaosilva/sample-project" | ||
65 | - |
@@ -0,0 +1,65 @@ | @@ -0,0 +1,65 @@ | ||
1 | +@mezuro | ||
2 | +Feature: Project | ||
3 | + As a mezuro user | ||
4 | + I want to create, edit and remove a Mezuro project | ||
5 | + | ||
6 | + Background: | ||
7 | + Given the following users | ||
8 | + | login | name | | ||
9 | + | joaosilva | Joao Silva | | ||
10 | + And I am logged in as "joaosilva" | ||
11 | + And "Mezuro" plugin is enabled | ||
12 | + And the following community | ||
13 | + | identifier | name | | ||
14 | + | mycommunity | My Community | | ||
15 | + And "Joao Silva" is admin of "My Community" | ||
16 | + | ||
17 | + Scenario: I see Mezuro project's input form | ||
18 | + Given I am on mycommunity's control panel | ||
19 | + When I follow "Mezuro project" | ||
20 | + Then I should see "Title" | ||
21 | + And I should see "Description" | ||
22 | + | ||
23 | + Scenario: I create a Mezuro project with valid attributes | ||
24 | + Given I am on mycommunity's control panel | ||
25 | + When I create a Mezuro project with the following data | ||
26 | + | Title | Sample Project | | ||
27 | + | Description | Sample Description | | ||
28 | + Then I should see "Sample Project" | ||
29 | + And I should see "Sample Description" | ||
30 | + And I should see "Add Repository" | ||
31 | + | ||
32 | + @selenium | ||
33 | + Scenario: I edit a Mezuro project | ||
34 | + Given I am on mycommunity's control panel | ||
35 | + When I create a Mezuro project with the following data | ||
36 | + | Title | Sample Project | | ||
37 | + | Description | Sample Description | | ||
38 | + And I am on article "Sample Project" | ||
39 | + And I should be on /mycommunity/sample-project | ||
40 | + When I follow "Edit" | ||
41 | + | ||
42 | + @selenium | ||
43 | + Scenario: I delete a Mezuro project that belongs to me | ||
44 | + Given the following Mezuro project | ||
45 | + | name | description | owner | | ||
46 | + | Sample Project | Sample Description | joaosilva | | ||
47 | + And I am on article "Sample Project" | ||
48 | + And I should be on /joaosilva/sample-project | ||
49 | + When I follow "Delete" | ||
50 | + And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | ||
51 | + Then I go to /joaosilva/sample-project | ||
52 | + And I should see "There is no such page: /joaosilva/sample-project" | ||
53 | + | ||
54 | + @selenium | ||
55 | + Scenario: I cannot delete a Mezuro project that doesn't belong to me | ||
56 | + Given the following Mezuro project | ||
57 | + | name | description | owner | | ||
58 | + | Sample Project | Sample Description | joaosilva | | ||
59 | + And I am on article "Sample Project" | ||
60 | + And I should be on /joaosilva/sample-project | ||
61 | + When I follow "Delete" | ||
62 | + And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | ||
63 | + Then I go to /joaosilva/sample-project | ||
64 | + And I should see "There is no such page: /joaosilva/sample-project" | ||
65 | + |