Skip to content

test(grpc-transcode): verify TE trailers with a Python gRPC upstream - #14280

Open
Zi-Yi-Ming wants to merge 1 commit into
apache:masterfrom
Zi-Yi-Ming:test/grpc-te-trailers
Open

Zi-Yi-Ming wants to merge 1 commit into
apache:masterfrom
Zi-Yi-Ming:test/grpc-te-trailers

Conversation

@Zi-Yi-Ming

Copy link
Copy Markdown

Description

The Nginx template used by Test::Nginx sets TE: trailers independently 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-transcode test 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

  • The test passed with OpenResty 1.31.9.1 and Ubuntu's python3-grpcio 1.51.1 under both root and an unprivileged user.
  • In a temporary copy, removing only grpc_set_header TE trailers from the CLI template caused the same test to fail with HTTP 500 and Missing :te header. Restoring the directive made it pass again.
  • LC_ALL=C.UTF-8 make lint, ShellCheck for the CLI runner, Python compilation, and git diff --check passed.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect the changes made in the PR
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant