[Spice-devel] [PATCH spice-gtk 4/4] tests: add spice+tls:// tests
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Thu Feb 8 12:21:28 UTC 2018
From: Marc-André Lureau <marcandre.lureau at redhat.com>
They couldn't not be introduced before, because the test needs both
parsing and generation.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
tests/session.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/session.c b/tests/session.c
index fc874fc..ae2a22c 100644
--- a/tests/session.c
+++ b/tests/session.c
@@ -111,6 +111,17 @@ static void test_session_uri_bad(void)
"*assertion 's->port != NULL || s->tls_port != NULL' failed",
},
}
+ },{
+ "spice+tls://hostname?tls-port=1234&port=3456",
+ {
+ {
+ G_LOG_LEVEL_WARNING,
+ "spice+tls:// scheme doesn't support query string",
+ },{
+ G_LOG_LEVEL_CRITICAL,
+ "*assertion 's->port != NULL || s->tls_port != NULL' failed",
+ },
+ }
},
};
@@ -233,6 +244,9 @@ static void test_session_uri_ipv4_good(void)
NULL, NULL,
"spice://127.0.0.1:42?tls-port=5930",
"spice://127.0.0.1?port=42&tls-port=5930" },
+ { .uri_input = "spice+tls://hostname:39",
+ .host = "hostname",
+ .tls_port = "39" }
};
test_session_uri_good(tests, G_N_ELEMENTS(tests));
--
2.16.1.73.g5832b7e9f2
More information about the Spice-devel
mailing list