]> git.ozlabs.org Git - petitboot/commitdiff
test/parser: Check for full URLs in parser tests
authorJeremy Kerr <jk@ozlabs.org>
Fri, 17 Jan 2014 08:36:41 +0000 (16:36 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 17 Jan 2014 08:58:14 +0000 (16:58 +0800)
At present, we only match the 'file' portion of a URL in the parser
tests, so we "serve" a file if just the filename (but not the scheme,
hostname or path) matches the file we set with test_read_conf_embedded.

This change introduces test_read_conf_embedded_url, which we can use to
specify a full URL. In this case, the fake parser_request_file matches
the entire URL before returning the file data.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found