[libvirt] [PATCH 13/21] conf: test: store namespace href

Ján Tomko posted 21 patches 6 years, 5 months ago
[libvirt] [PATCH 13/21] conf: test: store namespace href
Posted by Ján Tomko 6 years, 5 months ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 13/21] conf: test: store namespace href
Posted by Jiri Denemark 6 years, 5 months ago
On Wed, Aug 21, 2019 at 01:15:35 +0200, Ján Tomko wrote:
> 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@redhat.com>
> ---
>  src/test/test_driver.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list