|
6 | 6 | package io.opentelemetry.javaagent.extension.internal;
|
7 | 7 |
|
8 | 8 | import static org.assertj.core.api.Assertions.assertThat;
|
9 |
| -import static org.assertj.core.data.MapEntry.entry; |
10 | 9 |
|
11 | 10 | import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
|
12 | 11 | import io.opentelemetry.sdk.extension.incubator.fileconfig.DeclarativeConfiguration;
|
|
20 | 19 | import java.util.Map;
|
21 | 20 | import java.util.Objects;
|
22 | 21 | import org.junit.jupiter.api.BeforeEach;
|
23 |
| -import org.junit.jupiter.api.DisplayName; |
24 | 22 | import org.junit.jupiter.api.Test;
|
25 | 23 |
|
26 | 24 | class DeclarativeConfigPropertiesBridgeTest {
|
@@ -121,24 +119,6 @@ void vendor() {
|
121 | 119 | assertThat(bridge.getBoolean("acme.full_name.preserved")).isTrue();
|
122 | 120 | }
|
123 | 121 |
|
124 |
| - @DisplayName("properties from the general instrumentation section in config.yaml") |
125 |
| - @Test |
126 |
| - void general() { |
127 |
| - assertThat(bridge.getMap("otel.instrumentation.common.peer-service-mapping")) |
128 |
| - .containsOnly(entry("1.2.3.4", "FooService"), entry("2.3.4.5", "BarService")); |
129 |
| - // not supported in SDK yet (this is strictly typed) |
130 |
| - // assertThat(bridge.getList("otel.instrumentation.http.known-methods")) |
131 |
| - // .containsExactly("GET", "POST", "PUT"); |
132 |
| - assertThat(bridge.getList("otel.instrumentation.http.client.capture-request-headers")) |
133 |
| - .containsExactly("Content-Type", "Accept"); |
134 |
| - assertThat(bridge.getList("otel.instrumentation.http.client.capture-response-headers")) |
135 |
| - .containsExactly("Content-Type", "Content-Encoding"); |
136 |
| - assertThat(bridge.getList("otel.instrumentation.http.server.capture-request-headers")) |
137 |
| - .containsExactly("Content-Type", "Accept"); |
138 |
| - assertThat(bridge.getList("otel.instrumentation.http.server.capture-response-headers")) |
139 |
| - .containsExactly("Content-Type", "Content-Encoding"); |
140 |
| - } |
141 |
| - |
142 | 122 | @Test
|
143 | 123 | void common() {
|
144 | 124 | assertThat(bridge.getBoolean("otel.instrumentation.common.default-enabled")).isFalse();
|
|
0 commit comments