Skip to content
Permalink
Browse files

Merge pull request #3073 from freenas/QE-NAS-101843

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 735523329c2b74eeb598ffc1a0eaf03d89a51532
Showing with 4 additions and 10 deletions.
  1. +4 −10 tests/api1/system.py
@@ -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

0 comments on commit 7355233

Please sign in to comment.
You can’t perform that action at this time.