-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cd): add http2 smoke test (#10454)
This PR adds a simple smoke test to check if the HTTP/2 listening port can respond with valid response data. KAG-854
- Loading branch information
Showing
3 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "${VERBOSE:-}" ]; then | ||
set -x | ||
fi | ||
|
||
source .requirements | ||
source build/tests/util.sh | ||
|
||
kong_ready | ||
|
||
msg_test "Check if cURL supports HTTP/2" | ||
if ! curl --version | grep -i "http2" > /dev/null; then | ||
err_exit " local cURL does not support HTTP/2" | ||
fi | ||
|
||
msg_test "Check HTTP/2 Admin API response is valid" | ||
admin_api_http2_validity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40c572d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:40c572dc5b734ab4d2000cbd9f3f71456b60a626
Artifacts available https://github.com/Kong/kong/actions/runs/4371158787