diff options
Diffstat (limited to 'tests/bugs/snapshot/bug-1140162-file-snapshot-features-encrypt-opts-validation.t')
-rw-r--r-- | tests/bugs/snapshot/bug-1140162-file-snapshot-features-encrypt-opts-validation.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bugs/snapshot/bug-1140162-file-snapshot-features-encrypt-opts-validation.t b/tests/bugs/snapshot/bug-1140162-file-snapshot-features-encrypt-opts-validation.t index f91093db4e7..b9f6dc715e6 100644 --- a/tests/bugs/snapshot/bug-1140162-file-snapshot-features-encrypt-opts-validation.t +++ b/tests/bugs/snapshot/bug-1140162-file-snapshot-features-encrypt-opts-validation.t @@ -28,6 +28,14 @@ TEST $CLI volume set $V0 ping-timeout 60 ## Set features.file-snapshot and features.encryption option with valid boolean ## value. These options should succeed. TEST $CLI volume set $V0 features.file-snapshot on + +## Before setting the crypt xlator on, it is required to create master key +## Otherwise glusterfs client process will fail to start +echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" > $GLUSTERD_WORKDIR/$V0-master-key + +## Specify location of master key +TEST $CLI volume set $V0 encryption.master-key $GLUSTERD_WORKDIR/$V0-master-key + TEST $CLI volume set $V0 features.encryption on cleanup; |