Skip to content

Commit

Permalink
IT test scheleton
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobat committed Feb 28, 2024
1 parent 8794815 commit 676cb06
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.quarkiverse.opentelemetry.exporter.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;

@QuarkusIntegrationTest
public class AzureIT extends AzureTest {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package io.quarkiverse.opentelemetry.exporter.it;

import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.equalTo;

@QuarkusTest
public class AzureTest {

@Test
void connectionTest() {
given()
.contentType("application/json")
.when().get("/direct")
.then()
.statusCode(200)
.body("message", equalTo("Direct trace"));

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
quarkus.otel.azure.applicationinsights.connection.string=InstrumentationKey=bla;IngestionEndpoint=https://bla
```

0 comments on commit 676cb06

Please sign in to comment.