Skip to content

Commit

Permalink
Merge pull request autotest#5656 from chunfuwen/add_virtlogd_maxclien…
Browse files Browse the repository at this point in the history
…t_cases

Automate virtlogd maxclients related cases
  • Loading branch information
dzhengfy authored Aug 29, 2024
2 parents 176ddf1 + 9a9e306 commit 595840c
Show file tree
Hide file tree
Showing 2 changed files with 414 additions and 8 deletions.
69 changes: 69 additions & 0 deletions libvirt/tests/cfg/daemon/conf_file/qemu_conf/set_virtlogd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,80 @@
expected_result = record_save_restore_guest_log
start_vm = no
save_vm_path = "/tmp/test1.save"
- valid_max_clients:
expected_result = valid_max_clients
max_clients = 20
start_vm = no
action = "restart"
virtlogd_log_file = "/var/log/libvirt/virtlogd.log"
- valid_boundary_max_clients:
expected_result = valid_boundary_max_clients
low_max_clients = 0
high_max_clients = 4294967295
start_vm = no
virtlogd_log_file = "/var/log/libvirt/virtlogd.log"
action = "restart"
- nclients_occupied_released:
expected_result = nclients_occupied_released
max_clients = 20
virtlogd_log_file = "/var/log/libvirt/virtlogd.log"
nclients = 'nclients=1.*nclients_unauth=0'
save_vm_path = "/tmp/test1.save"
action = "restart"
start_vm = no
- guest_runnning_after_virtlogd_crash:
expected_result = guest_runnning_after_virtlogd_crash
start_vm = no
stdio_handler = "logd"
- reload_new_config:
expected_result = reload_new_config
start_vm = no
action = "reload"
virtlogd_file_new = "/var/log/libvirt/virtlogd_new.log"
virtlogd_log_file = "/var/log/libvirt/virtlogd.log"
- log_filters_not_same_with_loglevel:
expected_result = log_filters_not_same_with_loglevel
start_vm = no
action = "restart"
filter_loglevel_1 = "debug.*virLogDaemonClientFree"
filter_loglevel_2 = "info.*virEventGLibHandleUpdate"
filter_loglevel_3 = "debug.*virNetServerProgramNew"
filter_loglevel_4 = "error : virPidFileAcquirePath"
log_filters = "1:+logging 2:event 3:rpc"
log_level = 4
virtlogd_file = "/var/log/libvirt/virtlogd.log"
- reload_max_size_config:
expected_result = reload_max_size_config
start_vm = no
action = "reload"
max_size = 204800
- set_max_size_config:
expected_result = set_max_size_config
start_vm = no
action = "restart"
max_size = 204800
- set_max_backups:
expected_result = set_max_backups
max_backups = 2
start_vm = no
action = "restart"
- reload_max_backups:
expected_result = reload_max_backups
max_backups = 4
max_size = 204800
action = "reload"
start_vm = no
- negative_test:
variants:
- invalid:
expected_result = unbootable
stdio_handler = 'invalid'
- invalid_boundary_max_clients:
expected_result = invalid_boundary_max_clients
low_max_clients = -1
high_max_clients = 4294967296
start_vm = no
action = "restart"
- invalid_virtlogd_conf:
start_vm = no
expected_result = 'invalid_virtlogd_conf'
Expand Down
Loading

0 comments on commit 595840c

Please sign in to comment.