Skip to content

Commit e018e4c

Browse files
committed
Add argon2 secret to list of verified backup data
1 parent 945dfc0 commit e018e4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/testlib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ setup_test_data () {
317317
echo "fake ghe-export-ssl-ca-certificates data" > "$loc/ssl-ca-certificates.tar"
318318
echo "fake license data" > "$loc/enterprise.ghl"
319319
echo "fake password hash data" > "$loc/manage-password"
320+
echo "fake argon2 secret" > "$loc/manage-argon-secret"
320321
echo "fake password pepper data" > "$loc/password-pepper"
321322
echo "rsync" > "$loc/strategy"
322323
echo "$GHE_REMOTE_VERSION" > "$loc/version"
@@ -446,6 +447,9 @@ verify_all_backedup_data() {
446447
# verify manage-password file was backed up
447448
[ "$(cat "$GHE_DATA_DIR/current/manage-password")" = "fake password hash data" ]
448449

450+
# verify manage-argon-secret file was backed up
451+
[ "$(cat "$GHE_DATA_DIR/current/manage-argon-secret")" = "fake argon2 secret" ]
452+
449453
# verify password pepper file was backed up
450454
[ "$(cat "$GHE_DATA_DIR/current/password-pepper")" = "fake password pepper data" ]
451455

0 commit comments

Comments
 (0)