From 9b185de6fa9f1b3a7614448fe0116ed370ec7e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Fri, 30 Apr 2021 16:31:22 +0200 Subject: [PATCH] ZTS: cli_root/zfs_load-key: add separate key files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Issue: #11956 Closes #11976 --- .../zfs-tests/tests/functional/cli_root/zfs_load-key/HEXKEY | 1 + .../tests/functional/cli_root/zfs_load-key/Makefile.am | 5 ++++- .../tests/functional/cli_root/zfs_load-key/PASSPHRASE | 1 + .../zfs-tests/tests/functional/cli_root/zfs_load-key/RAWKEY | 1 + .../tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg | 3 +++ 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/zfs-tests/tests/functional/cli_root/zfs_load-key/HEXKEY create mode 100644 tests/zfs-tests/tests/functional/cli_root/zfs_load-key/PASSPHRASE create mode 100644 tests/zfs-tests/tests/functional/cli_root/zfs_load-key/RAWKEY 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 0000000000..95ed1c051a --- /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 06b4239a6d..03c2916387 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 0000000000..f3097ab130 --- /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 0000000000..f2d4cbf581 --- /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 90d9f63f1d..2f01aac7c0 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"