forked from pmenglund/vcap-tests
/
application_lifecycle_control.feature
34 lines (28 loc) · 1.1 KB
/
application_lifecycle_control.feature
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
Feature: Control the life-cycle of an application on AppCloud
As a user of AppCloud
I want to create, query status of, start, stop, and delete an application
Background: Application creation
Given I have registered and logged in
@creates_simple_app
Scenario: create application
When I create a simple application
Then I should have my application on AppCloud
But it should not be started
@creates_simple_app
Scenario: start application
Given I have my simple application on AppCloud
When I upload my application
And I start my application
Then it should be started
And it should be available for use
@creates_simple_app
Scenario: stop application
Given I have deployed a simple application
When I stop my application
Then it should be stopped
And it should not be available for use
@creates_simple_app
Scenario: delete application
Given I have my simple application on AppCloud
When I delete my application
Then it should not be on AppCloud