Skip to content

Commit f790aa8

Browse files
authored
Merge branch 'master' into JBEAP-18946-cannot-query-openshift-api
2 parents d8ede23 + 591d051 commit f790aa8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
mavenRepo="$1"
4+
if [ -f "$mavenRepo/patches.xml" ]; then
5+
echo "The maven repository has been patched, setting patches in galleon feature-pack."
6+
patches=`cat "$mavenRepo/patches.xml" | sed ':a;N;$!ba;s/\n//g'`
7+
sed -i "s|<!-- ##PATCHES## -->|$patches|" "${GALLEON_FP_PATH}/wildfly-user-feature-pack-build.xml"
8+
echo "wildfly-user-feature-pack-build.xml content:"
9+
cat "${GALLEON_FP_PATH}/wildfly-user-feature-pack-build.xml"
10+
fi

jboss/container/eap/galleon/module.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ envs:
88
value: "19.0.0.Final"
99
- name: GALLEON_DEFINITIONS
1010
value: /opt/jboss/container/eap/galleon/definitions
11+
- name: GALLEON_MAVEN_REPO_HOOK_SCRIPT
12+
value: /opt/jboss/container/eap/galleon/patching.sh
1113
- name: GALLEON_DEFAULT_SERVER
1214
value: /opt/jboss/container/eap/galleon/definitions/slim-default-server
1315
- name: GALLEON_DEFAULT_FAT_SERVER

tests/features/datasource.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,12 @@ Feature: EAP Openshift datasources
268268
| TEST_NONXA | true |
269269
| TEST_JTA | false |
270270
| JDBC_SKIP_RECOVERY | true |
271+
| TEST_TX_ISOLATION | TRANSACTION_REPEATABLE_READ |
271272
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value java:/jboss/datasources/testds on XPath //*[local-name()='datasource']/@jndi-name
272273
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value tombrady on XPath //*[local-name()='datasource']/*[local-name()='security']/*[local-name()='user-name']
273274
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value password on XPath //*[local-name()='datasource']/*[local-name()='security']/*[local-name()='password']
274275
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value jdbc:postgresql://10.1.1.1:5432/pgdb on XPath //*[local-name()='datasource']/*[local-name()='connection-url']
276+
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value TRANSACTION_REPEATABLE_READ on XPath //*[local-name()='datasource']/*[local-name()='transaction-isolation']
275277

276278
Scenario: Test postgresql xa datasource extension w/URL
277279
When container is started with env
@@ -324,10 +326,12 @@ Feature: EAP Openshift datasources
324326
| TEST_DATABASE | kitchensink |
325327
| TEST_NONXA | true |
326328
| TEST_JTA | false |
329+
| TEST_TX_ISOLATION | TRANSACTION_REPEATABLE_READ |
327330
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value java:/jboss/datasources/testds on XPath //*[local-name()='datasource']/@jndi-name
328331
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value tombrady on XPath //*[local-name()='datasource']/*[local-name()='security']/*[local-name()='user-name']
329332
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value password on XPath //*[local-name()='datasource']/*[local-name()='security']/*[local-name()='password']
330333
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value jdbc:mysql://10.1.1.1:3306/kitchensink on XPath //*[local-name()='datasource']/*[local-name()='connection-url']
334+
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value TRANSACTION_REPEATABLE_READ on XPath //*[local-name()='datasource']/*[local-name()='transaction-isolation']
331335

332336
Scenario: Test mysql xa datasource extension w/URL
333337
When container is started with env
@@ -377,11 +381,13 @@ Feature: EAP Openshift datasources
377381
| TEST_URL | jdbc:oracle:thin:@samplehost:1521:oracledb |
378382
| TEST_NONXA | true |
379383
| TEST_JTA | false |
384+
| TEST_TX_ISOLATION | TRANSACTION_REPEATABLE_READ |
380385
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value java:/jboss/datasources/testds on XPath //*[local-name()='datasource']/@jndi-name
381386
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value jdbc:oracle:thin:@samplehost:1521:oracledb on XPath //*[local-name()='connection-url']
382387
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value oracle on XPath //*[local-name()='datasource']/*[local-name()='driver']
383388
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value tombrady on XPath //*[local-name()='datasource']/*[local-name()='security']/*[local-name()='user-name']
384389
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value password on XPath //*[local-name()='datasource']/*[local-name()='security']/*[local-name()='password']
390+
Then XML file /opt/eap/standalone/configuration/standalone-openshift.xml should contain value TRANSACTION_REPEATABLE_READ on XPath //*[local-name()='datasource']/*[local-name()='transaction-isolation']
385391

386392
Scenario: Test warning no xa-connection-properties for external xa db
387393
When container is started with env

0 commit comments

Comments
 (0)