Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Update runtime #146

Merged
merged 2 commits into from
Jul 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified tests/credentials.json.enc
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class IBMPythonActionDB2Tests extends TestHelpers with WskTestHelpers with Befor

*/
def sleepUntilContainerRunning() {
var counter = 48; // 48*5s=240s -> 4 minutes
var counter = 48; // 48*10s=480s -> 8 minutes
var running = false;
do {
counter = counter - 1
Expand All @@ -87,9 +87,11 @@ class IBMPythonActionDB2Tests extends TestHelpers with WskTestHelpers with Befor
". /database/config/db2inst1/.bashrc && db2 list active databases")

if ((isdb2Running.exitCode != 0) && (isdb2Running.exitCode != 2)) {
Thread.sleep(5000)
println("Wait some more time...")
Thread.sleep(10000)
} else {
running = true;
println("Database seems to be up, now.")
}
} while (counter > 0 && running == false);
}
Expand All @@ -99,6 +101,7 @@ class IBMPythonActionDB2Tests extends TestHelpers with WskTestHelpers with Befor

TestUtils.runCmd(TestUtils.DONTCARE_EXIT, new File("."), "docker", "kill", db2containerName)
TestUtils.runCmd(TestUtils.DONTCARE_EXIT, new File("."), "docker", "rm", db2containerName)
println("Creating local db2 instance, might take up to 5 minutes...")
TestUtils.runCmd(
0,
new File("."),
Expand All @@ -119,7 +122,7 @@ class IBMPythonActionDB2Tests extends TestHelpers with WskTestHelpers with Befor
"LICENSE=accept",
"--name",
db2containerName,
"ibmcom/db2")
"ibmcom/db2:11.5.5.1")

sleepUntilContainerRunning()

Expand All @@ -131,7 +134,7 @@ class IBMPythonActionDB2Tests extends TestHelpers with WskTestHelpers with Befor
"cp",
db2dir + "setup.sql",
db2containerName + ":/database/config/db2inst1/setup.sql")
println("Creating db2 database, might take up to 5 minutes")
println("Creating db2 database, might take up to 5 minutes.")
TestUtils.runCmd(
0,
new File("."),
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy