#NEWLINE# def test_enable_debugging( self ) : #NEWLINE# #INDENT# cmd = ( DEFAULT_CMD + '--log-uri s3://test/logs --enable-debugging' ) #NEWLINE# result = copy . deepcopy ( DEFAULT_RESULT ) #NEWLINE# result [ 'LogUri' ] = 's3://test/logs' #NEWLINE# debugging_config = [ { #NEWLINE# #INDENT# 'Name' : 'Setup Hadoop Debugging' , #NEWLINE# 'ActionOnFailure' : 'TERMINATE_CLUSTER' , #NEWLINE# 'HadoopJarStep' : { #NEWLINE# #INDENT# 'Args' : [ 's3://us-east-1.elasticmapreduce/libs/state-pusher/0.1/fetch' ] , #NEWLINE# 'Jar' : ( 's3://us-east-1.elasticmapreduce/libs/' + 'script-runner/script-runner.jar' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] #NEWLINE# result [ 'Steps' ] = debugging_config #NEWLINE# self . assert_params_for_cmd ( cmd , result ) #NEWLINE# cmd = ( DEFAULT_CMD + '--log-uri s3://test/logs --enable-debugging --region us-west-2' ) #NEWLINE# debugging_config = [ { #NEWLINE# #INDENT# 'Name' : 'Setup Hadoop Debugging' , #NEWLINE# 'ActionOnFailure' : 'TERMINATE_CLUSTER' , #NEWLINE# 'HadoopJarStep' : { #NEWLINE# #INDENT# 'Args' : [ 's3://us-west-2.elasticmapreduce/libs/state-pusher/0.1/fetch' ] , #NEWLINE# 'Jar' : ( 's3://us-west-2.elasticmapreduce/libs/' + 'script-runner/script-runner.jar' ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] #NEWLINE# result [ 'Steps' ] = debugging_config #NEWLINE# self . assert_params_for_cmd ( cmd , result )