-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IT / native test(s), add it to native-tests run
- Loading branch information
Showing
8 changed files
with
29 additions
and
10 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
14 changes: 14 additions & 0 deletions
14
...ts/observability-lgtm/src/test/java/io/quarkus/observability/test/LgtmConfigTestBase.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,14 @@ | ||
package io.quarkus.observability.test; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
public abstract class LgtmConfigTestBase extends LgtmTestBase { | ||
|
||
@ConfigProperty(name = "grafana.endpoint") | ||
String endpoint; | ||
|
||
@Override | ||
protected String grafanaEndpoint() { | ||
return endpoint; | ||
} | ||
} |
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
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
9 changes: 8 additions & 1 deletion
9
...tests/observability-lgtm/src/test/java/io/quarkus/observability/test/LgtmResourcesIT.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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
package io.quarkus.observability.test; | ||
|
||
import org.eclipse.microprofile.config.ConfigProvider; | ||
import org.junit.jupiter.api.condition.DisabledOnOs; | ||
import org.junit.jupiter.api.condition.OS; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.TestProfile; | ||
|
||
@QuarkusIntegrationTest | ||
@TestProfile(LgtmResourcesTest.DevResourcesTestProfileOnly.class) | ||
@DisabledOnOs(OS.WINDOWS) | ||
public class LgtmResourcesIT extends LgtmResourcesTest { | ||
public class LgtmResourcesIT extends LgtmTestBase { | ||
@Override | ||
protected String grafanaEndpoint() { | ||
return ConfigProvider.getConfig().getValue("grafana.endpoint", String.class); | ||
} | ||
} |
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
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
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