4 def test_001_i_want_to_dump_the_junit_report_of_adml(admlc):
6 requestBody = { "targetFile":"/opt/adml/junit.xml" }
7 responseBodyRef = { "success":"true", "response":"Junit report written on '/opt/adml/junit.xml'" }
10 response = admlc.postDict("/test-junit", requestBody)
13 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
15 def test_002_i_want_to_dump_the_junit_report_of_adml_at_invalid_location(admlc):
17 requestBody = { "targetFile":"/invalid/path/junit.xml" }
18 responseBodyRef = { "success":"false", "response":"Internal error (check ADML traces): error opening '/invalid/path/junit.xml'" }
21 response = admlc.postDict("/test-junit", requestBody)
24 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
26 def test_003_i_want_to_dump_the_junit_report_of_adml_at_default_location(admlc):
28 responseBodyRef = { "success":"true", "response":"Junit report written on '/tmp/junit.xml'" }
31 response = admlc.postDict("/test-junit", {})
34 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)