-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test OTLP exporters with different OkHttp versions (#6045)
- Loading branch information
Showing
8 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...otlp/all/src/testDefaultSender/java/io/opentelemetry/exporter/otlp/OkHttpVersionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.exporter.otlp; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
import static org.assertj.core.api.Assumptions.assumeThat; | ||
|
||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
import okhttp3.OkHttp; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class OkHttpVersionTest { | ||
|
||
private static final Logger LOGGER = Logger.getLogger(OkHttpVersionTest.class.getName()); | ||
|
||
@Test | ||
void expectedOkHttpVersion() { | ||
String expectedVersion = System.getProperty("expected.okhttp.version"); | ||
LOGGER.log(Level.WARNING, "Testing okhttp version " + expectedVersion); | ||
assumeThat(expectedVersion.equals("LATEST")).isFalse(); | ||
assertThat(OkHttp.VERSION).isEqualTo(expectedVersion); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters