[libvirt] [PATCH 13/21] conf: test: store namespace href
Ján Tomko
jtomko at redhat.com
Tue Aug 20 23:15:35 UTC 2019
Unlike all the other occurrences, only store the actual URL
instead of the whole xmlns:<prefix>='<url>' header.
The rest will be converted before this string is used.
Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
src/test/test_driver.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index adda3ac4c0..3bdeb6c00a 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -181,6 +181,12 @@ struct _testDomainNamespaceDef {
xmlNodePtr *snap_nodes;
};
+static const char*
+testDomainDefNamespaceHref(void)
+{
+ return TEST_NAMESPACE_HREF;
+}
+
static void
testDomainDefNamespaceFree(void *data)
{
@@ -430,6 +436,7 @@ testDriverNew(void)
.parse = testDomainDefNamespaceParse,
.free = testDomainDefNamespaceFree,
.prefix = "test",
+ .href = testDomainDefNamespaceHref,
};
virDomainDefParserConfig config = {
.features = VIR_DOMAIN_DEF_FEATURE_MEMORY_HOTPLUG |
--
2.19.2
More information about the libvir-list
mailing list