aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-04-30 16:31:22 +0200
committerGitHub <[email protected]>2021-04-30 07:31:22 -0700
commit6f4e132fece3343ae62c3b0f79450fef2504f9cd (patch)
treed1061410818a17da3c74df21f4c4a1bb8f522289 /tests/zfs-tests
parent17b83525f547a571dcd7d78e46913f6ed405a64f (diff)
ZTS: cli_root/zfs_load-key: add separate key files
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Issue: #11956 Closes #11976
Diffstat (limited to 'tests/zfs-tests')
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zfs_load-key/HEXKEY1
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile.am5
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zfs_load-key/PASSPHRASE1
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zfs_load-key/RAWKEY1
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg3
5 files changed, 10 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/HEXKEY b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/HEXKEY
new file mode 100644
index 000000000..95ed1c051
--- /dev/null
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/HEXKEY
@@ -0,0 +1 @@
+000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile.am b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile.am
index 06b4239a6..03c291638 100644
--- a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile.am
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile.am
@@ -11,4 +11,7 @@ dist_pkgdata_SCRIPTS = \
dist_pkgdata_DATA = \
zfs_load-key.cfg \
- zfs_load-key_common.kshlib
+ zfs_load-key_common.kshlib \
+ PASSPHRASE \
+ HEXKEY \
+ RAWKEY
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/PASSPHRASE b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/PASSPHRASE
new file mode 100644
index 000000000..f3097ab13
--- /dev/null
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/PASSPHRASE
@@ -0,0 +1 @@
+password
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/RAWKEY b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/RAWKEY
new file mode 100644
index 000000000..f2d4cbf58
--- /dev/null
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/RAWKEY
@@ -0,0 +1 @@
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ No newline at end of file
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg
index 90d9f63f1..2f01aac7c 100644
--- a/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg
@@ -17,6 +17,9 @@
# Copyright (c) 2017 Datto, Inc. All rights reserved.
#
+# $PASSPHRASE, $HEXKEY, and $RAWKEY must be kept in sync
+# with the corresponding files in this directory
+
export PASSPHRASE="password"
export PASSPHRASE1="password1"
export PASSPHRASE2="password2"