Esempio n. 1
0
 def test_headnode(self, db):
     api.project_create('anvil-nextgen')
     network_create_simple('spider-web', 'anvil-nextgen')
     api.headnode_create('hn-0', 'anvil-nextgen', 'base-headnode')
     api.headnode_create_hnic('hn-0', 'hnic-0')
     api.headnode_connect_network('hn-0', 'hnic-0', 'spider-web')
     assert json.loads(api.show_headnode('hn-0'))['vncport'] is None
     api.headnode_start('hn-0')
     assert json.loads(api.show_headnode('hn-0'))['vncport'] is not None
     api.headnode_stop('hn-0')
     api.headnode_delete('hn-0')
Esempio n. 2
0
 def test_headnode(self, db):
     api.project_create('anvil-nextgen')
     network_create_simple('spider-web', 'anvil-nextgen')
     api.headnode_create('hn-0', 'anvil-nextgen', 'base-headnode')
     api.headnode_create_hnic('hn-0', 'hnic-0')
     api.headnode_connect_network('hn-0', 'hnic-0', 'spider-web')
     assert json.loads(api.show_headnode('hn-0'))['vncport'] is None
     api.headnode_start('hn-0')
     assert json.loads(api.show_headnode('hn-0'))['vncport'] is not None
     api.headnode_stop('hn-0')
     api.headnode_delete('hn-0')
Esempio n. 3
0
 def test_headnode_deletion_while_running(self, db):
     api.project_create('anvil-nextgen')
     api.headnode_create('hn-0', 'anvil-nextgen', 'base-headnode-2')
     api.headnode_start('hn-0')
     api.headnode_delete('hn-0')
Esempio n. 4
0
 def test_headnode_deletion_while_running(self, db):
     api.project_create('anvil-nextgen')
     api.headnode_create('hn-0', 'anvil-nextgen', 'base-headnode-2')
     api.headnode_start('hn-0')
     api.headnode_delete('hn-0')