tp-libvirt
tp-libvirt copied to clipboard
backingchain: add case to check mirror xml after restart service
This PR adds: VIRT-294570 - [blockcommit/blockcopy][mirroring] Restart libvirtd and check xml during mirror phase of blockcommit
# avocado run --vt-type libvirt --test-runner=runner --vt-machine-type q35 backingchain.lifecycle_test.check_mirror_with_restart_libvirtd
JOB ID : 16471284d66a68113ad523b2ac29cf45de41fa18
JOB LOG : /var/lib/avocado/job-results/job-2022-12-01T02.30-1647128/job.log
(1/2) type_specific.io-github-autotest-libvirt.backingchain.lifecycle_test.check_mirror_with_restart_libvirtd.blockcommit: PASS (79.90 s)
(2/2) type_specific.io-github-autotest-libvirt.backingchain.lifecycle_test.check_mirror_with_restart_libvirtd.blockcopy: PASS (80.19 s)
RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /var/lib/avocado/job-results/job-2022-12-01T02.30-1647128/results.html
JOB TIME : 161.80 s
Signed-off-by: Meina Li [email protected]
label: modular_redesign
@nanli1 could you please review this pr? Thanks!
Others LGTM
@Yingshun Would you also help to review this PR? Thanks.
Could we rename the folder name from lifecycle_test
to lifecycle
in libvirt/tests/cfg/backingchain/lifecycle_test/check_mirror_with_restart_libvirtd.cfg libvirt/tests/src/backingchain/lifecycle_test/check_mirror_with_restart_libvirtd.py
Meina and I had different opinions for this ever .
I think test
word is a little common and non actual meaningful , and we seldom use test
in auto case name.
Sorry ,I didn't get this thought when I check the structure sheet,but get this when auto some cases.
@meinaLi I forget you reason ,Please help to give comment.
@xuesong-zhang @dzhengfy @Yingshun Could you help to give opinion
The test plan directly use lifecycle_test as a chapter. For consistency, I also used lifecycle_test as a directory name in auto cases.
#> Could we rename the folder name from lifecycle_test
to lifecycle
in libvirt/tests/cfg/backingchain/lifecycle_test/check_mirror_with_restart_libvirtd.cfg libvirt/tests/src/backingchain/lifecycle_test/check_mirror_with_restart_libvirtd.py
Meina and I had different opinions for this ever . I think
test
word is a little common and non actual meaningful , and we seldom usetest
in auto case name. Sorry ,I didn't get this thought when I check the structure sheet,but get this when auto some cases. @meinaLi I forget you reason ,Please help to give comment.@xuesong-zhang @dzhengfy @Yingshun Could you help to give opinion
Similar to https://github.com/autotest/tp-libvirt/pull/4633#issuecomment-1366339390,