Skip to content

Commit

Permalink
fix: update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed May 18, 2024
1 parent 118d636 commit 65cc335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/core.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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)" {
Expand All @@ -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"
}

Expand Down

0 comments on commit 65cc335

Please sign in to comment.