5 def test_001_save_msg_loaded(saveB64Artifact, b64_encode, resources, admlc):
7 requestBody = resources("aar-diameterJson-request.json")
9 # reponse field in response body, should carry the base64 encoding for xml message loaded by ADML:
10 xmlExpected = resources("aar.xml")
11 responseBodyRef = { "success":"true", "response":"{}".format(b64_encode(xmlExpected)) }
14 response = admlc.post("/loadmsg", requestBody)
17 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
19 # Save artifact from base64 encoded string received
20 saveB64Artifact(response["body"]["response"], "helpers/loadmsg")