Пример #1
0
 def setUpClass(cls):
     """
     Create a shared organization for all tests to avoid generating hundreds
     of organizations
     """
     BaseCLI.setUpClass()
     cls.org = cls.create_org()
Пример #2
0
 def setUpClass(cls):
     BaseCLI.setUpClass()
     cls.subnet_192_168_100 = "subnet-192168100"
     Subnet().delete({'name': cls.subnet_192_168_100})
     Subnet().create_minimal(cls.subnet_192_168_100)
Пример #3
0
 def setUpClass(cls):
     BaseCLI.setUpClass()
     cls.compute_res_updates = make_compute_resource({
         'provider': FOREMAN_PROVIDERS['libvirt'],
         'url': "qemu+tcp://%s:16509/system" %
         conf.properties['main.server.hostname']})['name']