Skip to content

Commit 01df29a

Browse files
pocketic now returns 503 for bad response certification
1 parent 32ad36b commit 01df29a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

e2e/tests-dfx/assetscanister.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ check_permission_failure() {
747747

748748
# fails with because %e6 is not valid utf-8 percent encoding
749749
assert_command_fail curl --fail -vv http://localhost:"$PORT"/%e6?canisterId="$ID"
750-
assert_contains "500 Internal Server Error"
750+
assert_contains "503 Service Unavailable"
751751
}
752752

753753
@test "http_request percent-decodes urls" {
@@ -817,7 +817,7 @@ check_permission_failure() {
817817

818818
assert_command_fail curl --fail -vv http://localhost:"$PORT"/%e6?canisterId="$ID"
819819
# fails because %e6 is not valid utf-8 percent encoding
820-
assert_contains "500 Internal Server Error"
820+
assert_contains "503 Service Unavailable"
821821

822822
assert_command curl --fail -vv http://localhost:"$PORT"/%25?canisterId="$ID"
823823
assert_match "200 OK" "$stderr"
@@ -1640,7 +1640,7 @@ EOF
16401640

16411641
# However, due to returning the wrong certificate, it fails with Err(InvalidResponseHashes)
16421642
# see https://dfinity.atlassian.net/browse/SDK-1246
1643-
assert_contains "500 Internal Server Error"
1643+
assert_contains "503 Service Unavailable"
16441644

16451645

16461646
assert_command dfx canister call e2e_project_frontend set_asset_properties '( record { key="/test_alias_file.html"; is_aliased=opt(opt(true)) })'
@@ -1687,7 +1687,7 @@ EOF
16871687

16881688
# again see # see https://dfinity.atlassian.net/browse/SDK-1246, this should be 404
16891689
# assert_match "404 Not Found" "$stderr"
1690-
assert_contains "500 Internal Server Error"
1690+
assert_contains "503 Service Unavailable"
16911691

16921692
assert_command curl --fail -vv http://localhost:"$PORT"/index_test?canisterId="$ID"
16931693
assert_match "200 OK" "$stderr"

0 commit comments

Comments
 (0)