-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OTLP integration test for hyper and request client for logs and t…
…races (#2312) Co-authored-by: Zhongyang Wu <[email protected]> Co-authored-by: Cijo Thomas <[email protected]>
- Loading branch information
1 parent
5b6e9b9
commit c225c82
Showing
5 changed files
with
59 additions
and
7 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
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
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,20 @@ | ||
cd ./opentelemetry-otlp/tests/integration_test/tests && cargo test -- --ignored | ||
set -e | ||
TEST_DIR="./opentelemetry-otlp/tests/integration_test/tests" | ||
|
||
if [ -d "$TEST_DIR" ]; then | ||
cd "$TEST_DIR" | ||
# Run tests with the grpc-tonic feature | ||
cargo test --no-default-features --features "tonic-client" -- --ignored | ||
|
||
# Run tests with the reqwest-client feature | ||
cargo test --no-default-features --features "reqwest-client" -- --ignored | ||
|
||
# TODO - Uncomment the following lines once the reqwest-blocking-client feature is working. | ||
# cargo test --no-default-features --features "reqwest-blocking-client" -- --ignored | ||
|
||
# Run tests with the hyper-client feature | ||
cargo test --no-default-features --features "hyper-client" -- --ignored | ||
else | ||
echo "Directory $TEST_DIR does not exist. Skipping tests." | ||
exit 1 | ||
fi |