Skip to content

Commit

Permalink
Add backup:create feature test
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon committed Sep 30, 2016
1 parent 0949eee commit 8f147a5
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 8f147a5

Please sign in to comment.