From adc914f783694233a5bdc3003ec3731fbcd49983 Mon Sep 17 00:00:00 2001 From: tonycody Date: Wed, 18 May 2022 10:08:16 +0800 Subject: [PATCH] Adding test code --- .../tests/test_jaeger_exporter_protobuf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py b/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py index 6cc4419526..f72b3fd404 100644 --- a/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py +++ b/exporter/opentelemetry-exporter-jaeger-proto-grpc/tests/test_jaeger_exporter_protobuf.py @@ -37,6 +37,7 @@ OTEL_EXPORTER_JAEGER_ENDPOINT, OTEL_EXPORTER_JAEGER_TIMEOUT, OTEL_RESOURCE_ATTRIBUTES, + OTEL_EXPORTER_JAEGER_GRPC_INSECURE, ) from opentelemetry.sdk.resources import SERVICE_NAME, Resource from opentelemetry.sdk.trace import TracerProvider @@ -87,6 +88,7 @@ def test_constructor_by_environment_variables(self): + "/certs/cred.cert", OTEL_RESOURCE_ATTRIBUTES: "service.name=my-opentelemetry-jaeger", OTEL_EXPORTER_JAEGER_TIMEOUT: "5", + OTEL_EXPORTER_JAEGER_GRPC_INSECURE: "False", }, ) @@ -99,6 +101,7 @@ def test_constructor_by_environment_variables(self): self.assertEqual(exporter.collector_endpoint, collector_endpoint) self.assertEqual(exporter._timeout, 5) self.assertIsNotNone(exporter.credentials) + self.assertEqual(exporter.insecure, False) env_patch.stop() # pylint: disable=too-many-locals,too-many-statements