mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
e77445e860
commit
8ec11619cd
@ -54,7 +54,7 @@ class Symbols:
|
|||||||
'filename': file,
|
'filename': file,
|
||||||
'builtin': False,
|
'builtin': False,
|
||||||
})
|
})
|
||||||
self._symbols_path[symbol_id] = os.path.join(get_resource("symbols"), file)
|
self._symbols_path[symbol_id] = os.path.join(directory, file)
|
||||||
|
|
||||||
symbols.sort(key=lambda x: x["filename"])
|
symbols.sort(key=lambda x: x["filename"])
|
||||||
|
|
||||||
|
@ -68,5 +68,6 @@ class SymbolHandler:
|
|||||||
if not packet:
|
if not packet:
|
||||||
break
|
break
|
||||||
f.write(packet)
|
f.write(packet)
|
||||||
|
# Reset the symbol list
|
||||||
|
controller.symbols.list()
|
||||||
response.set_status(204)
|
response.set_status(204)
|
||||||
|
|
||||||
|
@ -49,4 +49,5 @@ def test_upload(http_controller, symbols_dir):
|
|||||||
with open(os.path.join(symbols_dir, "test2")) as f:
|
with open(os.path.join(symbols_dir, "test2")) as f:
|
||||||
assert f.read() == "TEST"
|
assert f.read() == "TEST"
|
||||||
|
|
||||||
|
response = http_controller.get('/symbols/test2/raw')
|
||||||
|
assert response.status == 200
|
||||||
|
Loading…
Reference in New Issue
Block a user