features/dump.feature in prodder-1.7 vs features/dump.feature in prodder-1.7.1
- old
+ new
@@ -118,12 +118,17 @@
When I run `prodder dump -c prodder.yml`
Then the exit status should be 0
And the workspace file "blog/db/structure.sql" should not match /CREATE TABLE authors/
Scenario: Verify settings file contents
- Given I add a customer parameter "c.p" with value "v" in the "blog" project's database
+ Given I add a custom parameter "c.p" with value "v" in the "blog" project's database
When I run `prodder dump -c prodder.yml`
- Then the workspace file "blog/db/settings.sql" should match /ALTER DATABASE prodder__blog_prod SET c.p=v/
+ Then the workspace file "blog/db/settings.sql" should match /ALTER DATABASE :DBNAME SET c.p=v;/
+
+ Scenario: Verify empty db setting is quoted
+ Given I add a custom parameter "empty.setting" with value "" in the "blog" project's database
+ When I run `prodder dump -c prodder.yml`
+ Then the workspace file "blog/db/settings.sql" should match /ALTER DATABASE :DBNAME SET empty.setting='';/
Scenario: Exclude specified schemas from structure dump
Given the prodder config in "prodder.yml" excludes the schema "ads" from the dump of "blog"
And I add a "ads" schema to the "blog" project's database
When I run `prodder dump -c prodder.yml`