Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

91 lines (74 sloc) 3.562 kB
# The canonical_apps_* tests can be explicitly run via "bundle exec cucumber"
# using "--tags @canonical" on the command line or setting CUCUMBER_OPTIONS
# environment variable when invoking rake tasks.
# Combinations of app(s)/service(s) can now be chosen by combining tags.
# If not passing "--tags ~@delete" the services and apps are
# deleted during the run, and if passed the apps and provisioned services
# are left running at the end of the run.
# To select only one app to run, or a combination app and services use:
# --tags @canonical --tags @node
# --tags @canonical --tags @spring --tags @mysql,postgresql
# --tags @canonical --tags @spring --tags @postgresql --tags ~@delete
@canonical @sinatra @ruby @services
Feature: Deploy the sinatra canonical app and check its services
As a user with all canonical apps.
I want to deploy all canonical apps and use all their service
Background: deploying canonical service
Given I have registered and logged in
Scenario: sinatra test deploy app
Given I have deployed my application named app_sinatra_service
When I query status of my application
Then I should get the state of my application
Then I should be able to access my application root and see hello from sinatra
Then I should be able to access crash and it should crash
@mysql
Scenario: sinatra test mysql service
Given I have my running application named app_sinatra_service
When I provision mysql service
Then I post mysqlabc to mysql service with key abc
Then I should be able to get from mysql service with key abc, and I should see mysqlabc
@mysql @delete
Scenario: sinatra test delete service
Then I delete my service
@redis
Scenario: sinatra test redis service
Given I have my running application named app_sinatra_service
When I provision redis service
Then I post redisabc to redis service with key abc
Then I should be able to get from redis service with key abc, and I should see redisabc
@redis @delete
Scenario: sinatra test delete service
Then I delete my service
@mongodb
Scenario: sinatra test mongodb service
Given I have my running application named app_sinatra_service
When I provision mongodb service
Then I post mongoabc to mongo service with key abc
Then I should be able to get from mongo service with key abc, and I should see mongoabc
@mongodb @delete
Scenario: sinatra test delete service
Then I delete my service
@rabbitmq
Scenario: sinatra test rabbitmq service
Given I have my running application named app_sinatra_service
When I provision rabbitmq service
Then I post rabbitabc to rabbitmq service with key abc
Then I should be able to get from rabbitmq service with key abc, and I should see rabbitabc
Then I post rabbitabc to rabbitmq service with key abc
@rabbitmq @delete
Scenario: sinatra test delete service
Then I delete my service
@postgresql
Scenario: sinatra test postgresql service
Given I have my running application named app_sinatra_service
When I provision postgresql service
Then I post postgresqlabc to postgresql service with key abc
Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
@postgresql @delete
Scenario: sinatra test delete service
Then I delete my service
@delete @delete_app
Scenario: sinatra test delete app
Given I have my running application named app_sinatra_service
When I delete my application
Then it should not be on AppCloud
Jump to Line
Something went wrong with that request. Please try again.