Linux¶
- Status:
● Development
- Functions:
4
- Category:
Linux System Validation
The Linux testset provides Linux-specific system testing capabilities for ADARE experiments. This testset focuses on systemd services, process monitoring, user account validation, and log file analysis on Linux systems.
Overview¶
The Linux testset enables validation of Linux system state and configuration. It includes functions to check systemd service status, verify running processes, validate user accounts, and search log files for specific entries using Linux-native tools and APIs.
Test Functions¶
Function Name |
S |
Description |
Parameters |
|---|---|---|---|
● |
Tests if a systemd service has expected status (Linux only) |
service_name (str), expected_status (str) |
|
● |
Tests if a process is running with expected number of instances (Linux only) |
process_name (str), min_instances* (int) |
|
● |
Tests if a user account exists on the Linux system |
username (str) |
|
● |
Tests if a log file contains entries matching a specified pattern |
log_file (str), pattern (str), max_lines* (int) |