def test_drivers_deployment_port(self): for driver in DRIVERS[1:]: assert drivers.is_driver_deployed(driver) cont = drivers.get_driver_container(driver) assert cont.attrs['NetworkSettings']['Ports'] == { f'{config.DRIVER_PORT}/tcp': None }
def test_driver_redeploy(self): driver = DRIVERS[-1] cont = drivers.get_driver_container(driver) cont.kill() assert drivers.is_driver_deployed(driver)
def test_drivers_deployment_network(self): for driver in DRIVERS[1:]: assert drivers.is_driver_deployed(driver) cont = drivers.get_driver_container(driver) assert list(cont.attrs['NetworkSettings']['Networks'].keys())[0] == config.NETWORK_NAME
def test_drivers_deployment(self): for driver in DRIVERS[1:]: assert drivers.is_driver_deployed(driver) cont = drivers.get_driver_container(driver) assert cont.status == 'running'
def teardown_method(self): for driver in DRIVERS: cont = drivers.get_driver_container(driver) if cont.status == 'running': cont.kill()