Skip to content

add http testing#143

Merged
tobert merged 13 commits into
mainfrom
add-http-to-test-harness
Jan 27, 2023
Merged

add http testing#143
tobert merged 13 commits into
mainfrom
add-http-to-test-harness

Conversation

@tobert

@tobert tobert commented Jan 27, 2023

Copy link
Copy Markdown
Contributor

Refactors otlpserver to an interface and adds a simple HTTP server that can receive and translate traces.

This is step 1 to do #142 correctly, as I wish to test the heck out of endpoint and protocol combinations in the next couple PRs.

Amy Tobey added 12 commits January 27, 2023 12:20
Broke the surface otel-cli and main_test care about into an interface.

Ported grpcserver and referents to the interface.

Added skeleton http server.

Tests pass :)
Added a simple http handler for testing. Not ready yet.

Added plumbing so http protocol can be requested, but it's not used yet.

Correct some types.
Broke the code that converts protobuf data to CliEvents out into
its own function and moved it to clievent.go.

Converted the gRPC server to use that.

Added it to the HTTP server and it just worked the first time.

Since proto is now imported directly, it go.mod changed to reflect that.
Added ServerMeta to the CliEvent struct as a string map that
httpserver now plugs a bunch of metadata into.

Added that to the test harness.

Added metadata to the test so now path & proto are verified.
edw-eqix
edw-eqix previously approved these changes Jan 27, 2023
@tobert
tobert merged commit b164427 into main Jan 27, 2023
@tobert
tobert deleted the add-http-to-test-harness branch January 27, 2023 21:20
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.

2 participants