ci: cram: 095-reboot-service: Reboot.Reasons protected, no prefix for CurrentBootCycle, reason/cause compliance
Problem: Tests are failing Cause: Tests aren't sync with the new reboot DM Solution: Update the tests to reflect the code changes References: PCF-1811 Signed-off-by: Florian Rouzaud <florian.rouzaud@softathome.com>
This commit is contained in:
parent
e691ebe927
commit
2b1401b5e0
@ -8,63 +8,20 @@ Check the root datamodel settings:
|
||||
{
|
||||
"Reboot.": {
|
||||
"BootCount": 1,
|
||||
"ColdBootCount": 0,
|
||||
"ColdBootCount": 1,
|
||||
"CurrentBootCycle": "Cold",
|
||||
"CurrentVersionBootCount": 1,
|
||||
"MaxRebootEntries": 10,
|
||||
"RebootNumberOfEntries": 1,
|
||||
"WarmBootCount": 0,
|
||||
"WatchdogBootCount": 0,
|
||||
"X_PRPLWARE-COM_CurrentBootCycle": ""
|
||||
"WatchdogBootCount": 0
|
||||
},
|
||||
"Reboot.Reboot.1.": {
|
||||
"Alias": "cpe-Reboot-1",
|
||||
"Cause": "LocalFactoryReset",
|
||||
"FirmwareUpdated": 0,
|
||||
"Reason": "Initiated by Unknown",
|
||||
"Reason": "Power lost",
|
||||
"TimeStamp": "\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+Z" (re)
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.1.": {
|
||||
"Alias": "REASON_FIRMWARE_UPGRADE",
|
||||
"Format": "Firmware Upgrade %s"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.10.": {
|
||||
"Alias": "REASON_INITIATED_BY_SOURCE",
|
||||
"Format": "Initiated by %s"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.11.": {
|
||||
"Alias": "REASON_UNKNOWN",
|
||||
"Format": "Unknown"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.2.": {
|
||||
"Alias": "REASON_FIRMWARE_DOWNGRADE",
|
||||
"Format": "Firmware Downgrade %s"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.3.": {
|
||||
"Alias": "REASON_POWER_LOST",
|
||||
"Format": "Power lost"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.4.": {
|
||||
"Alias": "REASON_OVERHEAT",
|
||||
"Format": "Overheat"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.5.": {
|
||||
"Alias": "REASON_AUTOMATIC_PLANNED_REBOOT",
|
||||
"Format": "Automatic planned reboot"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.6.": {
|
||||
"Alias": "REASON_USERSPACE_CRASH",
|
||||
"Format": "Userspace crash in %s %s"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.7.": {
|
||||
"Alias": "REASON_KERNEL_CRASH",
|
||||
"Format": "Kernel crash %s"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.8.": {
|
||||
"Alias": "REASON_HARDWARE_WATCHDOG",
|
||||
"Format": "Hardware watchdog %s"
|
||||
},
|
||||
"Reboot.X_PRPLWARE-COM_Reasons.9.": {
|
||||
"Alias": "REASON_CRASH_LOOP_PROTECTION_DETECTION",
|
||||
"Format": "Crash loop Protection detected on %s %s"
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,11 +36,12 @@ Check if counters are flushed:
|
||||
{
|
||||
"Reboot.": {
|
||||
"BootCount": 1,
|
||||
"ColdBootCount": 0,
|
||||
"ColdBootCount": 1,
|
||||
"CurrentBootCycle": "Cold",
|
||||
"CurrentVersionBootCount": 1,
|
||||
"MaxRebootEntries": 10,
|
||||
"RebootNumberOfEntries": 0,
|
||||
"WarmBootCount": 0,
|
||||
"WatchdogBootCount": 0,
|
||||
"X_PRPLWARE-COM_CurrentBootCycle": ""
|
||||
"WatchdogBootCount": 0
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user