Wiki » History » Revision 2
Revision 1 (jlausuch, 2022-09-05 14:14) → Revision 2/10 (jlausuch, 2022-09-05 14:16)
## SLE Micro Test Cases ### Basic checks #### microos/networking.pm Basic network and connectivity check. - Print network configuration (ip addr show and resolv.conf) - Ping localhost `127.0.0.1` 127.0.0.1 (IPv4) and `::1` ::1 (IPv6) - Curl to openqa.opensuse.org and github.com #### microos/libzypp_config.pm Check that zypper configuration is customized for MicroOS. - `egrep egrep -x "^solver.onlyRequires ?= ?true" /etc/zypp/zypp.conf` /etc/zypp/zypp.conf - `egrep egrep -x "^rpm.install.excludedocs ?= ?yes" /etc/zypp/zypp.conf` /etc/zypp/zypp.conf - `egrep egrep -x "^multiversion ?=" /etc/zypp/zypp.conf` /etc/zypp/zypp.conf #### microos/image_checks.pm Simple image specific checks: - Verify that openQA resized the disk image - Verify that there is no unpartitioned space left - Verify that the filesystem mounted at /var grew beyond the default 5GiB - Verify that combustion ran #### microos/one_line_checks.pm Simple checks after installation. - Check that snapper is configured `snapper list` (snapper list) - Subvolume check `btrfs (btrfs subvolume show /var` /var) - `kubectl` kubectl is not installable if `SYSTEM_ROLE=microos` SYSTEM_ROLE=microos (only openSUSE MicroOS) - `crio` crio should be installed if `SYSTEM_ROLE=kubeadm` SYSTEM_ROLE=kubeadm (only openSUSE MicroOS) #### microos/services_enabled.pm Check that services are enables based on system role The following services should be enabled by default: - `issue-add-ssh-keys` issue-add-ssh-keys - `issue-generator` issue-generator - `transactional-update.timer` transactional-update.timer - `sshd` sshd On other system roles (MicroOS only), other services might be checked to be enabled. #### microos/cockpit_service.pm Basic check for cockpit service. - Install `cockpit` package if not installed - Install `cockpit-networkmanager` package if the system is running network-manager. - Install `cockpit-wicked` package if the system is running wicked. - Install `cockpit-machines` and `cockpit-tukit` if packages are available. - Enable and start `cockpit.socket service` and check that Cockpit is active and accessible on http://localhost:9090 - Test Cockpit service survives a reboot (it's active automatically after rebooting) ### Specific transactional system tests #### transactional/trup_smoke.pm TBD #### transactional/filesystem_ro.pm TBD #### transactional/transactional_update.pm TBD #### transactional/rebootmgr.pm TBD #### transactional/health_check.pm TBD