summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2016-06-01 10:04:48 +0200
committerPavel Grunt <pgrunt@redhat.com>2016-06-02 10:26:10 +0200
commit8dcb4129acde2aed353cd66e28678408e7d1257c (patch)
treeaf5b3491545e258cb5f12297b11252056f5b3b79 /tests
parenteacbe261d48979f72585225107d00bba76623e8e (diff)
spice-uri: Validate uri scheme
Related: rhbz#1335239 Acked-by: Victor Toso <victortoso@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/uri.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/uri.c b/tests/uri.c
index 34569ec..80b00f4 100644
--- a/tests/uri.c
+++ b/tests/uri.c
@@ -79,6 +79,8 @@ static void test_spice_uri_ipv4_bad(void)
{"http://127.0.0.1:-80", "http", "127.0.0.1", 3128, NULL, NULL, "Port out of range"},
{"http://127.0.0.1:4294967396", "http", "127.0.0.1", 3128, NULL, NULL, "Port out of range"},
{"http://127.0.0.1:12345678901234", "http", "127.0.0.1", 3128, NULL, NULL, "Port out of range"},
+ {"scheme://192.168.1.1:3128", "http", "127.0.0.1", 3128, NULL, NULL,
+ "Invalid uri scheme for proxy: scheme"},
};
test_spice_uri_bad(invalid_test_cases, G_N_ELEMENTS(invalid_test_cases));