File: save_hdr_api.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 (27 lines) | stat: -rw-r--r-- 1,436 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
@api
Feature: Save header to file
  Background:
    Given I create a volume tmpvol1 of size 10M using the API with the following parameters:
      | passphrase        | test                             |

  Scenario: Save header with changed passphrase to file
    Given I modify volume tmpvol1 with the API by saving a header copy to tmpvol1_hdr using the following settings:
      | passphrase        | test        |
    And I modify volume tmpvol1 with the API using the following settings:
      | passphrase     | test             |
      | new_passphrase | new              |
    And I request information about volume tmpvol1 with the API using the following settings:
      | passphrase     | test             |
    Then I expect tcplay to fail

  Scenario: Use saved header to access volume with changed passphrase
    Given I modify volume tmpvol1 with the API by saving a header copy to tmpvol1_hdr using the following settings:
      | passphrase        | test        |
    And I modify volume tmpvol1 with the API using the following settings:
      | passphrase     | test             |
      | new_passphrase | new              |
    And I request information about volume tmpvol1 with the API using the following settings:
      | passphrase     | test             |
      | header_file    | tmpvol1_hdr      |
    Then I expect tcplay to report the following:
      | Key Length         | 512 bits                    |