Skip to content

Commit 86c9c1a

Browse files
committed
fix: remove deprecated
1 parent c090fb8 commit 86c9c1a

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

src/DIRAC/WorkloadManagementSystem/Client/JobState/CachedJobState.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
everything locally instead of going to the DB.
55
"""
66
import copy
7-
import time, datetime
7+
import datetime
8+
import time
89

10+
from DIRAC import S_ERROR, S_OK, gLogger
911
from DIRAC.Core.Utilities import DEncode
10-
from DIRAC import S_OK, S_ERROR, gLogger
11-
from DIRAC.WorkloadManagementSystem.Client.JobState.JobState import JobState
1212
from DIRAC.WorkloadManagementSystem.Client.JobState.JobManifest import JobManifest
13+
from DIRAC.WorkloadManagementSystem.Client.JobState.JobState import JobState
1314

1415

1516
class CachedJobState:
@@ -288,9 +289,9 @@ def __addLogRecord(self, majorStatus=None, minorStatus=None, appStatus=None, sou
288289
if majorStatus:
289290
record["status"] = majorStatus
290291
if minorStatus:
291-
record["minor"] = minorStatus
292+
record["minorStatus"] = minorStatus
292293
if appStatus:
293-
record["application"] = appStatus
294+
record["applicationStatus"] = appStatus
294295
if not record:
295296
return
296297
if not source:

tests/Integration/WorkloadManagementSystem/Test_Client_WMS.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -549,13 +549,6 @@ def test_JobStateUpdateAndJobMonitoringMultiple(lfn):
549549
}
550550
res = jobMonitoringClient.getMinorStates()
551551
assert res["OK"], res["Message"]
552-
assert set(res["Value"]) <= {
553-
"Assigned",
554-
"Job accepted",
555-
"Pilot Agent Submission",
556-
JobMinorStatus.RESCHEDULED,
557-
"Marked for termination",
558-
}
559552

560553
res = jobMonitoringClient.getJobs()
561554
assert res["OK"], res["Message"]

tests/Integration/all_integration_server_tests.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ pytest --no-check-dirac-environment "${THIS_DIR}/Core/Test_ElasticsearchDB.py" |
2424
pytest --no-check-dirac-environment "${THIS_DIR}/Core/Test_MySQLDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
2525

2626
#-------------------------------------------------------------------------------#
27-
echo -e "*** $(date -u) **** FRAMEWORK TESTS (partially skipped) ****\n"
27+
echo -e "*** $(date -u) **** FRAMEWORK TESTS ****\n"
2828
pytest --no-check-dirac-environment "${THIS_DIR}/Framework/Test_InstalledComponentsDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
2929
pytest --no-check-dirac-environment "${THIS_DIR}/Framework/Test_ProxyDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
3030
pytest --no-check-dirac-environment "${THIS_DIR}/Framework/Test_TokenDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
3131
pytest --no-check-dirac-environment "${THIS_DIR}/Framework/Test_AuthDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
3232
pytest --no-check-dirac-environment "${THIS_DIR}/Framework/Test_AuthServer.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
33-
#pytest --no-check-dirac-environment ${THIS_DIR}/Framework/Test_LoggingDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
3433

3534
#-------------------------------------------------------------------------------#
3635
echo -e "*** $(date -u) **** MONITORING TESTS ****\n"
@@ -50,7 +49,6 @@ pytest --no-check-dirac-environment "${THIS_DIR}/WorkloadManagementSystem/Test_E
5049
pytest --no-check-dirac-environment "${THIS_DIR}/WorkloadManagementSystem/Test_JobParameters_MySQLandES.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
5150
pytest --no-check-dirac-environment "${THIS_DIR}/WorkloadManagementSystem/Test_PilotAgentsDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
5251
pytest --no-check-dirac-environment "${THIS_DIR}/WorkloadManagementSystem/Test_SandboxMetadataDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
53-
pytest --no-check-dirac-environment "${THIS_DIR}/WorkloadManagementSystem/Test_VirtualMachineDB.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
5452
pytest --no-check-dirac-environment "${THIS_DIR}/WorkloadManagementSystem/Test_JobCleaningAgent.py" |& tee -a "${SERVER_TEST_OUTPUT}"; (( ERR |= "${?}" ))
5553

5654
#-------------------------------------------------------------------------------#

0 commit comments

Comments
 (0)