-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0949eee
commit 8f147a5
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
""" |