summaryrefslogtreecommitdiffstats
path: root/tests/encryption/crypt.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/encryption/crypt.t')
-rwxr-xr-xtests/encryption/crypt.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/encryption/crypt.t b/tests/encryption/crypt.t
index efd8852e2ec..8781db3478b 100755
--- a/tests/encryption/crypt.t
+++ b/tests/encryption/crypt.t
@@ -23,16 +23,16 @@ EXPECT 'off' volinfo_field $V0 'performance.write-behind'
TEST $CLI volume set $V0 performance.open-behind off
EXPECT 'off' volinfo_field $V0 'performance.open-behind'
-## Turn on crypt xlator by setting features.encryption to on
-TEST $CLI volume set $V0 encryption on
-EXPECT 'on' volinfo_field $V0 'features.encryption'
+## Create a file with master key
-## Specify location of master key
-TEST $CLI volume set $V0 encryption.master-key /tmp/$V0-master-key
+echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" > $GLUSTERD_WORKDIR/$V0-master-key
-## Create a file with master key
+## Specify location of master key
+TEST $CLI volume set $V0 encryption.master-key $GLUSTERD_WORKDIR/$V0-master-key
-echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" > /tmp/$V0-master-key
+## Turn on crypt xlator by setting features.encryption to on
+TEST $CLI volume set $V0 encryption on
+EXPECT 'on' volinfo_field $V0 'features.encryption'
## Start the volume
TEST $CLI volume start $V0;