"Fossies" - the Fresh Open Source Software Archive

Member "tc-play-3.3/test/features/vol_test1_cli.feature" (2 Mar 2020, 3316 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. See also the last Fossies "Diffs" side-by-side code changes report for "vol_test1_cli.feature": 1.1_vs_2.0.

    1 @cmdline
    2 Feature: Command line mapping/info tests using volume test1.tc
    3 
    4   Scenario: Map outer volume
    5     Given I map volume test1.tc as tcplay_test using the following settings:
    6       | passphrase         | test               |
    7     And I request information about mapped volume tcplay_test
    8     Then I expect dmsetup to have the following tables:
    9       | name         | begin      | end         | algo                 | offset     | iv_offset    | key                                                                                                                              |
   10       | tcplay_test  | 0          | 40448       | aes-xts-plain64      | 256        | 256          | b736aebe0ba9e67f58f110769955a19d1351b07f99cbda9f59249e0aaed72f9e672365dee6d2bf00a34bdd1b8aafa31b274103b9e925ac568e60562ce0c6ff0e |
   11     And I expect tcplay to report the following:
   12       | Cipher             | AES-256-XTS        |
   13       | Key Length         | 512 bits           |
   14       | Volume size        | 40448 sectors      |
   15       | IV offset          | 256 sectors        |
   16       | Block offset       | 256 sectors        |
   17 
   18 
   19 
   20   Scenario: Map hidden volume
   21     Given I map volume test1.tc as tcplay_test using the following settings:
   22       | passphrase         | hidden             |
   23     And I request information about mapped volume tcplay_test
   24     Then I expect dmsetup to have the following tables:
   25       | name         | begin      | end         | algo                 | offset     | iv_offset    | key                                                                                                                              |
   26       | tcplay_test  | 0          | 10240       | aes-xts-plain64      | 30464      | 30464        | 7dd9086e92b756f55465723a9b4594bf61040a6bea8b2291a45821ff80d0676dd86caf6595d57beb7902e952706fbb7bad8b69048c47cced1aba08ebac847dd9 |
   27     And I expect tcplay to report the following:
   28       | Cipher             | AES-256-XTS        |
   29       | Key Length         | 512 bits           |
   30       | Volume size        | 10240 sectors      |
   31       | IV offset          | 30464 sectors      |
   32       | Block offset       | 30464 sectors      |
   33 
   34 
   35 
   36   Scenario: Map outer volume protecting hidden volume
   37     Given I map volume test1.tc as tcplay_test using the following settings:
   38       | passphrase         | test               |
   39       | passphrase_hidden  | hidden             |
   40       | protect_hidden     | yes                |
   41     And I request information about mapped volume tcplay_test
   42     Then I expect dmsetup to have the following tables:
   43       | name         | begin      | end         | algo                 | offset     | iv_offset    | key                                                                                                                              |
   44       | tcplay_test  | 0          | 30208       | aes-xts-plain64      | 256        | 256          | b736aebe0ba9e67f58f110769955a19d1351b07f99cbda9f59249e0aaed72f9e672365dee6d2bf00a34bdd1b8aafa31b274103b9e925ac568e60562ce0c6ff0e |
   45     And I expect tcplay to report the following:
   46       | Cipher             | AES-256-XTS        |
   47       | Key Length         | 512 bits           |
   48       | Volume size        | 30208 sectors      |
   49       | IV offset          | 256 sectors        |
   50       | Block offset       | 256 sectors        |