-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
…lation
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.reactive.mssql.client; | ||
|
||
import org.hamcrest.CoreMatchers; | ||
import org.hamcrest.Matchers; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkus.test.QuarkusUnitTest; | ||
import io.restassured.RestAssured; | ||
|
||
public class DataSourceHealthCheckPayloadTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.withConfigurationResource("application-default-datasource.properties") | ||
.overrideConfigKey("quarkus.datasource.health.enabled", "true"); | ||
|
||
@Test | ||
public void testDataSourceHealthCheckExclusion() { | ||
RestAssured.when().get("/q/health/ready") | ||
.then() | ||
.body("status", CoreMatchers.equalTo("DOWN")) | ||
Check failure on line 23 in extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 17
Raw output
Check failure on line 23 in extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 21
Raw output
|
||
.body("checks.data", CoreMatchers | ||
.hasItem(Matchers.hasValue(CoreMatchers.containsString("down - connection failed")))); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.reactive.mysql.client; | ||
|
||
import org.hamcrest.CoreMatchers; | ||
import org.hamcrest.Matchers; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkus.test.QuarkusUnitTest; | ||
import io.restassured.RestAssured; | ||
|
||
public class DataSourceHealthCheckPayloadTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.withConfigurationResource("application-default-datasource.properties") | ||
.overrideConfigKey("quarkus.datasource.health.enabled", "true"); | ||
|
||
@Test | ||
public void testDataSourceHealthCheckExclusion() { | ||
RestAssured.when().get("/q/health/ready") | ||
.then() | ||
.body("status", CoreMatchers.equalTo("DOWN")) | ||
Check failure on line 23 in extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 17
Raw output
Check failure on line 23 in extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 21
Raw output
|
||
.body("checks.data", CoreMatchers | ||
.hasItem(Matchers.hasValue(CoreMatchers.containsString("down - connection failed")))); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.reactive.oracle.client; | ||
|
||
import org.hamcrest.CoreMatchers; | ||
import org.hamcrest.Matchers; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkus.test.QuarkusUnitTest; | ||
import io.restassured.RestAssured; | ||
|
||
public class DataSourceHealthCheckPayloadTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.withConfigurationResource("application-default-datasource.properties") | ||
.overrideConfigKey("quarkus.datasource.health.enabled", "true"); | ||
|
||
@Test | ||
public void testDataSourceHealthCheckExclusion() { | ||
RestAssured.when().get("/q/health/ready") | ||
.then() | ||
.body("status", CoreMatchers.equalTo("DOWN")) | ||
Check failure on line 23 in extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 17
Raw output
Check failure on line 23 in extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 21
Raw output
|
||
.body("checks.data", CoreMatchers | ||
.hasItem(Matchers.hasValue(CoreMatchers.containsString("down - connection failed")))); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.reactive.pg.client; | ||
|
||
import org.hamcrest.CoreMatchers; | ||
import org.hamcrest.Matchers; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkus.test.QuarkusUnitTest; | ||
import io.restassured.RestAssured; | ||
|
||
public class DataSourceHealthCheckPayloadTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.withConfigurationResource("application-default-datasource.properties") | ||
.overrideConfigKey("quarkus.datasource.health.enabled", "true"); | ||
|
||
@Test | ||
public void testDataSourceHealthCheckExclusion() { | ||
RestAssured.when().get("/q/health/ready") | ||
.then() | ||
.body("status", CoreMatchers.equalTo("DOWN")) | ||
Check failure on line 23 in extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 17
Raw output
Check failure on line 23 in extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DataSourceHealthCheckPayloadTest.java quarkus-bot / Build summary for 9ff2f52e9ef59493204c19bbb8f5f2cd0bdece21JVM Tests - JDK 21
Raw output
|
||
.body("checks.data", CoreMatchers | ||
.hasItem(Matchers.hasValue(CoreMatchers.containsString("down - connection failed")))); | ||
} | ||
|
||
} |