コード例 #1
0
 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
         }
コード例 #2
0
 def test_driver_redeploy(self):
     driver = DRIVERS[-1]
     cont = drivers.get_driver_container(driver)
     cont.kill()
     assert drivers.is_driver_deployed(driver)
コード例 #3
0
 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
コード例 #4
0
 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'
コード例 #5
0
 def teardown_method(self):
     for driver in DRIVERS:
         cont = drivers.get_driver_container(driver)
         if cont.status == 'running':
             cont.kill()