Adds immediate migration results in progress

This commit is contained in:
torsten committed 2026-08-19 11:18:24 +02:00
1 parent 8453e104c5
commit 3bb6e89496
2102 files changed
+17482 -15071

No files matched your search

@@ -44,7 +44,7 @@ AlmTests::~AlmTests()
// ------------------------------------------------------------------
bool AlmTests::init(int domainId, int testId, int operatorId)
{
INFO_LOG() << "init begin";
INFO_LOG(m_logger) << "init begin";
m_testId = testId;
m_operatorId = operatorId;
@@ -73,7 +73,7 @@ bool AlmTests::init(int domainId, int testId, int operatorId)
// ------------------------------------------------------------------
void AlmTests::startTest()
{
INFO_LOG() << "startTest m_testId=" << m_testId;
INFO_LOG(m_logger) << "startTest m_testId=" << m_testId;
if (m_testId <= 1) // Send FTC ConfigureAlarms and EEM Event
{
QTimer::singleShot(0, this, &AlmTests::tryConfigureAlarms);
@@ -102,7 +102,7 @@ void AlmTests::startTest()
// ------------------------------------------------------------------
void AlmTests::tryConfigureAlarms()
{
INFO_LOG() << "trying to send createRequest Operator Message";
INFO_LOG(m_logger) << "trying to send createRequest Operator Message";
std::vector<AlarmManagement::AlarmAction> alarms;
alarms.resize(2);
@@ -124,7 +124,7 @@ void AlmTests::tryConfigureAlarms()
if (!m_ftcAlm->configureAlarmsRequest(ConfigureAlarmsRequest(alarms, m_operatorId, participantIds, globalEvent, remove), this))
{
ERROR_LOG() << "Error requesting create data";
ERROR_LOG(m_logger) << "Error requesting create data";
failExit();
}
} // tryConfigureAlarms
@@ -132,7 +132,7 @@ void AlmTests::tryConfigureAlarms()
// ------------------------------------------------------------------
void AlmTests::tryCreateParticipant()
{
INFO_LOG() << "trying to create Participant index = " << m_participantIndex;
INFO_LOG(m_logger) << "trying to create Participant index = " << m_participantIndex;
ParticipantManagement::Participant participant;
switch (m_participantIndex)
{
@@ -153,10 +153,10 @@ void AlmTests::tryCreateParticipant()
participant.partyId(5);
break;
}
DEBUG_LOG() << "Publishing Participant";
DEBUG_LOG(m_logger) << "Publishing Participant";
if (!m_dtsPpm->publish(participant))
{
ERROR_LOG() << "Error publish Participant";
ERROR_LOG(m_logger) << "Error publish Participant";
failExit();
}
m_participantIndex++;
@@ -165,7 +165,7 @@ void AlmTests::tryCreateParticipant()
// ------------------------------------------------------------------
void AlmTests::tryConfigureAlarmsList()
{
INFO_LOG() << "trying to send createRequest Operator Message";
INFO_LOG(m_logger) << "trying to send createRequest Operator Message";
std::vector<AlarmManagement::AlarmAction> alarms;
alarms.resize(2);
@@ -188,7 +188,7 @@ void AlmTests::tryConfigureAlarmsList()
if (!m_ftcAlm->configureAlarmsRequest(ConfigureAlarmsRequest(alarms, m_operatorId, participantIds, globalEvent, remove), this))
{
ERROR_LOG() << "Error requesting create data";
ERROR_LOG(m_logger) << "Error requesting create data";
failExit();
}
} // tryConfigureAlarmsList
@@ -196,7 +196,7 @@ void AlmTests::tryConfigureAlarmsList()
// ------------------------------------------------------------------
void AlmTests::trySendEvent()
{
INFO_LOG() << "trying to send ParticipantEvent";
INFO_LOG(m_logger) << "trying to send ParticipantEvent";
ExerciseEventManagement::Event pe;
@@ -215,10 +215,10 @@ void AlmTests::trySendEvent()
QString properties = QString::fromUtf8(QJsonDocument(obj).toJson());
pe.properties(properties.toStdString());
DEBUG_LOG() << "Publishing EEM Event";
DEBUG_LOG(m_logger) << "Publishing EEM Event";
if (!m_dtsEem->publish(pe))
{
ERROR_LOG() << "Error publish EEM Event";
ERROR_LOG(m_logger) << "Error publish EEM Event";
failExit();
}
}
@@ -226,10 +226,10 @@ void AlmTests::trySendEvent()
// ------------------------------------------------------------------
void AlmTests::onConfigureAlarmsReply(const Core::FunctionReplyObject &replyObject)
{
INFO_LOG() << "onConfigureAlarmsReply, error = " << replyObject.error();
INFO_LOG(m_logger) << "onConfigureAlarmsReply, error = " << replyObject.error();
if (replyObject.error())
{
ERROR_LOG() << "Error ConfigureAlarms - aborting";
ERROR_LOG(m_logger) << "Error ConfigureAlarms - aborting";
failExit();
}
} // onConfigureAlarmsReply
@@ -237,11 +237,11 @@ void AlmTests::onConfigureAlarmsReply(const Core::FunctionReplyObject &replyObje
// ------------------------------------------------------------------
void AlmTests::checkAlarm()
{
INFO_LOG() << "checkAlarm";
INFO_LOG(m_logger) << "checkAlarm";
m_dtcAlm->waitForHistoricalDataNotification();
qint32 id = 0;
AlarmManagement::Notification notification = m_dtcAlm->notification(id);
INFO_LOG() << "Recived AlarmManagement::Notification: " << notification
INFO_LOG(m_logger) << "Recived AlarmManagement::Notification: " << notification
<< " testId: " << m_testId;
switch (m_testId)
@@ -249,12 +249,12 @@ void AlmTests::checkAlarm()
case 1:
case 2:
case 3:
INFO_LOG() << "ExitSuccess";
INFO_LOG(m_logger) << "ExitSuccess";
ExitSuccess();
break;
default:
// nothing
INFO_LOG() << "failExit";
INFO_LOG(m_logger) << "failExit";
failExit();
break;
}
@@ -270,7 +270,7 @@ void AlmTests::failExit()
// ------------------------------------------------------------------
void AlmTests::ExitSuccess()
{
DEBUG_LOG() << "SUCCESS";
DEBUG_LOG(m_logger) << "SUCCESS";
m_bTestsSuccessful = true;
QTimer::singleShot(0, qApp, &QCoreApplication::quit);
} // ExitSuccess