Browse Source

Test for URIs with empty authority part.

Add test cases for non-file:// URIs with an empty authority part.
master
Damien Goutte-Gattat 3 months ago
parent
commit
64fe0099ba
  1. 7
      tests/t-parseuri.c

7
tests/t-parseuri.c

@ -66,6 +66,13 @@ struct test tests[] = {
0, GFSEC_SCHEME_HTTPS, "HOST", "/path/to/share.123", 123, 0 },
{ "scheme:///path/to/share.123", GFSEC_ERR_CONFIG_UNKNOWN_SCHEME },
/* Empty authority. */
{ "uuid:///", GFSEC_ERR_CONFIG_INVALID_URI },
{ "mtp:///", GFSEC_ERR_CONFIG_INVALID_URI },
{ "label:///", GFSEC_ERR_CONFIG_INVALID_URI },
{ "http:///", GFSEC_ERR_CONFIG_INVALID_URI },
{ "https:///", GFSEC_ERR_CONFIG_INVALID_URI },
/* Empty path. */
{ "file:///", GFSEC_ERR_CONFIG_INVALID_URI },
{ "file:///?param=value", GFSEC_ERR_CONFIG_INVALID_URI },

Loading…
Cancel
Save