File: restore_hdr_cli.feature

package info (click to toggle)
tcplay 3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,952 kB
  • sloc: ansic: 4,783; ruby: 759; makefile: 19; sh: 16
file content (30 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download | duplicates (2)
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                         |