Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fill in some testing gaps, fix grpc headers #232

Merged
merged 4 commits into from
Jun 28, 2023
Merged

fill in some testing gaps, fix grpc headers #232

merged 4 commits into from
Jun 28, 2023

Conversation

tobert
Copy link
Collaborator

@tobert tobert commented Jun 28, 2023

While working on #227 a few gaps in testing were exposed, especially for gRPC and HTTP headers.

This PR adds functional tests for gRPC and HTTP header passing. Along the way I found the bug
in gRPC headers. When I wrote the gRPC client I assumed headers would be passed in with grpcOpts.
This was very wrong. I looked at the OTel collector, and it is passing them via grpc metadata. So I
fixed that.

Also added a test for the new ErrorList functionality. Just a single test for now but it's set up to add more.

Amy Tobey added 4 commits June 27, 2023 07:10
Not complete, but works. Set up as a table test, with just one simple
test for now.
Also expanded test to compare error lists.
There was an egregious testing gap. Mea culpa.

Adds tests for headers through grpc and http.

To do that, header support had to be added to the servers, so I did
that.

That provided the data needed to augment the test harness to check
headers. Added that.

Added functional tests that exercise the headers end-to-end.

Noticed grpc.WaitForReady() while I was perusing otel collector and
grpc docs, added a TODO to look into it later. Might be useful for
otel-cli status.
also added * support to checkHeaders
@tobert tobert changed the title fill in some testing gaps fill in some testing gaps, fix grpc headers Jun 28, 2023
@tobert tobert marked this pull request as ready for review June 28, 2023 22:44
@tobert tobert merged commit 32952e6 into main Jun 28, 2023
@tobert tobert deleted the moar-tests branch June 28, 2023 23:06
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