Skip to content

Commit 37cacdb

Browse files
authored
Merge pull request #7925 from fstagni/90_fixes11
[9.0] Test fixes
2 parents edaa878 + 3fde137 commit 37cacdb

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/CI/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
ports:
1616
- 3306:3306
1717
healthcheck:
18-
test: ["CMD", "${MYSQL_ADMIN_COMMAND}", "ping", "-h", "localhost"]
18+
test: ["CMD", "sh", "-c", "${MYSQL_ADMIN_COMMAND} ping -h localhost > /tmp/health.log 2>&1;"]
1919
timeout: 20s
2020
retries: 10
2121
start_period: 60s
@@ -115,7 +115,7 @@ services:
115115
s3-direct:
116116
condition: service_started
117117
iam-login-service:
118-
condition: service_started
118+
condition: service_healthy
119119
diracx-init-key:
120120
condition: service_completed_successfully # Let the init container create the signing key
121121
diracx-init-cs:
@@ -161,7 +161,7 @@ services:
161161
nofile: 8192
162162
pull_policy: always
163163
healthcheck:
164-
test: ["CMD", "ls", "${CVMFS_DIR}"]
164+
test: ["CMD", "ls ${CVMFS_DIR} > /tmp/health.log 2>&1;"]
165165
timeout: 20s
166166
retries: 10
167167
start_period: 60s

tests/Integration/WorkloadManagementSystem/Test_JobLoggingDB.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def fixtureJobLoggingDB():
2020

2121
def test_JobStatus(jobLoggingDB: JobLoggingDB):
2222
result = jobLoggingDB.addLoggingRecord(
23-
1,
23+
1000,
2424
status="testing",
2525
minorStatus="date=datetime.datetime.utcnow()",
2626
date=datetime.datetime.utcnow(),
@@ -30,37 +30,37 @@ def test_JobStatus(jobLoggingDB: JobLoggingDB):
3030

3131
date = "2006-04-25 14:20:17"
3232
result = jobLoggingDB.addLoggingRecord(
33-
1, status="testing", minorStatus="2006-04-25 14:20:17", date=date, source="Unittest"
33+
1000, status="testing", minorStatus="2006-04-25 14:20:17", date=date, source="Unittest"
3434
)
3535
assert result["OK"] is True, result["Message"]
3636

37-
result = jobLoggingDB.addLoggingRecord(1, status="testing", minorStatus="No date 1", source="Unittest")
37+
result = jobLoggingDB.addLoggingRecord(1000, status="testing", minorStatus="No date 1", source="Unittest")
3838
assert result["OK"] is True, result["Message"]
3939

40-
result = jobLoggingDB.addLoggingRecord(1, status="testing", minorStatus="No date 2", source="Unittest")
40+
result = jobLoggingDB.addLoggingRecord(1000, status="testing", minorStatus="No date 2", source="Unittest")
4141
assert result["OK"] is True, result["Message"]
4242

43-
result = jobLoggingDB.getJobLoggingInfo(1)
43+
result = jobLoggingDB.getJobLoggingInfo(1000)
4444
assert result["OK"] is True, result["Message"]
4545

46-
result = jobLoggingDB.getWMSTimeStamps(1)
46+
result = jobLoggingDB.getWMSTimeStamps(1000)
4747
assert result["OK"] is True, result["Message"]
4848

4949
now = datetime.datetime.utcnow()
5050
result = jobLoggingDB.addLoggingRecord(
51-
[2, 3, 4, 5],
51+
[1001, 1002, 1003, 1004],
5252
status=["testing", "testing", "testing", "testing"],
5353
minorStatus=["mn", "mn", "mn", "mn"],
5454
date=[now, now, now, now],
5555
source="Unittest",
5656
)
5757
assert result["OK"] is True, result["Message"]
5858

59-
result = jobLoggingDB.getJobLoggingInfo(2)
59+
result = jobLoggingDB.getJobLoggingInfo(1001)
6060
assert result["OK"] is True, result["Message"]
6161
assert result["Value"][-1][0:3] == ("testing", "mn", "Unknown")
6262

63-
result = jobLoggingDB.getJobLoggingInfo(5)
63+
result = jobLoggingDB.getJobLoggingInfo(1004)
6464
assert result["OK"] is True, result["Message"]
6565
assert result["Value"][-1][0:3] == ("testing", "mn", "Unknown")
6666

0 commit comments

Comments
 (0)