@cli @skip_on_objectstore @encryption
Feature: recreate-master-key

  Scenario: recreate masterkey
    Given user "admin" has uploaded file "data/textfile.txt" to "/somefile.txt"
    When the administrator successfully recreates the encryption masterkey using the occ command
    Then the downloaded content when downloading file "/somefile.txt" for user "admin" with range "bytes=0-6" should be "This is"

  Scenario: recreate masterkey and upload data
    Given user "user0" has been created with default attributes
    And user "user0" has uploaded file "data/textfile.txt" to "/somefile.txt"
    When the administrator successfully recreates the encryption masterkey using the occ command
    And user "user0" uploads chunk file "1" of "1" with "AA" to "/somefile.txt" using the WebDAV API
    Then the downloaded content when downloading file "/somefile.txt" for user "user0" with range "bytes=0-3" should be "AA"
@cli @skip_on_objectstore @encryption
Feature: recreate-master-key

  Scenario: recreate masterkey
    Given user "admin" has uploaded file "filesForUpload/textfile.txt" to "/somefile.txt"
    When the administrator successfully recreates the encryption masterkey using the occ command
    Then the downloaded content when downloading file "/somefile.txt" for user "admin" with range "bytes=0-6" should be "This is"

  Scenario: recreate masterkey and upload data
    Given user "user0" has been created with default attributes
    And user "user0" has uploaded file "filesForUpload/textfile.txt" to "/somefile.txt"
    When the administrator successfully recreates the encryption masterkey using the occ command
    And user "user0" uploads chunk file "1" of "1" with "AA" to "/somefile.txt" using the WebDAV API
    Then the downloaded content when downloading file "/somefile.txt" for user "user0" with range "bytes=0-3" should be "AA"
Change stable10-only steps to use filesForUpload
Change stable10-only steps to use filesForUpload
