This issue was migrated from https://bugs.launchpad.net/checkbox-ng/+bug/1936477
Summary
| Status |
Created on |
Heat |
Importance |
Security related |
| Confirmed |
2021-07-16 08:29:07 |
28 |
Critical |
False |
Description
It is far too easy for the CDTS master to lose connection with the SUT. When this happens, you end up back at the main selection screen, and the previous test session is completely lost.
Even trying to select tests to rerun them can cause the session to be lost.
Running Checkbox on the SUT locally can detect interrupted sessions and allow you to resume.
Steps to reproduce
- Install checkbox on the host and the device under test (DUT).
- Make sure the checkbox service is launched on the DUT:
systemctl status checkbox-ng.service
● checkbox-ng.service - Checkbox Remote Service
Loaded: loaded (/lib/systemd/system/checkbox-ng.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-11-10 10:01:37 CST; 5 days ago
Main PID: 1455 (checkbox-cli)
Tasks: 1 (limit: 19051)
Memory: 28.1M
CGroup: /system.slice/checkbox-ng.service
└─1455 /usr/bin/python3 /usr/bin/checkbox-cli service
(Please note: the service name might be different if you use CDTS or Checkbox as a snap. For CDTS for instance, it's snap.cdts.service.service)
- On the host, connect to the DUT:
$ checkbox-cli remote <DUT_IP>
-
Select a test plan and start the test run (for instance, an automated test plan or a stress test plan such as client-cert-iot-server-20-04-[automated|stress]).
-
While testing is ongoing, restart your host computer.
-
After restart, try connecting back to the DUT:
$ checkbox-cli remote <DUT_IP>
Expected result
Checkbox prompts to ask if you want to resume the session.
Actual result
Checkbox starts afresh, showing you the list of available test plans in order to start a new test run.
Attachments
sessions.tar.xz
202110-29555-sessions.tar.gz
Tags:
['checkbox', 'checkbox-session-resume']
This issue was migrated from https://bugs.launchpad.net/checkbox-ng/+bug/1936477
Summary
Description
It is far too easy for the CDTS master to lose connection with the SUT. When this happens, you end up back at the main selection screen, and the previous test session is completely lost.
Even trying to select tests to rerun them can cause the session to be lost.
Running Checkbox on the SUT locally can detect interrupted sessions and allow you to resume.
Steps to reproduce
systemctl status checkbox-ng.service
● checkbox-ng.service - Checkbox Remote Service
Loaded: loaded (/lib/systemd/system/checkbox-ng.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-11-10 10:01:37 CST; 5 days ago
Main PID: 1455 (checkbox-cli)
Tasks: 1 (limit: 19051)
Memory: 28.1M
CGroup: /system.slice/checkbox-ng.service
└─1455 /usr/bin/python3 /usr/bin/checkbox-cli service
(Please note: the service name might be different if you use CDTS or Checkbox as a snap. For CDTS for instance, it's
snap.cdts.service.service)$ checkbox-cli remote <DUT_IP>
Select a test plan and start the test run (for instance, an automated test plan or a stress test plan such as client-cert-iot-server-20-04-[automated|stress]).
While testing is ongoing, restart your host computer.
After restart, try connecting back to the DUT:
$ checkbox-cli remote <DUT_IP>
Expected result
Checkbox prompts to ask if you want to resume the session.
Actual result
Checkbox starts afresh, showing you the list of available test plans in order to start a new test run.
Attachments
sessions.tar.xz
202110-29555-sessions.tar.gz
Tags:
['checkbox', 'checkbox-session-resume']