Project

General

Profile

Wiki » History » Version 1

jlausuch, 2022-09-05 14:14

1 1 jlausuch
## SLE Micro Test Cases
2
3
### Basic checks
4
#### microos/networking.pm
5
Basic network and connectivity check. 
6
- Print network configuration (ip addr show and resolv.conf)
7
- Ping localhost 127.0.0.1 (IPv4) and ::1 (IPv6)
8
- Curl to openqa.opensuse.org and github.com
9
10
#### microos/libzypp_config.pm
11
Check that zypper configuration is customized for MicroOS.
12
- egrep -x "^solver.onlyRequires ?= ?true" /etc/zypp/zypp.conf
13
- egrep -x "^rpm.install.excludedocs ?= ?yes" /etc/zypp/zypp.conf
14
- egrep -x "^multiversion ?=" /etc/zypp/zypp.conf
15
16
#### microos/image_checks.pm
17
Simple image specific checks:
18
- Verify that openQA resized the disk image
19
- Verify that there is no unpartitioned space left
20
- Verify that the filesystem mounted at /var grew beyond the default 5GiB
21
- Verify that combustion ran
22
23
#### microos/one_line_checks.pm
24
Simple checks after installation.
25
- Check that snapper is configured (snapper list)
26
- Subvolume check (btrfs subvolume show /var)
27
- kubectl is not installable if SYSTEM_ROLE=microos (only openSUSE MicroOS)
28
- crio should be installed if SYSTEM_ROLE=kubeadm (only openSUSE MicroOS)
29
30
31
#### microos/services_enabled.pm
32
Check that services are enables based on system role
33
The following services should be enabled by default:
34
- issue-add-ssh-keys
35
- issue-generator
36
- transactional-update.timer
37
- sshd
38
On other system roles (MicroOS only), other services might be checked to be enabled.
39
40
41
#### microos/cockpit_service.pm
42
Basic check for cockpit service.
43
- Install `cockpit` package if not installed
44
- Install `cockpit-networkmanager` package if the system is running network-manager.
45
- Install `cockpit-wicked` package if the system is running wicked.
46
- Install `cockpit-machines` and `cockpit-tukit` if packages are available.
47
- Enable and start `cockpit.socket service` and check that Cockpit is active and accessible on http://localhost:9090
48
- Test Cockpit service survives a reboot (it's active automatically after rebooting)
49
50
51
52
### Specific transactional system tests
53
54
#### transactional/trup_smoke.pm
55
TBD
56
57
#### transactional/filesystem_ro.pm
58
TBD
59
60
#### transactional/transactional_update.pm
61
TBD
62
63
#### transactional/rebootmgr.pm
64
TBD
65
66
#### transactional/health_check.pm
67
TBD