4 def test_001_save_node(saveB64Artifact, admlc):
6 requestBody = { "name":"afHost.afRealm.com" }
7 responseBodyRef = { "success":"true", "response":"Forced node is now 'afHost.afRealm.com'" }
10 response = admlc.postDict("/node", requestBody)
13 admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
15 requestBody = { "name":"" }
18 response = admlc.postDict("/node", requestBody)
20 # Verify response is ok (omit response content because it is informative and have dynamic data (timing)):
21 assert response["status"] == 200
22 assert response["body"]["success"] == "true"
24 # Save artifact from base64 encoded string received
25 saveB64Artifact(response["body"]["response"], "helpers/node")