@@ -4,10 +4,6 @@ Feature: encryption command
4
4
I want to encrypt-decrypt my data
5
5
So that users' resources are protected
6
6
7
- # Background:
8
- # Given the administrator has invoked occ command "encryption:enable"
9
- # And the administrator has selected master key encryption type using the occ command
10
-
11
7
12
8
Scenario : view current encryption status
13
9
When the administrator invokes occ command "encryption:status"
@@ -42,15 +38,15 @@ Feature: encryption command
42
38
43
39
Scenario : it should not be possible to disable encryption without decrypting encrypted uploaded files
44
40
Given the administrator has uploaded file with content "uploaded content" to "/lorem.txt"
45
- When the administrator invokes occ command "encryption:disable"
41
+ When the administrator disables encryption using the occ command
46
42
Then the command should have failed with exit code 1
47
43
And the command output should contain the text "The system still have encrypted files. Please decrypt them all before disabling encryption."
48
44
49
45
50
46
Scenario : it should be possible to disable encryption after decrypting all of the encrypted files
51
47
Given the administrator has uploaded file with content "uploaded content" to "/lorem.txt"
52
48
And the administrator has decrypted everything
53
- And the administrator invokes occ command "encryption:disable"
49
+ When the administrator disables encryption using the occ command
54
50
Then the command should have been successful
55
51
And the command output should contain the text "Cleaned up config"
56
52
And the command output should contain the text "Encryption disabled"
@@ -70,6 +66,6 @@ Feature: encryption command
70
66
@skipOnOcV10 @issue-encryption-303
71
67
Scenario : it should not be possible to disable encryption even after decrypting all encrypted files if keys root has been changed
72
68
Given the administrator has decrypted everything
73
- When the administrator invokes occ command "encryption:disable"
69
+ When the administrator disables encryption using the occ command
74
70
Then the command should have failed with exit code 1
75
71
And the command output should contain the text "The system still have encrypted files. Please decrypt them all before disabling encryption"
0 commit comments