def test_cobbler_alive(self): """Test current installation has correctly setup cobbler API and cobbler HTTP server are alive Scenario: 1. Revert snapshot "empty" 2. test cobbler API and HTTP server through send http request Duration 1m """ wait(lambda: http(host=self.env.get_admin_node_ip(), url='/cobbler_api', waited_code=501), timeout=60) server = ServerProxy('http://%s/cobbler_api' % self.env.get_admin_node_ip()) config = self.env.admin_actions.get_fuel_settings() username = config['cobbler']['user'] password = config['cobbler']['password'] # raises an error if something isn't right server.login(username, password)
def test_cobbler_alive(self): """Test current installation has correctly setup cobbler API and cobbler HTTP server are alive Scenario: 1. Revert snapshot "empty" 2. test cobbler API and HTTP server through send http request Duration 1m """ wait( lambda: http(host=self.env.get_admin_node_ip(), url='/cobbler_api', waited_code=501), timeout=60 ) server = ServerProxy( 'http://%s/cobbler_api' % self.env.get_admin_node_ip()) config = self.env.admin_actions.get_fuel_settings() username = config['cobbler']['user'] password = config['cobbler']['password'] # raises an error if something isn't right server.login(username, password)
def test_cobbler_alive(self): """Test current installation has correctly setup cobbler Test disabled and move to fuel_tests suite: fuel_tests.test.test_admin_node.TestAdminNode API and cobbler HTTP server are alive Scenario: 1. Revert snapshot "empty" 2. test cobbler API and HTTP server through send http request Duration 1m """ # pylint: disable=W0101 warn("Test disabled and move to fuel_tests suite", DeprecationWarning) raise SkipTest("Test disabled and move to fuel_tests suite") self.env.revert_snapshot("empty") wait(lambda: http(host=self.env.get_admin_node_ip(), url='/cobbler_api', waited_code=501), timeout=60, timeout_msg='Cobler WEB API is not alive') server = ServerProxy('http://%s/cobbler_api' % self.env.get_admin_node_ip()) config = self.env.admin_actions.get_fuel_settings() username = config['cobbler']['user'] password = config['cobbler']['password'] # raises an error if something isn't right server.login(username, password)
def test_cobbler_alive(self): """Test current installation has correctly setup cobbler Test disabled and move to fuel_tests suite: fuel_tests.test.test_admin_node.TestAdminNode API and cobbler HTTP server are alive Scenario: 1. Revert snapshot "empty" 2. test cobbler API and HTTP server through send http request Duration 1m """ # pylint: disable=W0101 warn("Test disabled and move to fuel_tests suite", DeprecationWarning) raise SkipTest("Test disabled and move to fuel_tests suite") self.env.revert_snapshot("empty") wait( lambda: http(host=self.env.get_admin_node_ip(), url="/cobbler_api", waited_code=501), timeout=60, timeout_msg="Cobler WEB API is not alive", ) server = ServerProxy("http://%s/cobbler_api" % self.env.get_admin_node_ip()) config = self.env.admin_actions.get_fuel_settings() username = config["cobbler"]["user"] password = config["cobbler"]["password"] # raises an error if something isn't right server.login(username, password)