From 550ec2ff5157cb5919eb18e46c160feace292087 Mon Sep 17 00:00:00 2001 From: Vlasta Ramik Date: Tue, 27 Sep 2016 12:22:27 +0200 Subject: [PATCH] Update default datasource definition to XA --- .../jboss/common/datasource-jdbc-url.xsl | 8 +-- .../auth-server/jboss/common/datasource.xsl | 63 ++++++++++------- .../servers/auth-server/jboss/pom.xml | 20 +++++- .../servers/migration/pom.xml | 20 +++++- .../migration/src/main/xslt/datasource.xsl | 69 ++++++++++++------- 5 files changed, 120 insertions(+), 60 deletions(-) diff --git a/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource-jdbc-url.xsl b/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource-jdbc-url.xsl index 445b9733ff..f7d35d3f31 100644 --- a/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource-jdbc-url.xsl +++ b/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource-jdbc-url.xsl @@ -15,11 +15,11 @@ - + /*[local-name()='xa-datasource' and starts-with(namespace-uri(), $nsDS) and @pool-name=$pool.name] + /*[local-name()='xa-datasource-property' and starts-with(namespace-uri(), $nsDS) and @name='URL']"> + - + diff --git a/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource.xsl b/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource.xsl index bf199cb88a..72b0403f2f 100644 --- a/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource.xsl +++ b/testsuite/integration-arquillian/servers/auth-server/jboss/common/datasource.xsl @@ -29,24 +29,42 @@ + /*[local-name()='xa-datasource' and starts-with(namespace-uri(), $nsDS) and @pool-name='KeycloakDS']"> - - + + + + + + - - - - - - + + - - - - + + + + + + + + + + + + + + + + + + + 4 + + + @@ -58,23 +76,16 @@ - - - - - - - - - - - - + - + + + + + diff --git a/testsuite/integration-arquillian/servers/auth-server/jboss/pom.xml b/testsuite/integration-arquillian/servers/auth-server/jboss/pom.xml index 0786c3b149..28d84fec79 100644 --- a/testsuite/integration-arquillian/servers/auth-server/jboss/pom.xml +++ b/testsuite/integration-arquillian/servers/auth-server/jboss/pom.xml @@ -429,7 +429,7 @@ jdbc.mvn.version - keycloak.connectionsJpa.url + datasource.class.xa keycloak.connectionsJpa.user @@ -508,9 +508,25 @@ ${auth.server.home}/standalone/configuration - jdbc.url + db.jdbc_url ${keycloak.connectionsJpa.url} + + db.hostname + ${db.hostname} + + + db.port + ${db.port} + + + db.name + ${db.name} + + + datasource.class.xa + ${datasource.class.xa} + driver ${jdbc.mvn.artifactId} diff --git a/testsuite/integration-arquillian/servers/migration/pom.xml b/testsuite/integration-arquillian/servers/migration/pom.xml index 4babce33e0..49f5c7a576 100644 --- a/testsuite/integration-arquillian/servers/migration/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/pom.xml @@ -67,7 +67,7 @@ jdbc.mvn.version - keycloak.connectionsJpa.url + datasource.class.xa keycloak.connectionsJpa.user @@ -164,9 +164,25 @@ ${keycloak.server.home}/standalone/configuration - jdbc.url + db.jdbc_url ${keycloak.connectionsJpa.url} + + db.hostname + ${db.hostname} + + + db.port + ${db.port} + + + db.name + ${db.name} + + + datasource.class.xa + ${datasource.class.xa} + driver ${jdbc.mvn.artifactId} diff --git a/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl b/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl index b68a3b1d41..797631b4e8 100644 --- a/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl +++ b/testsuite/integration-arquillian/servers/migration/src/main/xslt/datasource.xsl @@ -25,27 +25,51 @@ - + + + + + - - + + + + + + - - - - - - + + - - - - + + + + + + + + + + + + + + + + + + + 4 + + + @@ -57,23 +81,16 @@ - - - - - - - - - - - - + - + + + + +