[cache features] add a test for dump/restore cycle being a noop
This commit is contained in:
parent
562661c63e
commit
99d851cd29
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user