Add ct automation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / testid-waitfc_test.py
1 import pytest
2
3
4 def test_001_given_test_indentifier_and_diameter_json_condition_i_want_to_add_test_id_waitfc_step(resources, admlc, admlf):
5
6   flow = admlf.getId()
7
8   requestBody = resources("condition-request.json")
9   responseBodyRef = { "success":"true", "response":"Done" }
10
11   # Send POST
12   response = admlc.post("/testid-waitfc/{}".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