mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
test_driver: Introduce testDomainObjCheckTaint
In order to test the virDomainGetMessages for test driver, we need to check some taints or deprecations, so introduce testDomainObjCheckTaint for checking taints. As we introduced testDomainObjCheckTaint for test driver, the `dominfo` command in virshtest will now print tainting messages, so add them for test. Signed-off-by: Luke Yue <lukedyue@gmail.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
committed by
Martin Kletzander
parent
68095b835f
commit
7c399a9b0e
@@ -22,6 +22,7 @@ main(void)
|
||||
|
||||
# define DOM_UUID "ef861801-45b9-11cb-88e3-afbfe5370493"
|
||||
# define SECURITY_LABEL "libvirt-test (enforcing)"
|
||||
# define MESSAGES "tainted: network configuration using opaque shell scripts"
|
||||
|
||||
static const char *dominfo_fc4 = "\
|
||||
Id: 2\n\
|
||||
@@ -38,6 +39,7 @@ Managed save: no\n\
|
||||
Security model: testSecurity\n\
|
||||
Security DOI: \n\
|
||||
Security label: " SECURITY_LABEL "\n\
|
||||
Messages: " MESSAGES "\n\
|
||||
\n";
|
||||
static const char *domuuid_fc4 = DOM_UUID "\n\n";
|
||||
static const char *domid_fc4 = "2\n\n";
|
||||
|
||||
Reference in New Issue
Block a user