mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
22 lines
741 B
Bash
22 lines
741 B
Bash
#!/usr/bin/env bats
|
|
|
|
load 'test_helpers/utilities.bash'
|
|
load 'test_helpers/assertions.bash'
|
|
|
|
@test "HDX-1453: JSON string body content should be parsed and stored as log attributes" {
|
|
emit_otel_data "http://localhost:4318" "data/auto-parse/json-string"
|
|
sleep 1
|
|
assert_test_data "data/auto-parse/json-string"
|
|
}
|
|
|
|
@test "HDX-1453: OTEL map content should be stored as log attributes" {
|
|
emit_otel_data "http://localhost:4318" "data/auto-parse/otel-map"
|
|
sleep 1
|
|
assert_test_data "data/auto-parse/otel-map"
|
|
}
|
|
|
|
@test "HDX-1453: all other content should skip storing values in log attributes" {
|
|
emit_otel_data "http://localhost:4318" "data/auto-parse/default"
|
|
sleep 1
|
|
assert_test_data "data/auto-parse/default"
|
|
}
|