def test_if_marathon_pods_can_be_deployed_with_mesos_containerizer(dcos_api_session):
 test_uuid = uuid.uuid4().hex
 pod_definition = {'id': '/integration-test-pods-{}'.format(test_uuid), 'scaling': {'kind': 'fixed', 'instances': 1}, 'environment': {'PING': 'PONG'}, 'containers': [{'name': 'ct1', 'resources': {'cpus': 0.1, 'mem': 32}, 'image': {'kind': 'DOCKER', 'id': 'debian:jessie'}, 'exec': {'command': {'shell': 'touch foo'}}, 'healthcheck': {'command': {'shell': 'test -f foo'}}}, {'name': 'ct2', 'resources': {'cpus': 0.1, 'mem': 32}, 'exec': {'command': {'shell': 'echo $PING > foo; while true; do sleep 1; done'}}, 'healthcheck': {'command': {'shell': 'test $PING = `cat foo`'}}}], 'networks': [{'mode': 'host'}]}
 with dcos_api_session.marathon.deploy_pod_and_cleanup(pod_definition):
  pass

def test_if_marathon_pods_can_be_deployed_with_mesos_containerizer ( dcos_api_session ) : test_uuid = uuid . uuid4 ( ) . hex pod_definition = { 'id' : '/integration-test-pods-{}' . format ( test_uuid ) , 'scaling' : { 'kind' : 'fixed' , 'instances' : 1 } , 'environment' : { 'PING' : 'PONG' } , 'containers' : [ { 'name' : 'ct1' , 'resources' : { 'cpus' : 0.1 , 'mem' : 32 } , 'image' : { 'kind' : 'DOCKER' , 'id' : 'debian:jessie' } , 'exec' : { 'command' : { 'shell' : 'touch foo' } } , 'healthcheck' : { 'command' : { 'shell' : 'test -f foo' } } } , { 'name' : 'ct2' , 'resources' : { 'cpus' : 0.1 , 'mem' : 32 } , 'exec' : { 'command' : { 'shell' : 'echo $PING > foo; while true; do sleep 1; done' } } , 'healthcheck' : { 'command' : { 'shell' : 'test $PING = `cat foo`' } } } ] , 'networks' : [ { 'mode' : 'host' } ] } with dcos_api_session . marathon . deploy_pod_and_cleanup ( pod_definition ) : pass
marathon pods deployment integration test using the mesos containerizer this test verifies that a marathon pods can be deployed .