From 67d2787807d12e356db9b2a75ce3b85174fced60 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 12 Mar 2025 13:48:27 +0100 Subject: [PATCH] domainbackupxml2xml: Add test case with unix socket server for pull mode backup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit While we show the example in the docs we don't have an example XML for exercising the parser/formatter and schema. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- .../backup-pull-unix.xml | 22 ++++++++++++++++++ .../backup-pull-unix.xml | 23 +++++++++++++++++++ tests/genericxml2xmltest.c | 1 + 3 files changed, 46 insertions(+) create mode 100644 tests/domainbackupxml2xmlin/backup-pull-unix.xml create mode 100644 tests/domainbackupxml2xmlout/backup-pull-unix.xml diff --git a/tests/domainbackupxml2xmlin/backup-pull-unix.xml b/tests/domainbackupxml2xmlin/backup-pull-unix.xml new file mode 100644 index 0000000000..cde9ceafc9 --- /dev/null +++ b/tests/domainbackupxml2xmlin/backup-pull-unix.xml @@ -0,0 +1,22 @@ + + 1525889631 + + + + + + + + + + + + + + + + + + + + diff --git a/tests/domainbackupxml2xmlout/backup-pull-unix.xml b/tests/domainbackupxml2xmlout/backup-pull-unix.xml new file mode 100644 index 0000000000..811edfdf39 --- /dev/null +++ b/tests/domainbackupxml2xmlout/backup-pull-unix.xml @@ -0,0 +1,23 @@ + + 1525889631 + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index 61613d21f9..b46b9515c3 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -244,6 +244,7 @@ mymain(void) DO_TEST_BACKUP("empty"); DO_TEST_BACKUP("backup-pull"); + DO_TEST_BACKUP("backup-pull-unix"); DO_TEST_BACKUP("backup-pull-seclabel"); DO_TEST_BACKUP("backup-pull-encrypted"); DO_TEST_BACKUP("backup-push"); -- 2.47.3