Skip to content

Commit

Permalink
Merge pull request #3073 from freenas/QE-NAS-101843
Browse files Browse the repository at this point in the history
QE NAS-101843  Fix API v1 system/reboot tests for vm-bhyve 1.3.0
  • Loading branch information
pkgdemon committed May 20, 2019
2 parents bb265e9 + a818dbd commit 7355233
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/api1/system.py
Expand Up @@ -93,19 +93,13 @@ def test_08_verify_get_system_tunable_result_of_(data):

# Reboot system to enable tunable
def test_09_reboot_system_to_enable_tunable():
if vm_name is None and interface == 'vtnet0':
pytest.skip('skip no vm_name for bhyve')
else:
results = POST("/system/reboot/")
assert results.status_code == 202, results.text
results = POST("/system/reboot/")
assert results.status_code == 202, results.text
sleep(10)


def test_10_wait_for_reboot():
if vm_name is not None:
while vm_state(vm_name) != 'stopped':
sleep(5)
assert vm_start(vm_name) is True
sleep(1)

while ping_host(ip) is not True:
sleep(5)
assert ping_host(ip) is True
Expand Down

0 comments on commit 7355233

Please sign in to comment.