From 65cc335541cb362d1d59ef46fac3d794154a5b86 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 28 Apr 2024 07:13:43 -0400 Subject: [PATCH] fix: update test cases --- tests/unit/core.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/core.bats b/tests/unit/core.bats index eb68020..1072e6d 100644 --- a/tests/unit/core.bats +++ b/tests/unit/core.bats @@ -210,7 +210,7 @@ check_custom_allowed_keys() { echo "status: $status" assert_equal \ "$(head -n1 tests/unit/fixtures/authorized_keys/sshcommand_list_expected_json_output)" \ - "$(sshcommand list "$TEST_USER" md5 json)" + "$(sshcommand list "$TEST_USER" "" json)" } @test "(core) sshcommand list (authorized_keys format variants)" { @@ -231,8 +231,8 @@ check_custom_allowed_keys() { echo "status: $status" assert_equal \ - "$(cat tests/unit/fixtures/authorized_keys/sshcommand_list_expected_json_output)" \ - "$(sshcommand list "$TEST_USER" json)" + "$(cat tests/unit/fixtures/authorized_keys/sshcommand_list_expected_json_output_md5_filtered)" \ + "$(sshcommand list "$TEST_USER" "md5" json)" rm "/home/${TEST_USER}/.ssh/authorized_keys" }