Sha256: 8c34f1ba5bfbefe8190ed813c24028dfbaddd54fea6d99b736f05842c79ece0e
Contents?: true
Size: 1.8 KB
Versions: 3
Compression:
Stored size: 1.8 KB
Contents
Feature: Logging In order to be able to review the backup activities As a sysadmin using Parallels Server I want to have a logging feature Background: Given the following virtual machines: | uuid | status | name | | {97351580-afd7-4aff-9960-814196b28e37} | stopped | Mac OS X Lion | | {423dba54-45e3-46f1-9aa2-87d61ce6b757} | running | Windows XP | | {55aae003-298d-4199-82ed-23658a218605} | stopped | Ubuntu | Scenario: Log the last stdout line from prlctl When I successfully run `prlbackup "Windows XP"` And the stdout should contain "[Windows XP] Starting backup..." And the stdout should contain "The VM has been successfully stopped" And the stdout should contain "The virtual machine has been successfully backed up with backup id" And the stdout should contain "The VM has been successfully started" Scenario: Log the virtual machines name When I successfully run `prlbackup --all` Then the output should match /Mac OS X Lion.+successfully backed up/ And the output should match /Windows XP.+successfully backed up/ And the output should match /Ubuntu.+successfully backed up/ Scenario: Log errors Given I double `prlctl backup {55aae003-298d-4199-82ed-23658a218605}` with exit status 42 and stderr: """ BOOOOM! """ When I run `prlbackup Ubuntu` Then the output should match /ERROR.+BOOOOM/ Scenario: Be verbose When I run `prlbackup --verbose "Windows XP"` Then the stdout should contain "Running `prlctl stop \{423dba54-45e3-46f1-9aa2-87d61ce6b757\}`" And the stdout should contain "Running `prlctl backup \{423dba54-45e3-46f1-9aa2-87d61ce6b757\}`" And the stdout should contain "Running `prlctl start \{423dba54-45e3-46f1-9aa2-87d61ce6b757\}`"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prlbackup-1.0.3 | features/logging.feature |
prlbackup-1.0.2 | features/logging.feature |
prlbackup-1.0.0 | features/logging.feature |