[cache features] add a test for dump/restore cycle being a noop

This commit is contained in:
Joe Thornber 2014-09-01 14:57:10 +01:00
parent 562661c63e
commit 99d851cd29
2 changed files with 8 additions and 2 deletions

View File

@ -99,3 +99,9 @@ Feature: cache_restore
"""
"""
Scenario: dump/restore is a noop
Given valid cache metadata
When I cache dump
And I cache restore
And I cache dump
Then dumps 1 and 2 should be identical

View File

@ -100,10 +100,10 @@ Given(/^an empty dev file$/) do
run_simple("dd if=/dev/zero of=#{dev_file} bs=4k count=1024")
end
When(/^I cache_dump$/) do
When(/^I cache dump$/) do
run_simple("cache_dump #{dev_file} -o #{new_dump_file}", true)
end
When(/^I cache_restore$/) do
When(/^I cache restore$/) do
run_simple("cache_restore -i #{dump_files[-1]} -o #{dev_file}", true)
end