Add third work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / testid-description_test.py
1 import pytest
2
3
4 def test_001_given_test_indentifier_i_want_to_set_test_id_description(admlc, admlf):
5
6   flow = admlf.getId()
7
8   requestBody = { "description":"testid-description.test_001.flow{}".format(flow) }
9   responseBodyRef = { "success":"true", "response":"Done" }
10
11   # Send POST
12   response = admlc.postDict("/testid-description/{}".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