Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable service lifecycle bvt test for postgresql service

Change-Id: I64cd93d5837962f086b31c8203b958d78b1deba0
  • Loading branch information...
commit e2f752acf828cb0cde01e3e830c85d6663ce9c9d 1 parent a12c6dd
@mflu mflu authored
Showing with 37 additions and 1 deletion.
  1. +1 −1  assets
  2. +36 −0 features/service_lifecycle.feature
2  assets
@@ -1 +1 @@
-Subproject commit 4b937e6a951f674dc88f466d255de5d9a20f38d3
+Subproject commit abed65e2d2c99ea56024e256d83c02b7f65ffb5c
View
36 features/service_lifecycle.feature
@@ -115,3 +115,39 @@ Feature: Deploy the sinatra canonical app and test lifecycle APIs
Then I delete my service
Then I delete my application
+ @postgresql @snapshot
+ Scenario: Take postgresql snapshot and rollback to a certain snapshot
+ Given I have my running application named app_sinatra_service2
+ When I provision postgresql service
+ Then I check snapshot extension is enabled
+ 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
+ When I create a snapshot of postgresql service
+ Then I should be able to query snapshots for postgresql service
+ Then I post postgresqlabc2 to postgresql service with key abc
+ Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc2
+ When I rollback to previous snapshot for postgresql service
+ Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
+ Then I delete my service
+ Then I delete my application
+
+ @postgresql @serialized
+ Scenario: Import and export serialized data for postgresql service
+ Given I have my running application named app_sinatra_service2
+ 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
+ When I create a serialized URL of postgresql service
+ Then I should be able to download data from serialized URL
+ Then I post postgresqlabc2 to postgresql service with key abc
+ Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc2
+ When I import serialized data from URL of postgresql service
+ Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
+ Then I post postgresqlabc2 to postgresql service with key abc
+ Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc2
+ When I import serialized data from request of postgresql service
+ Then I should be able to get from postgresql service with key abc, and I should see postgresqlabc
+ Then I delete my service
+ Then I delete my application
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.