Add third work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / testid-waitfe-msg_test.py
1 import pytest
2
3
4 def test_001_given_test_indentifier_and_diameter_json_representation_i_want_to_add_test_id_waitfe_msg_step(resources, admlc, admlf):
5
6   flow = admlf.getId()
7
8   requestBody = resources("aar-diameterJsonFromOwnToAF-request.json")
9   responseBodyRef = { "success":"true", "response":"Done" }
10
11   # Send POST
12   response = admlc.post("/testid-waitfe-msg/{}".format(flow), requestBody)
13
14   # Verify response
15   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
16
17   # Cleanup
18   response = admlc.post("/test-clear")
19