1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-07-16 07:24:44 +02:00

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

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