Project

General

Profile

Actions

action #111054

closed

coordination #103323: [epic] BCI testing

Extend coverage for init container.

Added by jlausuch over 2 years ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2022-05-13
Due date:
% Done:

100%

Estimated time:

Description

Current init coverage is very low.
https://openqa.suse.de/tests/8743924

We are running the 5 common tests in test_all.py and a single specific test from test_init.py test_systemd_present.

It would be nice to extend the coverage for specific init tests, focusing on systemd.
The implementation is up to the one who picks the ticket, but here are some ideas:

1) Run simple command like systemctl list-units and make sure it works and outputs units.

2) systemctl list-units --type=service --state=active should show active services, like dbus.service or systemd-journald.service (we would need to get a requirement of which services SHOULD be running)

3) systemctl status dbus.service should return Active: active (running) and also we could check the cgroup row, e.g.
CGroup: /machine.slice/libpod-693272c530216bd2e3d795d7548c2a2d99e2d1fa8c03428fed2c9430e8584503.scope/system.slice/dbus.service

4) Play around with some services, e.g. systemctl restart systemd-journald.service (or stop/start) and make sure it is active again.

etc

Actions

Also available in: Atom PDF