Skip to content

Commit 7b1521f

Browse files
committed
[JBEAP-18124] adding tests for txn isolation being used for non-xa datasources
1 parent 39fd14f commit 7b1521f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)