fix(elbv2_desync_mitigation_mode): improve logic (#2986)

This commit is contained in:
Sergio Garcia
2023-10-31 12:42:24 +01:00
committed by GitHub
parent e17c5642ca
commit 3fd2ae954d
3 changed files with 9 additions and 9 deletions

View File

@@ -119,7 +119,7 @@ class Test_elbv2_desync_mitigation_mode:
assert len(result) == 1
assert result[0].status == "FAIL"
assert search(
"does not have desync mitigation mode set as defensive or strictest and is not dropping invalid header fields",
"does not have desync mitigation mode set as strictest and is not dropping invalid header fields",
result[0].status_extended,
)
assert result[0].resource_id == "my-lb"
@@ -180,7 +180,7 @@ class Test_elbv2_desync_mitigation_mode:
assert len(result) == 1
assert result[0].status == "PASS"
assert search(
"does not have desync mitigation mode set as defensive or strictest but is dropping invalid header fields",
"does not have desync mitigation mode set as strictest but is dropping invalid header fields",
result[0].status_extended,
)
assert result[0].resource_id == "my-lb"