Stress improts
* Partial relative import fix
* Wildcard imports removed
* stress/utils/util.py renamed to stress/utils.py
* time/datetime module aliasing removed
Change-Id: Ib0b234581695604c10c51915210e4643a8732874
diff --git a/stress/test_server_actions.py b/stress/test_server_actions.py
index a2032f0..f4ddf23 100644
--- a/stress/test_server_actions.py
+++ b/stress/test_server_actions.py
@@ -18,12 +18,11 @@
actions veriy that the API call was successful or not."""
import random
-import time
import pending_action
+import stress.utils
from tempest.exceptions import Duplicate
import test_case
-from utils.util import *
class TestRebootVM(test_case.StressTestCase):
@@ -81,7 +80,7 @@
class VerifyRebootVM(pending_action.PendingServerAction):
"""Class to verify that the reboot completed."""
- States = enum('REBOOT_CHECK', 'ACTIVE_CHECK')
+ States = stress.utils.enum('REBOOT_CHECK', 'ACTIVE_CHECK')
def __init__(self, manager, state, target_server,
reboot_state=None,