Nat node is only on the GNS3 VM for the moment

Fix https://github.com/GNS3/gns3-gui/issues/1448
This commit is contained in:
Julien Duponchelle committed 2016-08-29 18:31:33 +02:00
1 parent edae834e0e
commit 36d2e80d0a
3 files changed
+19 -3

No files matched your search

@@ -26,6 +26,15 @@ from gns3server.version import __version__
def test_get(http_compute):
"""
Nat is not supported outside the GNS3VM
"""
response = http_compute.get('/capabilities', example=True)
assert response.status == 200
assert response.json == {'node_types': ['cloud', 'nat', 'ethernet_hub', 'ethernet_switch', 'vpcs', 'virtualbox', 'dynamips', 'frame_relay_switch', 'atm_switch', 'qemu', 'vmware', 'docker', 'iou'], 'version': __version__}
assert response.json == {'node_types': ['cloud', 'ethernet_hub', 'ethernet_switch', 'vpcs', 'virtualbox', 'dynamips', 'frame_relay_switch', 'atm_switch', 'qemu', 'vmware', 'docker', 'iou'], 'version': __version__}
def test_get_on_gns3vm(http_compute, on_gns3vm):
response = http_compute.get('/capabilities', example=True)
assert response.status == 200
assert response.json == {'node_types': ['cloud', 'ethernet_hub', 'ethernet_switch', 'nat', 'vpcs', 'virtualbox', 'dynamips', 'frame_relay_switch', 'atm_switch', 'qemu', 'vmware', 'docker', 'iou'], 'version': __version__}