Skip to content

Commit 0817b50

Browse files
committed
Add static strings to test
1 parent 65a0298 commit 0817b50

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/test/resources/test-definitions/logs-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ globalPayloadFrequencySeconds: 30
1818
logs:
1919
- attributes:
2020
log.labels: '{"generator": roundRobin(["Telemetry-Generator", "Telemetry-Generator-v2"]), "type": "k8s"}'
21+
type: 'log'
2122
severityOrderFunction: 'severityDistributionCount(["INFO", "ERROR", "DEBUG"], [1, 2, 3])'
2223
payloadFrequencySeconds: 20
2324
payloadCount: 10

src/test/resources/test-definitions/metrics-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ metrics:
2626
reportingResources: [network_interface, container, machine]
2727
attributes:
2828
system.internal.ip: 'IPv4Sequence("10.134.1.34")'
29+
unit: 'kbps'
2930
- name: system.network.out.kb.sec
3031
unit: kBy/s
3132
otelType: summary

src/test/resources/test-definitions/resource-definition.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ resources:
7878
childrenDistribution:
7979
container: 'distribution(2, 0, 0)'
8080
attributes:
81+
k8s.resource.type: 'k8s.pod'
8182
k8s.pod.ip: 'IPv4Sequence("133.29.54.1")'
8283
k8s.pod.status: 'roundRobin(["Pending","Running","Succeeded","Unknown"])'
8384
k8s.pod.labels: '{"app": alphanumericSequence("gnrtrx").concat("-service"), "ip": IPv4Sequence("133.45.54.2"), "version": roundRobin(["latest", "22.5.0-142"])}'

src/test/resources/test-definitions/trace-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rootSpans:
2121
reportingResource: http_backend
2222
copyResourceAttributes: ["http_port"]
2323
attributes:
24-
type: 'roundRobin(["REST"])'
24+
type: 'REST'
2525
url: 'roundRobin(["/healthcheck"])'
2626
payloadCount: 10
2727
copyCount: 20

0 commit comments

Comments
 (0)