"Fossies" - the Fresh Open Source Software Archive

Member "tc-play-3.3/test/features/restore_hdr_cli.feature" (2 Mar 2020, 1482 Bytes) of package /linux/misc/tc-play-3.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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