From 5ad929b9ee26a9ff3356b94cc79647ede2b703c5 Mon Sep 17 00:00:00 2001 From: vramik Date: Wed, 28 Nov 2018 19:00:51 +0100 Subject: [PATCH] KEYCLOAK-8955 adapter installation fails on windows - eap7 --- .../jboss/common/win/run-jboss-cli.bat | 17 ++ .../servers/app-server/jboss/pom.xml | 147 ++++++++++++++---- 2 files changed, 138 insertions(+), 26 deletions(-) create mode 100644 testsuite/integration-arquillian/servers/app-server/jboss/common/win/run-jboss-cli.bat diff --git a/testsuite/integration-arquillian/servers/app-server/jboss/common/win/run-jboss-cli.bat b/testsuite/integration-arquillian/servers/app-server/jboss/common/win/run-jboss-cli.bat new file mode 100644 index 0000000000..fd4a87f124 --- /dev/null +++ b/testsuite/integration-arquillian/servers/app-server/jboss/common/win/run-jboss-cli.bat @@ -0,0 +1,17 @@ +set "NOPAUSE=true" +set cli_file=%2 +set working_dir=%3 + +cd %working_dir% + +if "%4"=="-Dserver.config" ( + set server_config=%5 +) else ( + set server_config=standalone.xml +) + +if "%4"=="-Djboss.server.config.dir" ( + jboss-cli.bat --file=%cli_file% -Dserver.config=%server_config% -Djboss.server.config.dir=%5 +) else ( + jboss-cli.bat --file=%cli_file% -Dserver.config=%server_config% +) diff --git a/testsuite/integration-arquillian/servers/app-server/jboss/pom.xml b/testsuite/integration-arquillian/servers/app-server/jboss/pom.xml index 49029891e7..5fdc0e185a 100644 --- a/testsuite/integration-arquillian/servers/app-server/jboss/pom.xml +++ b/testsuite/integration-arquillian/servers/app-server/jboss/pom.xml @@ -39,10 +39,27 @@ ${project.version} true true + + ./jboss-cli.${script.suffix} + ${app.server.jboss.home}/bin + + + windows-properties-cli + + + Windows + + + + run-jboss-cli.bat + ${common.resources}/win + ${app.server.jboss.home}/bin + + app-server-jboss-submodules @@ -249,10 +266,16 @@ ${skip.apply.offline.cli} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${common.resources}/cli/add-adapter-log-level.cli + + ${cli.win.working.dir} @@ -264,10 +287,16 @@ ${skip.apply.offline.cli} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${common.resources}/cli/add-adapter-log-level.cli + + ${cli.win.working.dir} -Dserver.config=standalone-ha.xml @@ -282,10 +311,16 @@ ${skip.elytron.adapter.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-elytron-install-offline.cli + + ${cli.win.working.dir} @@ -298,10 +333,16 @@ ${skip.elytron.adapter.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-elytron-install-offline.cli + + ${cli.win.working.dir} -Dserver.config=standalone-ha.xml @@ -315,10 +356,16 @@ ${skip.elytron.adapter.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-elytron-install-saml-offline.cli + + ${cli.win.working.dir} @@ -331,10 +378,16 @@ ${skip.elytron.adapter.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-elytron-install-saml-offline.cli + + ${cli.win.working.dir} -Dserver.config=standalone-ha.xml @@ -349,10 +402,16 @@ ${skip.adapter.offline.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-install-offline.cli + + ${cli.win.working.dir} @@ -365,10 +424,16 @@ ${skip.adapter.offline.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-install-offline.cli + + ${cli.win.working.dir} -Dserver.config=standalone-ha.xml @@ -382,10 +447,16 @@ ${skip.adapter.offline.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-install-saml-offline.cli + + ${cli.win.working.dir} @@ -398,10 +469,16 @@ ${skip.adapter.offline.installation} - ./jboss-cli.${script.suffix} - ${app.server.jboss.home}/bin + ${cli.executable} + ${cli.working.dir} --file=${app.server.jboss.home}/bin/adapter-install-saml-offline.cli + + ${cli.win.working.dir} -Dserver.config=standalone-ha.xml @@ -414,10 +491,16 @@ ${skip.apply.offline.cli} - ${app.server.jboss.home}/bin - ./jboss-cli.sh + ${cli.executable} + ${cli.working.dir} --file=${common.resources}/cli/add-secured-deployments.cli + + ${cli.win.working.dir} -Djboss.server.config.dir=${app.server.jboss.home}/standalone-secured-deployments/configuration @@ -430,10 +513,16 @@ ${skip.configure.clustered.scenario} - ${app.server.jboss.home}/bin - ./jboss-cli.sh + ${cli.executable} + ${cli.working.dir} --file=${common.resources}/cli/configure-cluster-config.cli + + ${cli.win.working.dir} -Djboss.server.config.dir=${app.server.jboss.home}/standalone-cluster/configuration @@ -446,10 +535,16 @@ ${skip.configure.clustered.scenario} - ${app.server.jboss.home}/bin - ./jboss-cli.sh + ${cli.executable} + ${cli.working.dir} --file=${common.resources}/cli/configure-crossdc-config.cli + + ${cli.win.working.dir} -Djboss.server.config.dir=${app.server.jboss.home}/standalone-crossdc/configuration