mirror of
https://github.com/keycloak/keycloak.git
synced 2026-04-25 00:20:47 -05:00
[KEYCLOAK-19847] - Restore Docker Dist tests coverage
This commit is contained in:
@@ -414,7 +414,7 @@ jobs:
|
||||
|
||||
- name: Run Quarkus Tests in Docker
|
||||
run: |
|
||||
mvn clean install -nsu -B -f quarkus/tests/pom.xml -Dkc.quarkus.tests.dist=docker -Dtest=StartDevCommandTest | misc/log/trimmer.sh
|
||||
mvn clean install -nsu -B -f quarkus/tests/pom.xml -Dkc.quarkus.tests.dist=docker | misc/log/trimmer.sh
|
||||
TEST_RESULT=${PIPESTATUS[0]}
|
||||
exit $TEST_RESULT
|
||||
|
||||
|
||||
+3
-1
@@ -51,6 +51,8 @@ class BuildCommandDistTest {
|
||||
() -> "The Error Output:\n" + result.getErrorOutput() + "doesn't contains the expected string.");
|
||||
assertTrue(result.getErrorOutput().contains("For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command."),
|
||||
() -> "The Error Output:\n" + result.getErrorOutput() + "doesn't contains the expected string.");
|
||||
assertEquals(4, result.getErrorStream().size());
|
||||
String errorString = "";
|
||||
for (String s: result.getErrorStream()) { errorString += s + "\n"; }
|
||||
assertEquals(4, errorString.split("\n").length);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -35,6 +35,8 @@ public class StartCommandDistTest extends StartCommandTest {
|
||||
void failIfAutoBuildUsingDevProfile(LaunchResult result) {
|
||||
assertTrue(result.getErrorOutput().contains("ERROR: You can not 'start' the server using the 'dev' configuration profile. Please re-build the server first, using 'kc.sh build' for the default production profile, or using 'kc.sh build --profile=<profile>' with a profile more suitable for production."),
|
||||
() -> "The Output:\n" + result.getErrorOutput() + "doesn't contains the expected string.");
|
||||
assertEquals(4, result.getErrorStream().size());
|
||||
String errorString = "";
|
||||
for (String s: result.getErrorStream()) { errorString += s + "\n"; }
|
||||
assertEquals(4, errorString.split("\n").length);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user