1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
@cmdline
Feature: Use header from file
Background:
Given I create a volume tmpvol1 of size 10M with the following parameters:
| passphrase | test |
And I modify volume tmpvol1 by saving a header copy to tmpvol1_hdr using the following settings:
| passphrase | test |
And I corrupt sectors 0 to 20479 of volume tmpvol1
Scenario: Corrupted volume cannot be accessed
Given I request information about volume tmpvol1 using the following settings:
| passphrase | test |
Then I expect tcplay to fail
Scenario: Access a volume with header file when all volume headers are corrupted
Given I request information about volume tmpvol1 using the following settings:
| passphrase | test |
| header_file | tmpvol1_hdr |
Then I expect tcplay to report the following:
| Key Length | 512 bits |
| Sector size | 512 |
Scenario: Restore volume headers from copy in file
Given I modify volume tmpvol1 by restoring from header copy tmpvol1_hdr using the following settings:
| passphrase | test |
And I request information about volume tmpvol1 using the following settings:
| passphrase | test |
Then I expect tcplay to report the following:
| Key Length | 512 bits |
| Sector size | 512 |
|