Skip to content

Commit

Permalink
Enable and select encryption type from extra commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Oct 21, 2021
1 parent a270a5b commit 93b60b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ config = {
"mkdir data/owncloud-keys",
"chown -R www-data data/owncloud-keys",
"chmod -R 0770 data/owncloud-keys",
"./occ encryption:enable",
"./occ encryption:select-encryption-type masterkey --yes",
"./occ encryption:status",
"./occ encrypt-all --yes",
],
},
},
Expand Down
10 changes: 4 additions & 6 deletions tests/acceptance/features/cliEncryption/encryption.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Feature: encryption command
I want to encrypt-decrypt my data
So that users' resources are protected

Background:
Given the administrator has invoked occ command "encryption:enable"
And the administrator has selected master key encryption type using the occ command
# Background:
# Given the administrator has invoked occ command "encryption:enable"
# And the administrator has selected master key encryption type using the occ command


Scenario: view current encryption status
Expand Down Expand Up @@ -48,9 +48,7 @@ Feature: encryption command


Scenario: it should be possible to disable encryption after decrypting all of the encrypted files
Given the administrator has invoked occ command "encryption:enable"
And the administrator has selected master key encryption type using the occ command
And the administrator has uploaded file with content "uploaded content" to "/lorem.txt"
Given the administrator has uploaded file with content "uploaded content" to "/lorem.txt"
And the administrator has decrypted everything
And the administrator invokes occ command "encryption:disable"
Then the command should have been successful
Expand Down

0 comments on commit 93b60b7

Please sign in to comment.