def setUpClass(cls): TestBase.setUpClass() cls.server = FakeRhevm4() cls.server.start() cls.arguments = [ '--rhevm', '--rhevm-server=http://localhost:%s/' % cls.server.port, '--rhevm-username=%s' % cls.server.username, '--rhevm-password=%s' % cls.server.password, '--rhevm-owner=owner', '--rhevm-env=env' ]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeEsx() cls.server.start() cls.arguments = [ '--esx', '--esx-server=http://localhost:%s' % cls.server.port, '--esx-username=%s' % cls.server.username, '--esx-password=%s' % cls.server.password, '--esx-owner=owner', '--esx-env=env' ]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeRhevm() cls.server.start() cls.arguments = [ '--rhevm', '--rhevm-server=http://localhost:%s/' % cls.server.port, '--rhevm-username=%s' % cls.server.username, '--rhevm-password=%s' % cls.server.password, '--rhevm-owner=owner', '--rhevm-env=env' ]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeEsx() cls.server.start() cls.arguments = [ "--esx", "--esx-server=http://localhost:%s" % cls.server.port, "--esx-username=%s" % cls.server.username, "--esx-password=%s" % cls.server.password, "--esx-owner=owner", "--esx-env=env", ]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeRhevm4() cls.server.start() cls.config_dir = tempfile.mkdtemp() with open(os.path.join(cls.config_dir, "test.conf"), "w") as f: f.write((""" [test] type=rhevm server=http://localhost:%s/ username=%s password=%s owner=owner """) % (cls.server.port, cls.server.username, cls.server.password)) cls.arguments = ['-c=%s' % os.path.join(cls.config_dir, "test.conf")]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeEsx() cls.server.start() cls.config_dir = tempfile.mkdtemp() with open(os.path.join(cls.config_dir, "test.conf"), "w") as f: f.write((""" [test] type=esx server=http://localhost:%s username=%s password=%s owner=owner """) % (cls.server.port, cls.server.username, cls.server.password)) cls.arguments = [ '-c=%s' % os.path.join(cls.config_dir, "test.conf") ]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeRhevm() cls.server.start() cls.config_dir = tempfile.mkdtemp() # cls.addCleanup(shutil.rmtree, cls.config_dir) print("server=http://localhost:%s, username=%s, password=%s" % (cls.server.port, cls.server.username, cls.server.password)) with open(os.path.join(cls.config_dir, "test.conf"), "w") as f: f.write((""" [test] type=rhevm server=http://localhost:%s/ username=%s password=%s owner=owner env=env """) % (cls.server.port, cls.server.username, cls.server.password)) cls.arguments = ['-c=%s' % os.path.join(cls.config_dir, "test.conf")]
def setUpClass(cls): TestBase.setUpClass() cls.server = FakeRhevm() cls.server.start() cls.config_dir = tempfile.mkdtemp() # cls.addCleanup(shutil.rmtree, cls.config_dir) print("server=http://localhost:%s, username=%s, password=%s" % ( cls.server.port, cls.server.username, cls.server.password)) with open(os.path.join(cls.config_dir, "test.conf"), "w") as f: f.write((""" [test] type=rhevm server=http://localhost:%s/ username=%s password=%s owner=owner """) % (cls.server.port, cls.server.username, cls.server.password)) cls.arguments = [ '-c=%s' % os.path.join(cls.config_dir, "test.conf") ]