summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2016-06-01 10:04:45 +0200
committerPavel Grunt <pgrunt@redhat.com>2016-06-02 10:26:10 +0200
commit024eccefba506f57fbff837c6d75864c51ed2add (patch)
tree498e396232f66d65228d13ffeda5509f98482116 /tests
parentdab190d8d2cb93f85f1858135354dd4e93ff48f8 (diff)
spice-uri: Reset SpiceURI before parsing
Avoid using old values after parsing a new uri. Related: rhbz#1335239
Diffstat (limited to 'tests')
-rw-r--r--tests/uri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/uri.c b/tests/uri.c
index b68f159..d57f072 100644
--- a/tests/uri.c
+++ b/tests/uri.c
@@ -87,6 +87,7 @@ static void test_spice_uri_ipv4_good(void)
{"https://127.0.0.1", "https", "127.0.0.1", 3129, NULL, NULL, NULL},
{"127.0.0.1", "http", "127.0.0.1", 3128, NULL, NULL, NULL},
{"http://user:password@host:80", "http", "host", 80, "user", "password", NULL},
+ {"https://host:42", "https", "host", 42, NULL, NULL, NULL}, /* tests resetting of username & password */
};
test_spice_uri_good(valid_test_cases, G_N_ELEMENTS(valid_test_cases));