Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 108 lines (96 sloc) 6.009 kb
85d458e BVT for Postgres user/role issue
figo authored
1 @canonical @sinatra @ruby @services
2 Feature: Deploy the sinatra canonical app and check that services can be rebound
3
4 As a user with all canonical apps.
5 I want to deploy all canonical apps and ensure all services can be rebound
6
7 Background: Deploy canonical service for rebinding test
8 Given I have registered and logged in
9 Given I have deployed my application named app_sinatra_service
10 Given I have deployed my application named app_sinatra_service identified by app2
11
12 @mysql
13 Scenario: Verify rebinding for mysql
e3c38b5 @kushmerick Service-rebinding tests disable themselves if service isn't available
kushmerick authored
14 Given that the mysql service is available
85d458e BVT for Postgres user/role issue
figo authored
15 Given I have my running application named app_sinatra_service
16 When I provision mysql service
17 Then I post mysqlabc to mysql service with key abc
18 Then I should be able to create a table named foobar_table in the mysql service
19 Then I should be able to create a function named foobar_function in the mysql service
20 Then I should be able to create a procedure named foobar_procedure in the mysql service
21 Then I unbind the service from my app
22 Then I bind the service to my app
23 Then I should be able to get from mysql service with key abc, and I should see mysqlabc
24 Then I post mysqldef to mysql service with key def
25 Then I should be able to get from mysql service with key def, and I should see mysqldef
26 Then I should be able to drop the table named foobar_table from the mysql service
27 Then I should be able to drop the function named foobar_function from the mysql service
28 Then I should be able to drop the procedure named foobar_procedure from the mysql service
29
30 @mysql
31 Scenario: Cleanup after verifying rebinding for mysql
32 Then I delete my service
33
34 @mysql
35 Scenario: Verify binding mysql to two applications
e3c38b5 @kushmerick Service-rebinding tests disable themselves if service isn't available
kushmerick authored
36 Given that the mysql service is available
85d458e BVT for Postgres user/role issue
figo authored
37 Given I have my running application named app_sinatra_service
38 When I provision mysql service
39 Given I have my running application named app_sinatra_service identified by app2
40 Then I bind the service to my app
41 Given I have my running application named app_sinatra_service
42 Then I post mysqlabc to mysql service with key abc
43 Then I should be able to create a table named foobar_table in the mysql service
44 Then I should be able to create a function named foobar_function in the mysql service
45 Then I should be able to create a procedure named foobar_procedure in the mysql service
46 Given I have my running application named app_sinatra_service identified by app2
47 Then I should be able to get from mysql service with key abc, and I should see mysqlabc
48 Then I should be able to drop the table named foobar_table from the mysql service
49 Then I should be able to drop the function named foobar_function from the mysql service
50 Then I should be able to drop the procedure named foobar_procedure from the mysql service
51
52 @mysql
53 Scenario: Cleanup after verifying binding mysql to two applications
54 Then I delete my service
55
56 @postgresql
57 Scenario: Verify rebinding for postgresql
e3c38b5 @kushmerick Service-rebinding tests disable themselves if service isn't available
kushmerick authored
58 Given that the postgresql service is available
85d458e BVT for Postgres user/role issue
figo authored
59 Given I have my running application named app_sinatra_service
60 When I provision postgresql service
61 Then I post postgresqlabc to postgresql service with key abc
62 Then I should be able to create a table named foobar_table in the postgresql service
63 Then I should be able to create a function named foobar_function in the postgresql service
64 Then I should be able to create a sequence named foobar_sequence in the postgresql service
65 Then I unbind the service from my app
66 Then I bind the service to my app
67 Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
68 Then I post postgresqldef to postgresql service with key def
69 Then I should be able to get from postgresql service with key def, and I should see postgresqldef
70 Then I should be able to drop the table named foobar_table from the postgresql service
71 Then I should be able to drop the function named foobar_function from the postgresql service
72 Then I should be able to drop the sequence named foobar_sequence from the postgresql service
73
74 @postgresql @delete
75 Scenario: Cleanup after verifying rebinding for postgresql
76 Then I delete my service
77
78 @postgresql
79 Scenario: Verify binding postgresql to two applications
e3c38b5 @kushmerick Service-rebinding tests disable themselves if service isn't available
kushmerick authored
80 Given that the postgresql service is available
85d458e BVT for Postgres user/role issue
figo authored
81 Given I have my running application named app_sinatra_service
82 When I provision postgresql service
83 Given I have my running application named app_sinatra_service identified by app2
84 Then I bind the service to my app
85 Given I have my running application named app_sinatra_service
86 Then I post postgresqlabc to postgresql service with key abc
87 Then I should be able to create a table named foobar_table in the postgresql service
88 Then I should be able to create a function named foobar_function in the postgresql service
89 Then I should be able to create a sequence named foobar_sequence in the postgresql service
90 Given I have my running application named app_sinatra_service identified by app2
91 Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
92 Then I should be able to drop the table named foobar_table from the postgresql service
93 Then I should be able to drop the function named foobar_function from the postgresql service
94 Then I should be able to drop the sequence named foobar_sequence from the postgresql service
95
96 @postgresql @delete
97 Scenario: Cleanup after verifying binding postgresql to two applications
98 Then I delete my service
99
100 @delete @delete_app
101 Scenario: Clean up app after testing service rebinding
102 Given I have my running application named app_sinatra_service
103 When I delete my application
104 Then it should not be on AppCloud
105 Given I have my running application named app_sinatra_service identified by app2
106 When I delete my application
107 Then it should not be on AppCloud
Something went wrong with that request. Please try again.