]> git.kaiwu.me - haproxy.git/commit
REGTESTS: protobuf: add a test for the ungrpc converter
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 04:16:06 +0000 (04:16 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commitdcb21ac28af24b8b88fe08320bc58cfe94b5816d
tree5a9b3e03bd9a6aa13b64a6283e5e9dda27b65e9f
parent67aa5aabef7d273714361f565c5c54c171decd3b
REGTESTS: protobuf: add a test for the ungrpc converter

ungrpc had no coverage while the protobuf converter is exercised by
nested_and_flat.vtc. It differs from protobuf by the 5-byte gRPC header
it skips first, and by the rule that only the first converter of a
chain may be an ungrpc, the following ones having to be protobuf.

The body is the "Rectangle" message of the documentation example, built
by hand with sendhex: a string field, and two nested messages holding
two varint leaves each. The test extracts the length-delimited field
without a type, the four leaves through their dotted paths, an
intermediary field as a binary sample, and checks that the three
documented equivalent spellings mixing ungrpc and protobuf all return
the same value. A field which is not in the message must yield nothing.
reg-tests/protobuf/grpc.vtc [new file with mode: 0644]