mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Generated compute name include the username when it's exists
This commit is contained in:
3 files changed
+11
-3
No files matched your search
@@ -47,7 +47,8 @@ def test_name():
|
||||
assert c.name == "Local"
|
||||
c = Compute("world", protocol="https", host="example.com", port=84, controller=MagicMock(), name="hello")
|
||||
assert c.name == "hello"
|
||||
|
||||
c = Compute("world", protocol="https", host="example.com", port=84, controller=MagicMock(),user="azertyuiopqsdfghjklkm")
|
||||
assert c.name == "https://azertyuiopq...@example.com:84"
|
||||
|
||||
def test_compute_local(compute):
|
||||
"""
|
||||
|
||||
@@ -64,7 +64,7 @@ def test_load(controller, controller_config_path, async_run):
|
||||
"port": 8000,
|
||||
"protocol": "http",
|
||||
"user": "admin",
|
||||
"name": "http://localhost:8000"
|
||||
"name": "http://admin@localhost:8000"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user