aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/tests
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-01-21 10:50:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-21 11:39:46 +0000
commitefdf6d5c4cd8155bc54dc667346f58dccb138e07 (patch)
treedcb194200d0b7e0aa81e19fb24706ec93a2008db /lib/bb/tests
parent7662f8c8676d87cb318f811423cc02fe8cb146f6 (diff)
downloadbitbake-efdf6d5c4cd8155bc54dc667346f58dccb138e07.tar.gz
tests/fetch: add test for empty query parameters
To exercise the previous patch, add a test case. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests')
-rw-r--r--lib/bb/tests/fetch.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 1452d7615..20beab385 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -87,6 +87,25 @@ class URITest(unittest.TestCase):
},
'relative': False
},
+ # Check that trailing semicolons are handled correctly
+ "http://www.example.org/index.html?qparam1=qvalue1;param2=value2;" : {
+ 'uri': 'http://www.example.org/index.html?qparam1=qvalue1;param2=value2',
+ 'scheme': 'http',
+ 'hostname': 'www.example.org',
+ 'port': None,
+ 'hostport': 'www.example.org',
+ 'path': '/index.html',
+ 'userinfo': '',
+ 'username': '',
+ 'password': '',
+ 'params': {
+ 'param2': 'value2'
+ },
+ 'query': {
+ 'qparam1': 'qvalue1'
+ },
+ 'relative': False
+ },
"http://www.example.com:8080/index.html" : {
'uri': 'http://www.example.com:8080/index.html',
'scheme': 'http',