-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an otel-cli exec test & remove skip which was causing it to not b…
…e run by go test (#84) * Adds a basic otel-cli exec test. * Removes an unneeded skip from main_test.go that was causing tests after 80-span-background to not run.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
{ | ||
"description": "otel-cli exec basic test and stuff", | ||
"config": { | ||
"env": { | ||
"OTEL_EXPORTER_OTLP_ENDPOINT": "{{endpoint}}", | ||
"TRACEPARENT": "00-edededededededededededededed9000-edededededededed-01" | ||
}, | ||
"cli_args": [ | ||
"exec", | ||
"--service", | ||
"main_test.go", | ||
"--name", | ||
"test-span-123", | ||
"--kind", | ||
"server", | ||
"echo hello world" | ||
] | ||
}, | ||
"expect": { | ||
"output": "hello world\n", | ||
"spans": 2, | ||
"span_data": { | ||
"trace_id": "edededededededededededededed9000", | ||
"span_id": "*", | ||
"is_sampled": "true" | ||
} | ||
} | ||
} | ||
] |
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