diff --git a/commands/pom.xml b/commands/pom.xml index 08449cc6..813fef07 100644 --- a/commands/pom.xml +++ b/commands/pom.xml @@ -5,7 +5,7 @@ org.wildfly.extras.creaper creaper-parent - 1.5.1-elytron.DR18-SNAPSHOT + 1.5.1-elytron.DR19.1 creaper-commands diff --git a/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManager.groovy b/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManager.groovy index 251a0bd5..78ac060f 100644 --- a/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManager.groovy +++ b/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManager.groovy @@ -19,23 +19,23 @@ def keyManagerDefinition = { def isExistingTls = elytronSubsystem.'tls'.any { it.name() == 'tls' } if (! isExistingTls) { - elytronSubsystem.appendNode { 'tls' { 'key-manager' keyManagerDefinition } } + elytronSubsystem.appendNode { 'tls' { 'key-managers' keyManagerDefinition } } return } -def isExistingKeyManager = elytronSubsystem.'tls'.'key-manager'.any { it.name() == 'key-manager' } -if (! isExistingKeyManager) { - elytronSubsystem.'tls'.appendNode { 'key-manager' keyManagerDefinition } +def isExistingKeyManagers = elytronSubsystem.'tls'.'key-managers'.any { it.name() == 'key-managers' } +if (! isExistingKeyManagers) { + elytronSubsystem.'tls'.appendNode { 'key-managers' keyManagerDefinition } return } -def existingKeyManager = elytronSubsystem.'tls'.'key-manager'.'key-manager'.find { it.'@name' == atrName } +def existingKeyManager = elytronSubsystem.'tls'.'key-managers'.'key-manager'.find { it.'@name' == atrName } if (existingKeyManager && !atrReplaceExisting) { throw new IllegalStateException("KeyManager with name $atrName already exists in configuration. Use different name.") } else { if (existingKeyManager) { existingKeyManager.replaceNode keyManagerDefinition } else { - elytronSubsystem.'tls'.'key-manager'.appendNode keyManagerDefinition + elytronSubsystem.'tls'.'key-managers'.appendNode keyManagerDefinition } } diff --git a/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManager.groovy b/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManager.groovy index 68bf360d..1365f104 100644 --- a/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManager.groovy +++ b/commands/src/main/resources/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManager.groovy @@ -22,23 +22,23 @@ def trustManagerDefinition = { def isExistingTls = elytronSubsystem.'tls'.any { it.name() == 'tls' } if (! isExistingTls) { - elytronSubsystem.appendNode { 'tls' { 'trust-manager' trustManagerDefinition } } + elytronSubsystem.appendNode { 'tls' { 'trust-managers' trustManagerDefinition } } return } -def isExistingTrustManager = elytronSubsystem.'tls'.'trust-manager'.any { it.name() == 'trust-manager' } -if (! isExistingTrustManager) { - elytronSubsystem.'tls'.appendNode { 'trust-manager' trustManagerDefinition } +def isExistingTrustManagers = elytronSubsystem.'tls'.'trust-managers'.any { it.name() == 'trust-managers' } +if (! isExistingTrustManagers) { + elytronSubsystem.'tls'.appendNode { 'trust-managers' trustManagerDefinition } return } -def existingTrustManager = elytronSubsystem.'tls'.'trust-manager'.'trust-manager'.find { it.'@name' == atrName } +def existingTrustManager = elytronSubsystem.'tls'.'trust-managers'.'trust-manager'.find { it.'@name' == atrName } if (existingTrustManager && !atrReplaceExisting) { throw new IllegalStateException("TrustManager with name $atrName already exists in configuration. Use different name.") } else { if (existingTrustManager) { existingTrustManager.replaceNode trustManagerDefinition } else { - elytronSubsystem.'tls'.'trust-manager'.appendNode trustManagerDefinition + elytronSubsystem.'tls'.'trust-managers'.appendNode trustManagerDefinition } } diff --git a/core/pom.xml b/core/pom.xml index a024687f..cb35d954 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,7 +5,7 @@ org.wildfly.extras.creaper creaper-parent - 1.5.1-elytron.DR18-SNAPSHOT + 1.5.1-elytron.DR19.1 creaper-core diff --git a/pom.xml b/pom.xml index 3e381e28..d4a01c9b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.wildfly.extras.creaper creaper-parent - 1.5.1-elytron.DR18-SNAPSHOT + 1.5.1-elytron.DR19.1 pom Creaper: Parent diff --git a/testsuite/common/pom.xml b/testsuite/common/pom.xml index fd75f00a..b98452ee 100644 --- a/testsuite/common/pom.xml +++ b/testsuite/common/pom.xml @@ -5,7 +5,7 @@ org.wildfly.extras.creaper creaper-testsuite - 1.5.1-elytron.DR18-SNAPSHOT + 1.5.1-elytron.DR19.1 creaper-testsuite-common diff --git a/testsuite/pom.xml b/testsuite/pom.xml index 5a995c01..645ae32b 100644 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -5,7 +5,7 @@ org.wildfly.extras.creaper creaper-parent - 1.5.1-elytron.DR18-SNAPSHOT + 1.5.1-elytron.DR19.1 creaper-testsuite diff --git a/testsuite/standalone/pom.xml b/testsuite/standalone/pom.xml index 67125b45..804c28db 100644 --- a/testsuite/standalone/pom.xml +++ b/testsuite/standalone/pom.xml @@ -5,7 +5,7 @@ org.wildfly.extras.creaper creaper-testsuite - 1.5.1-elytron.DR18-SNAPSHOT + 1.5.1-elytron.DR19.1 creaper-testsuite-standalone diff --git a/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/mapper/AbstractAddPrincipalDecoderOnlineTest.java b/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/mapper/AbstractAddPrincipalDecoderOnlineTest.java index 9902836e..6e2439fd 100644 --- a/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/mapper/AbstractAddPrincipalDecoderOnlineTest.java +++ b/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/mapper/AbstractAddPrincipalDecoderOnlineTest.java @@ -2,12 +2,14 @@ import java.util.Arrays; import java.util.List; + import org.junit.AfterClass; import org.junit.BeforeClass; import org.wildfly.extras.creaper.commands.elytron.AbstractElytronOnlineTest; import org.wildfly.extras.creaper.core.online.OnlineManagementClient; import org.wildfly.extras.creaper.core.online.operations.Address; import org.wildfly.extras.creaper.core.online.operations.Operations; +import org.wildfly.extras.creaper.core.online.operations.admin.Administration; public class AbstractAddPrincipalDecoderOnlineTest extends AbstractElytronOnlineTest { @@ -54,6 +56,7 @@ public static void removePrincipalDecoders() throws Exception { ops.removeIfExists(TEST_CONSTANT_PRINCIPAL_DECODER_ADDRESS); ops.removeIfExists(TEST_CONSTANT_PRINCIPAL_DECODER_ADDRESS2); ops.removeIfExists(TEST_DIFFERENT_PRINCIPAL_DECODER_ADDRESS); + new Administration(client).reloadIfRequired(); } } } diff --git a/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManagerOfflineTest.java b/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManagerOfflineTest.java index 89e05879..65d74243 100644 --- a/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManagerOfflineTest.java +++ b/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddKeyManagerOfflineTest.java @@ -44,8 +44,8 @@ public class AddKeyManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" - + " \n" + + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -56,11 +56,11 @@ public class AddKeyManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -71,11 +71,11 @@ public class AddKeyManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -86,14 +86,14 @@ public class AddKeyManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -104,12 +104,12 @@ public class AddKeyManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" diff --git a/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManagerOfflineTest.java b/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManagerOfflineTest.java index 073d1117..17bf9a55 100644 --- a/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManagerOfflineTest.java +++ b/testsuite/standalone/src/test/java/org/wildfly/extras/creaper/commands/elytron/tls/AddTrustManagerOfflineTest.java @@ -44,8 +44,8 @@ public class AddTrustManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" - + " \n" + + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -56,9 +56,9 @@ public class AddTrustManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -69,9 +69,9 @@ public class AddTrustManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -82,10 +82,10 @@ public class AddTrustManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" @@ -96,12 +96,12 @@ public class AddTrustManagerOfflineTest { + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n" - + " \n" + + " \n" + " \n" + " \n" + " \n"