mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 13:15:14 +02:00
fix: pass the leading slash to the compute load endpoint path
getUrl joins the path directly after /v3/compute, so a path without the leading slash produces /v3/computedocker/images/load and the compute answers 404. Match the path shape used by forward() and the image sync path.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -211,7 +211,7 @@ class TestComputeFeatures:
|
||||
compute.http_query.assert_called_once()
|
||||
args, kwargs = compute.http_query.call_args
|
||||
assert args[0] == "POST"
|
||||
assert args[1] == "docker/images/load"
|
||||
assert args[1] == "/docker/images/load"
|
||||
assert kwargs["timeout"] is None
|
||||
# the request body must be streamed, not buffered
|
||||
assert hasattr(kwargs["data"], "__aiter__")
|
||||
|
||||
Reference in new issue
Block a user