ci: cram: update 039-lcm_dustatechange.t

Update the test to also test StartTime and CompleteTime of the event
tests will fail starting January 2100

References: PCF-2121
Signed-off-by: Jef Steelant <jef.steelant_ext@softathome.com>
This commit is contained in:
Jef Steelant 2025-11-20 09:10:12 +00:00 committed by Hela Saadani
parent 516c9e96ad
commit 2853ab4a13

View File

@ -29,6 +29,7 @@ check the event
$ R "cat /tmp/captured_event"
Event DUStateChange!
{
CompleteTime = "20\d{2}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z", (re)
CurrentState = "Installed",
DeploymentUnitRef = "Device.SoftwareModules.DeploymentUnit.[Alias == "cpe-917362a3-86e8-5332-bcfd-a4223f0e65e6"]",
ExecutionUnitRefList = "Device.SoftwareModules.ExecutionUnit.[Alias == "cpe-917362a3-86e8-5332-bcfd-a4223f0e65e6"]",
@ -38,6 +39,7 @@ check the event
},
OperationPerformed = "Install",
Resolved = true,
StartTime = "20\d{2}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z", (re)
UUID = "00000000-0000-5000-b000-000000000001",
Version = "prplos-v1",
path = "Device.SoftwareModules."
@ -56,6 +58,7 @@ check the event
$ R "cat /tmp/captured_event"
Event DUStateChange!
{
CompleteTime = "20\d{2}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z", (re)
CurrentState = "Installed",
DeploymentUnitRef = "Device.SoftwareModules.DeploymentUnit.[Alias == "cpe-917362a3-86e8-5332-bcfd-a4223f0e65e6"]",
ExecutionUnitRefList = "Device.SoftwareModules.ExecutionUnit.[Alias == "cpe-917362a3-86e8-5332-bcfd-a4223f0e65e6"]",
@ -65,6 +68,7 @@ check the event
},
OperationPerformed = "Update",
Resolved = true,
StartTime = "20\d{2}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z", (re)
UUID = "00000000-0000-5000-b000-000000000001",
Version = "prplos-v2",
path = "Device.SoftwareModules."
@ -84,6 +88,7 @@ check the event
$ R "cat /tmp/captured_event"
Event DUStateChange!
{
CompleteTime = "20\d{2}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z", (re)
CurrentState = "Uninstalled",
DeploymentUnitRef = "Device.SoftwareModules.DeploymentUnit.[Alias == "cpe-917362a3-86e8-5332-bcfd-a4223f0e65e6"]",
ExecutionUnitRefList = "Device.SoftwareModules.ExecutionUnit.[Alias == "cpe-917362a3-86e8-5332-bcfd-a4223f0e65e6"]",
@ -93,6 +98,7 @@ check the event
},
OperationPerformed = "Uninstall",
Resolved = true,
StartTime = "20\d{2}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z", (re)
UUID = "00000000-0000-5000-b000-000000000001",
Version = "prplos-v2",
path = "Device.SoftwareModules."