aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim
AgeCommit message (Collapse)AuthorFilesLines
2020-05-03Rephrase the argparse arguments help messagesBartek Grzybowski1-61/+13
Show usage if no option provided. Change-Id: I1ed01464f4b689e6b716887e7719e8de6c0f1e42 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-03Kill the 'sleep' process as wellBartek Grzybowski1-1/+1
ROP_file_creator.sh spawns 'sleep' cmd as a child hence it needs to be killed as well on clean up. Change-Id: Ic2007e710b6efa0028ebd239f26b7eff6a9e04ea Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-04-14Fix integration markdown errors for lintermrichomme2-24/+65
Issue-ID: INT-1523 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I2be0865395b12e1f277834b0c096f5d183cb5056 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-04-06Remove deprecated options from virtualenv invocationBartek Grzybowski1-2/+2
--no-site-packages and --distribute are marked DEPRECATED and retained only for backward compatibility so removing. Change-Id: I3cc66b5c09363d5b982537cc28b8f66609743121 Issue-ID: INT-1508 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-05Fix indentation and whitespace issues in Python scriptsBartek Grzybowski1-12/+9
Reported by pylint. Change-Id: I9d5ee152f3587bb2d7e8abee919e4ffe47d8ae85 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-04Remove unused imports in mass-pnf-sim.pyBartek Grzybowski1-2/+0
Change-Id: Idf48efd38395afc4fcb85d42e79a26f94f59a02b Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-02Fix JSON files linter issues in test/mocks/mass-pnf-simBartek Grzybowski5-2404/+2711
This is needed prior to adding job for JSON files linting in CI. Change-Id: Ia71dd28061b5e84c36c81bc1432ccd39ca8cc73a Issue-ID: INT-1451 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-02-21Fix YAML linter indentation errors in yaml filesBartek Grzybowski2-5/+5
Change-Id: I5548de0d7afb0e249ab8b6dbc93c102a2a2ac648 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-21Fix YAML files linter errors for superfluous spaces/new linesBartek Grzybowski2-2/+0
Change-Id: Id2b6b0966e07104b32c98053de04bd359dfef803 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-21Fix YAML files linter errors for trailing-spaces ruleBartek Grzybowski1-1/+1
Fixed files that had trailing spaces. Change-Id: I40782bc3a934846372653a0086f1c1fe50bc02c3 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-20Fix YAML files linter errors for new-line-at-end-of-file ruleBartek Grzybowski1-1/+1
Fixed files that lacked the end of file new line. Change-Id: I552f408b88a3a529e25236b7118be3b5a5741c7e Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2019-07-11Mass PNF-sim unique VSFTPD PASV portsTamasBakai4-11/+30
Issue-ID: DCAEGEN2-1660 Change-Id: Ib742755f6a924ee9c5babe8e411311e7fe0e6802 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-05-03Pass typefileserver as parameter in mass-pnf-simRehanRaza6-31/+38
Change-Id: I1168a5f10cce9b7d17324504a57d90dd9ee7790d Issue-ID: DCAEGEN2-1434 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-05-02Unit test instability fixTamasBakai1-6/+6
simulator_should_send_fileready_message test was failing in maven, but working well in eclipse. Duration and Interval are now equal, and exactly 1 trigger should occur regardless of the execution environment. Change-Id: I9f283364d4717c6e4aa45b88ee7e9da393fa11c4 Issue-ID: DCAEGEN2-1434 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-04-15Merge "Mass-pnf-sim selective trigger"Gary Wu2-0/+34
2019-04-15Mass-pnf-sim selective triggerTamasBakai2-0/+34
Change-Id: I187abf1953843329b5d4b2a424cbcb75a2d906c9 Issue-ID: DCAEGEN2-1434 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-04-15DfC certificate updateTamasBakai4-53/+57
Change-Id: I7590371da5544d722299f7ad1a8d2ca358418493 Issue-ID: DCAEGEN2-1434 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-04-09Fix unit-tests of mass-pnf-simulatorRehanRaza14-55/+405
Change-Id: Ie11e97862c8cbbdb269b8b5e6d4361340b98f1b2 Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-04-04Fix VES event fieldsRehanRaza4-2/+5
* timeZoneOffset uses default system timezone * sourceName and reportingEntityName use the nodename of pnf-sim instance Change-Id: Idf7f0b8d4a02cb533e81bdf69d5034cd842c3fb8 Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-04-02mass-pnf-sim .gitattributes addedTamasBakai2-0/+1
Change-Id: Iac215e75fa13ece7655e1a7d9e6544d7a893039d Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-03-29Update VES event with latest file in each ROPRehanRaza6-231/+66
Change-Id: I64e8ac7ba99c28d299a711741dcc1c6f8bc9e47e Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-03-26Mass-pnf-sim URL handling improvementsTamasBakai9-63/+128
Change-Id: Ic10551cb0cd1f875ad6a1cec3d73e1cfcb35d00e Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-03-26Create VES event with multiple filesRehanRaza9-310/+110
Change-Id: Ibd3ac4f887b296167fa24b176ac2d5b8cd4722d6 Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-03-22Mass-pnf-simulator publishing portsTamasBakai6-61/+93
Change-Id: If43f505967bd542c88956e11aef4cd4e52626255 Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-03-20Add ROP file creator script in each PNF-simRehanRaza7-88/+63
* The script runs in a background process * The background process is killed when mass-pnf-sim is stopped * Filename format is updated to include timezone, HOSTNAME, and PNF-node-name Change-Id: If0a5a8c7bdd7ffb4958569e3037f1a7207770ef1 Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-03-19ROP file processing in mass-pnf-simulatorTamasBakai62-76/+3936
Change-Id: I66203ff66e9d91865f8eee06bef01e55bcd6c39c Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
2019-03-01ROP file creation script for e2e testingRehanRaza3-1/+71
* Creates a number of files (set using NUM_FILES) with standard filenames * File are created using a template XML file (set using FILE_TEMPLATE) * Files are updated after a specific interval (set using UPDATE_MINS) * At each update, the name of oldest file is modified with current timestamp * Works for multiple PNF nodes (set using NUM_NODES) Change-Id: I279970720ae25a360bd7a56923ebf3b8825abfd8 Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
2019-02-28Mass PNF simulator for benchmark purposesTamasBakai20-0/+3615
Change-Id: I8a5ead57d0347fa34f048c7bfc5352ba045b1b62 Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai <tamas.bakai@est.tech>