@@ -132,9 +132,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigFromEnv)
132132 unsetenv (" OTEL_EXPORTER_OTLP_HEADERS" );
133133 unsetenv (" OTEL_EXPORTER_OTLP_METRICS_HEADERS" );
134134}
135- # endif
136135
137- # ifndef NO_GETENV
138136// Test exporter configuration options with use_ssl_credentials
139137TEST_F (OtlpGrpcMetricExporterTestPeer, ConfigHttpsSecureFromEnv)
140138{
@@ -150,9 +148,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigHttpsSecureFromEnv)
150148 unsetenv (" OTEL_EXPORTER_OTLP_ENDPOINT" );
151149 unsetenv (" OTEL_EXPORTER_OTLP_METRICS_INSECURE" );
152150}
153- # endif
154151
155- # ifndef NO_GETENV
156152// Test exporter configuration options with use_ssl_credentials
157153TEST_F (OtlpGrpcMetricExporterTestPeer, ConfigHttpInsecureFromEnv)
158154{
@@ -168,9 +164,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigHttpInsecureFromEnv)
168164 unsetenv (" OTEL_EXPORTER_OTLP_ENDPOINT" );
169165 unsetenv (" OTEL_EXPORTER_OTLP_METRICS_INSECURE" );
170166}
171- # endif
172167
173- # ifndef NO_GETENV
174168// Test exporter configuration options with use_ssl_credentials
175169TEST_F (OtlpGrpcMetricExporterTestPeer, ConfigUnknownSecureFromEnv)
176170{
@@ -185,9 +179,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigUnknownSecureFromEnv)
185179 unsetenv (" OTEL_EXPORTER_OTLP_ENDPOINT" );
186180 unsetenv (" OTEL_EXPORTER_OTLP_METRICS_INSECURE" );
187181}
188- # endif
189182
190- # ifndef NO_GETENV
191183// Test exporter configuration options with use_ssl_credentials
192184TEST_F (OtlpGrpcMetricExporterTestPeer, ConfigUnknownInsecureFromEnv)
193185{
@@ -202,9 +194,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigUnknownInsecureFromEnv)
202194 unsetenv (" OTEL_EXPORTER_OTLP_ENDPOINT" );
203195 unsetenv (" OTEL_EXPORTER_OTLP_METRICS_INSECURE" );
204196}
205- # endif
206197
207- # ifndef NO_GETENV
208198TEST_F (OtlpGrpcMetricExporterTestPeer, ConfigRetryDefaultValues)
209199{
210200 std::unique_ptr<OtlpGrpcMetricExporter> exporter (new OtlpGrpcMetricExporter ());
0 commit comments