From dfd649262a5da8bc527eead752281921fa33daf3 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Sun, 2 Jan 2022 02:12:24 +1300 Subject: [PATCH] tests(fix): Align with upstream `testssl` field name change (#2353) The field name to check in JSON output was recently changed for the cipherlist results, causing tests to fail. --- test/security_tls_cipherlists.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/security_tls_cipherlists.bats b/test/security_tls_cipherlists.bats index dd8495fd..8958a917 100644 --- a/test/security_tls_cipherlists.bats +++ b/test/security_tls_cipherlists.bats @@ -160,7 +160,7 @@ function compare_cipherlist() { local RESULTS_FILE=$2 local EXPECTED_CIPHERLIST=$3 - run jq '.scanResult[0].fs[] | select(.id=="'"${TARGET_CIPHERLIST}"'") | .finding' "${TLS_RESULTS_DIR}/${RESULTS_FILE}" + run jq '.scanResult[0].serverPreferences[] | select(.id=="'"${TARGET_CIPHERLIST}"'") | .finding' "${TLS_RESULTS_DIR}/${RESULTS_FILE}" assert_success assert_output "${EXPECTED_CIPHERLIST}" }