From 096e94cef6edf453bb6196d05e9eedbe16771ba9 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 14 Dec 2017 18:01:05 +0100 Subject: [PATCH] tests: virstoragetest: validate that array deflattening works for gluster Validate that we are able to parse back the dotted syntax arrays we were generating in the pre-blockdev era. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- tests/virstoragetest.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index c59511114d..547118951e 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -1387,6 +1387,24 @@ mymain(void) " \n" " \n" "\n"); + TEST_BACKING_PARSE("json:{\"driver\": \"raw\"," + "\"file\": {\"server.0.host\": \"A.A.A.A\"," + "\"server.1.host\": \"B.B.B.B\"," + "\"server.2.host\": \"C.C.C.C\"," + "\"driver\": \"gluster\"," + "\"path\": \"raw\"," + "\"server.0.type\": \"tcp\"," + "\"server.1.type\": \"tcp\"," + "\"server.2.type\": \"tcp\"," + "\"server.0.port\": \"24007\"," + "\"server.1.port\": \"24007\"," + "\"server.2.port\": \"24007\"," + "\"volume\": \"vol1\"}}", + "\n" + " \n" + " \n" + " \n" + "\n"); TEST_BACKING_PARSE("json:{\"file\":{\"driver\":\"nbd\"," "\"path\":\"/path/to/socket\"" "}"