Repository navigation
test(grpc-transcode): verify TE trailers with a Python gRPC upstream - #14280
Open
Zi-Yi-Ming wants to merge 1 commit into
Open
Zi-Yi-Ming wants to merge 1 commit into
Zi-Yi-Ming wants to merge 1 commit into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Nginx template used by Test::Nginx sets
TE: trailersindependently of the template used by the APISIX CLI. A regression in the CLI template could therefore pass the existing tests and still fail against a Python gRPC server.Add one unary
grpc-transcodetest using Nginx configuration generated by the CLI. The test starts a Python gRPC server on loopback and asserts the HTTP status and decoded greeting. It uses a temporary standalone configuration and runs in the existing Linux CLI jobs.Related issue
Refs #9350.
Validation
python3-grpcio1.51.1 under both root and an unprivileged user.grpc_set_header TE trailersfrom the CLI template caused the same test to fail with HTTP 500 andMissing :te header. Restoring the directive made it pass again.LC_ALL=C.UTF-8 make lint, ShellCheck for the CLI runner, Python compilation, andgit diff --checkpassed.Checklist