Skip to content

Commit

Permalink
Merge pull request #1281 from pantheon-systems/backup_create_feature
Browse files Browse the repository at this point in the history
Add backup:create feature test
  • Loading branch information
bensheldon authored Sep 30, 2016
2 parents 0949eee + 8f147a5 commit b60f1af
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/newfeatures/backup-create.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Feature: Create a new backup for a Site
In order to secure my site against failures
As a user
I need to be able to create a new backup of my site

Background: I am authenticated and have a site named [[test_site_name]]
Given I am authenticated
And a site named "[[test_site_name]]"

@vcr site_backup_create
Scenario: Create a new backup of the entire environment
When I run "terminus backup:create [[test_site_name]].dev"
Then I should get "."
And I should get "."
Then I should get:
"""
Created a backup of the "dev" environment
"""

@vcr site_backup_create
Scenario: Create a new backup of a specific element of the environment
When I run "terminus backup:create [[test_site_name]].dev database"
Then I should get "."
And I should get "."
Then I should get:
"""
Created a backup of the "dev" environment
"""

@vcr site_backup_create
Scenario: Create a new backup of the environment with extended preservation
When I run "terminus backup:create [[test_site_name]].dev --keep-for-days=90"
Then I should get "."
And I should get "."
Then I should get:
"""
Created a backup of the "dev" environment
"""

0 comments on commit b60f1af

Please sign in to comment.