Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 68 lines (61 sloc) 3.58 kb
bfb2ac3 Add tests for Rack auto-reconfiguration
Jennifer Hickey authored
1 Feature: Deploy rack applications that make use of autostaging
2
3 As a user of Cloud Foundry
4 I want to launch apps that expect automatic binding of the services that they use
5
6 Background: rack autostaging
7 Given I have registered and logged in
8
9 @ruby @sanity @services
10 Scenario: rack autostaging
11 Given I have deployed a rack application named app_rack_service_autoconfig
12 When I query status of my application
13 Then I should get the state of my application
14 Then I should be able to access my application root and see hello from sinatra
15 Then I should be able to access crash and it should crash
16 When I provision mysql service
17 Then I post mysqlabc to mysql service with key abc
18 Then I should be able to get from mysql service with key abc, and I should see mysqlabc
19 Then I delete my service
20 When I provision redis service
21 Then I post redisabc to redis service with key abc
22 Then I should be able to get from redis service with key abc, and I should see redisabc
23 When I provision mongodb service
24 Then I post mongoabc to mongo service with key abc
25 Then I should be able to get from mongo service with key abc, and I should see mongoabc
26 When I provision rabbitmq service
27 Then I post rabbitabc to rabbitmq service with key abc
28 Then I should be able to get from rabbitmq service with key abc, and I should see rabbitabc
29 When I provision postgresql service
30 Then I post postgresqlabc to postgresql service with key abc
31 Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
32 Then I delete all my service
33 Then I delete my application
34
35 @ruby
36 Scenario: rack ruby 1.9 autostaging
37 Given I have deployed a rack application named rack_autoconfig_ruby19
38 When I query status of my application
39 Then I should get the state of my application
40 Then I should be able to access my application root and see hello from sinatra
41 When I provision redis service
42 Then I post redisabc to redis service with key abc
43 Then I should be able to get from redis service with key abc, and I should see redisabc
44 Then I delete all my service
45 Then I delete my application
46
47 @ruby
48 Scenario: rack opt-out of autostaging via config file
49 Given I have deployed a rack application named rack_autoconfig_disabled_by_file
50 When I query status of my application
51 Then I should get the state of my application
52 Then I should be able to access my application root and see hello from sinatra
53 When I provision redis service
54 Then I should be able to get from redis service with key connection, and I should see Connectionrefused-UnabletoconnecttoRedison127.0.0.1:6379
55 Then I delete all my service
56 Then I delete my application
57
58 @ruby
59 Scenario: rack opt-out of autostaging via cf-runtime gem
60 Given I have deployed a rack application named rack_autoconfig_disabled_by_gem
61 When I query status of my application
62 Then I should get the state of my application
63 Then I should be able to access my application root and see hello from sinatra
64 When I provision redis service
65 Then I should be able to get from redis service with key connection, and I should see Connectionrefused-UnabletoconnecttoRedison127.0.0.1:6379
66 Then I delete all my service
67 Then I delete my application
Something went wrong with that request. Please try again.