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.
This commit is contained in:
Brennan Kinney 2022-01-02 02:12:24 +13:00 committed by GitHub
parent 33ebbbf2c7
commit dfd649262a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}"
}