summaryrefslogtreecommitdiffstats
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 23:25:53 +0000
commit2ee7b28c96e79749d314086a1f5ba33d345927c5 (patch)
tree957967f202503a19688ec52019ded1b005117df0
parent3b645e0d08f91b6d4929072d16a47ba3302821c9 (diff)
downloadpoky-2ee7b28c96e79749d314086a1f5ba33d345927c5.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>
-rw-r--r--bitbake/lib/bb/tests/fetch.py19
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',