Allow to automatically reserve an FSM test id
authorEduardo Ramos Testillano (ert) <eduardo.ramos.testillano@gmail.com>
Mon, 1 Nov 2021 18:06:30 +0000 (19:06 +0100)
committerEduardo Ramos Testillano (ert) <eduardo.ramos.testillano@gmail.com>
Mon, 1 Nov 2021 18:06:30 +0000 (19:06 +0100)
commitcef452116c2966d7eaa65ff31ee7613bf3ae1b93
treed443621eb61f8170a3563dc26f2ec45247c2ad38
parent1b744dbd580cc353d18b119eef361abe1850a91b
Allow to automatically reserve an FSM test id

We will allow to provide '0' as special value for test
identifier on test manager in order to reserve the id
as the current pool size plus 1. This is valid if previous
reservations were done in the same way, or starting from
the id=1 and monotonically increased without holes in the
sequence.

REST API now will return the response body with the response field
as the affected test id in order to know the one reserved just in
case 0 was provided instead of specific value.

Component tests have been adapted to the new feature.
24 files changed:
example/diameter/launcher/EventOperation.cpp
example/diameter/launcher/resources/HELP.md
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-finished_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-goto_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-initialized_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-interact_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-look_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-run_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-state_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-delay_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-description_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-ip-limit_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-sendmsg2c_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-sendmsg2e_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-sh-command_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-timeout_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-waitfc-hex_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-waitfc-msg_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-waitfc_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-waitfe-hex_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-waitfe-msg_test.py
example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-waitfe_test.py
include/anna/testing/TestManager.hpp
source/testing/TestManager.cpp