#NEWLINE# @ when ( 'we create a marathon app called "{job_id}" with {number:d} instance(s)' ) #NEWLINE# def create_app_with_instances( context , job_id , number ) : #NEWLINE# #INDENT# set_number_instances ( context , number ) #NEWLINE# context . job_id = job_id #NEWLINE# ( service , instance , _ , __ ) = decompose_job_id ( job_id ) #NEWLINE# context . service = service #NEWLINE# context . instance = instance #NEWLINE# context . zk_hosts = ( '%s/mesos-testcluster' % get_service_connection_string ( 'zookeeper' ) ) #NEWLINE# update_context_marathon_config ( context ) #NEWLINE# context . app_id = context . marathon_complete_config [ 'id' ] #NEWLINE# run_setup_marathon_job ( context )