Skip to content

Commit adc914f

Browse files
committed
Adding test code
1 parent eca07a5 commit adc914f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
OTEL_EXPORTER_JAEGER_ENDPOINT,
3838
OTEL_EXPORTER_JAEGER_TIMEOUT,
3939
OTEL_RESOURCE_ATTRIBUTES,
40+
OTEL_EXPORTER_JAEGER_GRPC_INSECURE,
4041
)
4142
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
4243
from opentelemetry.sdk.trace import TracerProvider
@@ -87,6 +88,7 @@ def test_constructor_by_environment_variables(self):
8788
+ "/certs/cred.cert",
8889
OTEL_RESOURCE_ATTRIBUTES: "service.name=my-opentelemetry-jaeger",
8990
OTEL_EXPORTER_JAEGER_TIMEOUT: "5",
91+
OTEL_EXPORTER_JAEGER_GRPC_INSECURE: "False",
9092
},
9193
)
9294

@@ -99,6 +101,7 @@ def test_constructor_by_environment_variables(self):
99101
self.assertEqual(exporter.collector_endpoint, collector_endpoint)
100102
self.assertEqual(exporter._timeout, 5)
101103
self.assertIsNotNone(exporter.credentials)
104+
self.assertEqual(exporter.insecure, False)
102105
env_patch.stop()
103106

104107
# pylint: disable=too-many-locals,too-many-statements

0 commit comments

Comments
 (0)