[KEYCLOAK-10918] For Fuse itests, update org.apache.karaf.management PID before restarting hawtio
This commit is contained in:
parent
e2cac64c2c
commit
f8ee7cc0f6
1 changed files with 12 additions and 12 deletions
|
@ -91,6 +91,12 @@ public class FuseUtils {
|
|||
"config:update",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"config:edit org.apache.karaf.management; " +
|
||||
"config:property-set jmxRealm keycloak;" +
|
||||
"config:update",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"feature:repo-add mvn:org.keycloak/keycloak-osgi-features/" + projectVersion + "/xml/features; " +
|
||||
"feature:repo-add mvn:org.keycloak.testsuite/fuse-example-keycloak-features/" + projectVersion + "/xml/features; " +
|
||||
|
@ -120,12 +126,6 @@ public class FuseUtils {
|
|||
"restart io.hawt.hawtio-war",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"config:edit org.apache.karaf.management; " +
|
||||
"config:property-set jmxRealm keycloak;" +
|
||||
"config:update",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"config:edit org.apache.karaf.shell; " +
|
||||
"config:property-set sshRealm keycloak; " +
|
||||
|
@ -154,6 +154,12 @@ public class FuseUtils {
|
|||
"config:update",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"config:edit org.apache.karaf.management; " +
|
||||
"config:propset jmxRealm keycloak;" +
|
||||
"config:update",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"features:addurl mvn:org.keycloak/keycloak-osgi-features/" + projectVersion + "/xml/features; " +
|
||||
"features:addurl mvn:org.keycloak.testsuite/fuse-example-keycloak-features/" + projectVersion + "/xml/features; " +
|
||||
|
@ -178,12 +184,6 @@ public class FuseUtils {
|
|||
"osgi:restart " + id,
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"config:edit org.apache.karaf.management; " +
|
||||
"config:propset jmxRealm keycloak;" +
|
||||
"config:update",
|
||||
Result.EMPTY);
|
||||
|
||||
assertCommand(managementUser, managementPassword,
|
||||
"config:edit org.apache.karaf.shell; " +
|
||||
"config:propset sshRealm keycloak; " +
|
||||
|
|
Loading…
Reference in a new issue