-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmd/opampsupervisor] Add integration/E2E tests (#27002)
**Description:** Add tests that verify the Supervisor's behavior using a real Collector binary against an OpAMP server written with the opamp-go library. This tests a basic set of functionality mostly based on what is currently listed as implemented in the Supervisor's feature table. Right now these tests start the Supervisor using the Go API to avoid process handling, but could be changed to start it through a binary in the future. I've placed these tests in the E2E testing workflow even though they run fairly quickly since they depend on a built Collector binary, may become more expansive in the future, and don't fit in any of the existing jobs in the `build-and-test` workflow. I'm open to placing them in another location if we'd prefer them elsewhere. This also updates opamp-go to v0.9.0 to take advantage of open-telemetry/opamp-go#200. **Link to tracking Issue:** Resolves #24292
- Loading branch information
1 parent
7640dc9
commit 411c707
Showing
11 changed files
with
513 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
include ../../Makefile.Common | ||
|
||
e2e-test: | ||
make -C ../../ otelcontribcol | ||
go test -v --tags=e2e . |
Oops, something went wrong.