Skip to content

Commit

Permalink
Disable xa transaction testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
niveathika committed Nov 11, 2022
1 parent 3caaae0 commit 1fc2ac5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def startDockerContainer(containerName, port, sslPort) {
task startTestDockerContainers() {
doLast {
startDockerContainer("ballerina-oracledb", 1521, 2484)
startDockerContainer("ballerina-oracledb-trx", 1522, 2485)
}
}

Expand All @@ -239,7 +238,6 @@ def stopTestDockerContainer(containerName) {
task stopTestDockerContainers() {
doLast {
stopTestDockerContainer("ballerina-oracledb")
stopTestDockerContainer("ballerina-oracledb-trx")
}
}

Expand Down
7 changes: 7 additions & 0 deletions ballerina/tests/15-xa-transaction.bal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ type XAResultCount record {
int COUNTVAL;
};

// Following test cases are disabled, since they need 2 db instances to run.
// Due to a constraint 2 Oracle Docker containers cannot be run on the same machine.
// Currently verified it manually with a local instance running on port 1522 and docker image running on port 1521

@test:Config {
enable: false,
groups: ["transaction", "xa-transaction"]
}
function testXATransactionSuccess() returns error? {
Expand Down Expand Up @@ -57,6 +62,7 @@ function testXATransactionSuccess() returns error? {
}

@test:Config {
enable: false,
groups: ["transaction", "xa-transaction"]
}
function testXATransactionFailureWithDataSource() returns error? {
Expand Down Expand Up @@ -91,6 +97,7 @@ function testXATransactionFailureWithDataSource() returns error? {
}

@test:Config {
enable: false,
groups: ["transaction", "xa-transaction"]
}
function testXATransactionPartialSuccessWithDataSource() returns error? {
Expand Down

0 comments on commit 1fc2ac5

Please sign in to comment.