Add PNF simulator execution and cleanup as a BaseStep 72/115372/9
authorEli Halych <illia.halych@t-mobile.pl>
Wed, 25 Nov 2020 10:52:03 +0000 (10:52 +0000)
committerEli Halych <illia.halych@t-mobile.pl>
Mon, 14 Dec 2020 15:14:25 +0000 (15:14 +0000)
commit95843eb0910fc9a0f05fc680160c5dec2aba1ba2
tree645100af5ba0713b5116c4a30ec1e2d955907818
parenta6fe8be6c1d1eb9e7293ed1c3bb63a76646fe22c
Add PNF simulator execution and cleanup as a BaseStep

1. The simulator is the masspnfsim from integration project. Added as a git submodule.
2. The flow: build image, bootstrap simulator, run simulator, stop simulator,
remove simulator, remove image (only simulator).
3. Additionally trigger (sending a message to VES) is handled in pnf/utils.py. To send a request to VES,
vesip in settings.PNF_VES_CONFIG should be set to the one accessible from simulator container. Default one
(172.17.0.1) communicates with the machine the simulator runs at.
4. commonEventHeader's fields can be overridden in settings.py (here sourceName, reportingEntityName)

Issue-ID: TEST-278
Signed-off-by: Eli Halych <illia.halych@t-mobile.pl>
Change-Id: Id77dc8c517a30458abd81f2aadc416204be522b5
.gitignore
.gitmodules [new file with mode: 0644]
requirements.txt
src/onaptests/integration [new submodule]
src/onaptests/steps/simulator/pnf/__init__.py [new file with mode: 0644]
src/onaptests/steps/simulator/pnf/pnf_config.yaml [new file with mode: 0644]
src/onaptests/steps/simulator/pnf/pnf_instantiate.py [new file with mode: 0644]
src/onaptests/steps/simulator/pnf/pnf_register.py [new file with mode: 0644]
src/onaptests/steps/simulator/pnf/utils.py [new file with mode: 0644]