mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Full module path import
This commit is contained in:
parent
2ebb0a56cc
commit
fbc2af52fc
@ -13,7 +13,7 @@ from salttesting import skipIf
|
||||
# Import Salt libs
|
||||
import salt.ext.six as six
|
||||
import integration
|
||||
from salt.utils import virtualbox
|
||||
import salt.utils.virtualbox
|
||||
|
||||
# Create the cloud instance name to be used throughout the tests
|
||||
INSTANCE_NAME = integration.cloud.helpers.random_name()
|
||||
@ -34,10 +34,10 @@ log.setLevel(logging.INFO)
|
||||
info = log.info
|
||||
|
||||
|
||||
@skipIf(virtualbox.HAS_LIBS is False, 'virtualbox has to be installed')
|
||||
@skipIf(salt.utils.virtualbox.HAS_LIBS is False, 'virtualbox has to be installed')
|
||||
class VirtualboxTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.vbox = virtualbox.vb_get_box()
|
||||
self.vbox = salt.utils.virtualbox.vb_get_box()
|
||||
|
||||
def assertMachineExists(self, name, msg=None):
|
||||
try:
|
||||
@ -52,7 +52,7 @@ class VirtualboxTestCase(unittest.TestCase):
|
||||
self.assertRaisesRegexp(Exception, "Could not find a registered machine", self.vbox.findMachine, name)
|
||||
|
||||
|
||||
@skipIf(virtualbox.HAS_LIBS is False, 'salt-cloud requires virtualbox to be installed')
|
||||
@skipIf(salt.utils.virtualbox.HAS_LIBS is False, 'salt-cloud requires virtualbox to be installed')
|
||||
class VirtualboxCloudTestCase(integration.ShellCase):
|
||||
def run_cloud(self, arg_str, catch_stderr=False, timeout=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user