diff options
| author | Ross Burton <ross@burtonini.com> | 2021-01-21 10:50:11 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-23 17:09:26 +0000 |
| commit | 8e92ec78322909ca5ad6ceda582b611fa77a9964 (patch) | |
| tree | 7d075d15e766959913b92390f129f5c0b921324e /bitbake/lib/bb | |
| parent | 5d81a9186185fdac6af98f088b8be39c42aeeac9 (diff) | |
| download | poky-8e92ec78322909ca5ad6ceda582b611fa77a9964.tar.gz | |
bitbake: tests/fetch: add test for empty query parameters
To exercise the previous patch, add a test case.
(Bitbake rev: efdf6d5c4cd8155bc54dc667346f58dccb138e07)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
| -rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 1452d76151..20beab3855 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
| @@ -87,6 +87,25 @@ class URITest(unittest.TestCase): | |||
| 87 | }, | 87 | }, |
| 88 | 'relative': False | 88 | 'relative': False |
| 89 | }, | 89 | }, |
| 90 | # Check that trailing semicolons are handled correctly | ||
| 91 | "http://www.example.org/index.html?qparam1=qvalue1;param2=value2;" : { | ||
| 92 | 'uri': 'http://www.example.org/index.html?qparam1=qvalue1;param2=value2', | ||
| 93 | 'scheme': 'http', | ||
| 94 | 'hostname': 'www.example.org', | ||
| 95 | 'port': None, | ||
| 96 | 'hostport': 'www.example.org', | ||
| 97 | 'path': '/index.html', | ||
| 98 | 'userinfo': '', | ||
| 99 | 'username': '', | ||
| 100 | 'password': '', | ||
| 101 | 'params': { | ||
| 102 | 'param2': 'value2' | ||
| 103 | }, | ||
| 104 | 'query': { | ||
| 105 | 'qparam1': 'qvalue1' | ||
| 106 | }, | ||
| 107 | 'relative': False | ||
| 108 | }, | ||
| 90 | "http://www.example.com:8080/index.html" : { | 109 | "http://www.example.com:8080/index.html" : { |
| 91 | 'uri': 'http://www.example.com:8080/index.html', | 110 | 'uri': 'http://www.example.com:8080/index.html', |
| 92 | 'scheme': 'http', | 111 | 'scheme': 'http', |
