Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoravong committed Sep 4, 2024
1 parent 89d0fce commit 3ccba05
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/unittests/operator_customized_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ tests:
name: SPLUNK_PROFILER_MEMORY_ENABLED
value: "true"
- contains:
path: spec.nodjs.env
path: spec.nodejs.env
content:
name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://$(NODEJS_OTEL_AGENT):4318"
- contains:
path: spec.nodejs.env
content:
name: SPLUNK_PROFILER_ENABLED
value: "false"
- contains:
path: spec.nodejs.env
content:
name: SPLUNK_PROFILER_MEMORY_ENABLED
value: "false"
42 changes: 42 additions & 0 deletions test/unittests/operator_default_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,45 @@ tests:
- equal:
path: spec.exporter.endpoint
value: http://$(SPLUNK_OTEL_AGENT):4317
- contains:
path: spec.propagators
content: tracecontext
- contains:
path: spec.propagators
content: baggage
- contains:
path: spec.propagators
content: b3
- contains:
path: spec.env
content:
name: SPLUNK_OTEL_AGENT
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- contains:
path: spec.dotnet.env
content:
name: OTEL_DOTNET_AUTO_PLUGINS
value: Splunk.OpenTelemetry.AutoInstrumentation.Plugin,Splunk.OpenTelemetry.AutoInstrumentation
- contains:
path: spec.dotnet.env
content:
name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(SPLUNK_OTEL_AGENT):4318
- contains:
path: spec.env
content:
name: SPLUNK_OTEL_AGENT
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- contains:
path: spec.java.env
content:
name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(SPLUNK_OTEL_AGENT):4318


0 comments on commit 3ccba05

Please sign in to comment.