From: Jeremy Kerr Date: Fri, 17 Jan 2014 08:36:41 +0000 (+0800) Subject: test/parser: Check for full URLs in parser tests X-Git-Tag: v1.0.0~268 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=d14bf38b9881c385478a460e3058d7cadee107fb;hp=d14bf38b9881c385478a460e3058d7cadee107fb test/parser: Check for full URLs in parser tests 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 ---