Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Service-rebinding tests disable themselves if service isn't available

Change-Id: I143927a27fa069db2fda324eaf8696bd63416faf
  • Loading branch information...
commit e3c38b5aa4004f0bd88509d7e87d5b865c67085a 1 parent f76c750
@kushmerick kushmerick authored
View
4 features/service_rebinding.feature
@@ -11,6 +11,7 @@ Feature: Deploy the sinatra canonical app and check that services can be rebound
@mysql
Scenario: Verify rebinding for mysql
+ Given that the mysql service is available
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
@@ -32,6 +33,7 @@ Feature: Deploy the sinatra canonical app and check that services can be rebound
@mysql
Scenario: Verify binding mysql to two applications
+ Given that the mysql service is available
Given I have my running application named app_sinatra_service
When I provision mysql service
Given I have my running application named app_sinatra_service identified by app2
@@ -53,6 +55,7 @@ Feature: Deploy the sinatra canonical app and check that services can be rebound
@postgresql
Scenario: Verify rebinding for postgresql
+ Given that the postgresql service is available
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
@@ -74,6 +77,7 @@ Feature: Deploy the sinatra canonical app and check that services can be rebound
@postgresql
Scenario: Verify binding postgresql to two applications
+ Given that the postgresql service is available
Given I have my running application named app_sinatra_service
When I provision postgresql service
Given I have my running application named app_sinatra_service identified by app2
View
4 features/step_definitions/appcloud_steps.rb
@@ -626,6 +626,10 @@
contents.close
end
+Given /^that the (.+) service is available$/ do |service|
+ pending "The #{service} service is not available" unless find_service service
+end
+
Then /^I unbind the service from my app$/ do
service = all_my_service_manifests.first
unbind_service @app, service, @token
Please sign in to comment.
Something went wrong with that request. Please try again.