aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2020-03-05Supress pylint warnings for undefined variablesBartek Grzybowski5-8/+8
'cmp', 'file' and 'unicode' functions are Python 2 specific. Change-Id: I30fa091ef157453a328ab40e4186c30e5ed1b3a1 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-05Fix indentation and whitespace issues in Python scriptsBartek Grzybowski14-54/+51
Reported by pylint. Change-Id: I9d5ee152f3587bb2d7e8abee919e4ffe47d8ae85 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-05EMS simulator extension for PNF SW UpgradeEnbo Wang19-637/+1060
Change-Id: I3a8c706373f4004850c2403f4aee0d1f28aad464 Issue-ID: INT-1208 Signed-off-by: Enbo Wang <wangenbo@huawei.com>
2020-03-04Fix pylint trailing whitespaces issues in vcpe python scriptsBartek Grzybowski5-19/+10
Change-Id: I8b1dbdb7bf5d2d12d0104dcabc200b8827b6fb8a 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-04Remove unused imports in vcpe python scriptsBartek Grzybowski9-26/+7
Unused imports are removed according to pylint report or ignore rules are added where applicable. Change-Id: I8c32b5c3f456f0444f8ec8980910d470b7238a7d Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-04Fixed the SSH configuration of user 'netconf'ebo8-11/+50
The actual SSH configuration is stored in Sysrepo and not as ordinary ~netconf/.ssh files. Issue-ID: INT-1124 Change-Id: I7e16e09a20ac6f2d52c8958550603935b6790283 Signed-off-by: ebo <eliezio.oliveira@est.tech>
2020-03-02Fix JSON files linter issues in test/mocks/pmsh-pnf-simBartek Grzybowski1-1/+34
This is needed prior to adding job for JSON files linting in CI. Change-Id: I7e7885840cfc51b4a556fe245fa2d69b88383216 Issue-ID: INT-1451 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-02Fix JSON files linter issues in test/hpa_automationBartek Grzybowski3-572/+509
This is needed prior to adding job for JSON files linting in CI. Change-Id: I86f68c5d25f5f521656995574bc516607f2160f4 Issue-ID: INT-1451 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-02Fix JSON files linter issues in test/mocks/datafilecollector-testharnessBartek Grzybowski12-57/+57
This is needed prior to adding job for JSON files linting in CI. Change-Id: I144873a8511f38a4336b73ac19276b213207a9fa Issue-ID: INT-1451 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-02Fix JSON files linter issues in test/mocks/emssimulatorBartek Grzybowski4-37/+37
This is needed prior to adding job for JSON files linting in CI. Change-Id: I15ae608c0b88b8eced6c9f53914bf42355c82c50 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
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-03-02Fix JSON files linter issues in test/mocks/pnfsimulatorBartek Grzybowski18-61/+68
This is needed prior to adding job for JSON files linting in CI. Change-Id: Ia5fadb693a74bc307d24c9de89131efcbb133ebe Issue-ID: INT-1451 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-03-02Fix JSON files linter issues in test/postmanBartek Grzybowski18-9946/+9946
This is needed prior to adding job for JSON files linting in CI. Change-Id: I6dfa144478c31702f5b306d9e2dad9bf0713a0fe Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-03-02Fix JSON files linter issues in test/vcpeBartek Grzybowski14-1594/+1619
This is needed prior to adding job for JSON files linting in CI. Change-Id: I408107e0dc58648f833b8d585acf0e414882c7dc Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-28Add PNF SW Upgrade moduleebo5-0/+327
This change contains only the module for the PNF SW Upgrade use case and a sample docker-compose.yml showing how to start the new simulator with this module attached. Issue-ID: INT-1124 Change-Id: Ic4cd07a3b1020fd4b6195bf2bc9fc95e4157baaf Signed-off-by: ebo <eliezio.oliveira@est.tech>
2020-02-28Add NETCONF PNF Simulator Engineebo23-0/+872
Issue-ID: INT-1124 Signed-off-by: ebo <eliezio.oliveira@est.tech> Change-Id: Ifb50a749992cbd662d579e1cb861bd8f55b3f808
2020-02-21Fix YAML linter indentation errors in yaml filesBartek Grzybowski8-71/+71
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 duplicated keysBartek Grzybowski1-1/+0
Change-Id: I77bcf667d4a639b001258d026f2633fce2bfb0e6 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 Grzybowski8-161/+156
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 Grzybowski6-185/+185
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 Grzybowski8-8/+8
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
2020-02-20Fix invalid escape sequence causing JSON validation failureBartek Grzybowski1-2/+2
Change-Id: I7f7cef9bb30ce19f21e0c8d308bfdf0a04427630 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1437
2020-02-10Delete obsolete "csit" directory from repoBartek Grzybowski1-2/+0
"csit" is now long time obsolete here and moved to it's own repo so removing dir to clean up. Change-Id: Ie18bc2aa3aae5ba1951111b9237ce516858d2df5 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1424
2020-02-07Add test to ensure all needed modules are provided by setuptoolsBartek Grzybowski1-0/+17
Change-Id: I592a6bf393007612c263f6e54aabfcdb6738141a Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1427
2020-02-07Add tox config for vcpe scriptsBartek Grzybowski1-0/+15
This is a basic setup for tox that will run pytest tests Change-Id: Icb15fbd30d7c13694866f447cd448a07195f4573 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1427
2020-02-07Define vcpe scripts dependencies via setuptools configBartek Grzybowski2-11/+45
Dependencies definition is moved to setuptools so that they can be consumed by both - vcpe automation scripts setup and by testing framwewok. Change-Id: Id9cfda52afc3527d2cd3be8cfcf3f82539468261 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1427
2020-02-07Fix DFC csit failurerajendrajaiswal1-1/+1
Change-Id: Iadf129b64c5ed6d51ce90666d23c7a4327e74991 Issue-ID: INT-1432 Signed-off-by: rajendrajaiswal <rajendra.jaiswal@ericsson.com>
2020-01-29k8s: Drop support for CasablancaPawel Wieczorek12-467/+5
Casablanca release reached End of Life (EOL) stage on July 8th 2019 [1]. This patch also fixes comments for test fixtures. This whole test subtree will be deleted upon migrating Aquasec kube-bench [2] for CIS Benchmark [3] integrated by Orange [4] to ONAP xtesting [5]. [1] https://wiki.onap.org/display/DW/Long+Term+Roadmap [2] https://github.com/aquasecurity/kube-bench [3] https://www.cisecurity.org/benchmark/kubernetes/ [4] https://gitlab.com/Orange-OpenSource/lfn/onap/integration/xtesting [5] https://git.onap.org/integration/xtesting/ Issue-ID: SECCOM-235 Change-Id: Ifc7d9c775c27d4cfafdd1932809288530cffceff Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29k8s: Drop process name trimming from etcd on RKEPawel Wieczorek1-1/+5
Information for etcd extracted from container on a RKE-based cluster does not include process name. Issue-ID: SECCOM-235 Change-Id: Ie6aee550868431d5f4d27c3b3d262e17e1aa6156 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29k8s: Mock etcd information collectionPawel Wieczorek5-2/+42
Rancher does not provide information on etcd as container arguments. Its collection requires implementation of a new information extraction method. RKE does not include etcd process name in container arguments. Issue-ID: SECCOM-235 Change-Id: I7576474fb2848962360771d2850aeb3f3869790a Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29k8s: Validate controller manager flags requiring appropriate valuesPawel Wieczorek3-0/+58
This patch verifies if CIS Kubernetes Benchmark v1.3.0 sections regarding master node configuration are satisfied (1.3.1 and 1.3.4 - 1.3.5). Issue-ID: SECCOM-235 Change-Id: I418034ea98423142f4875b97a8e6a22e8b4cd112 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Remove cloud settings from vcpeconfig.yamlBartek Grzybowski3-22/+27
Additionally clouds.yaml.example is provided with integration lab cloud settings. Change-Id: I214217e5b239303c4485c855cdf81bd0250de6e5 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1409
2020-01-29Support reading cloud settings from clouds.yamlBartek Grzybowski1-0/+31
clouds.yaml is a default cloud configuration file for openstacksdk library. Using it deduplicates cloud settings from vcpeconfig.yaml and makes CI setup easier. Change-Id: Iaf81bcaa3c27dae7c1619690da45e6b7feee7768 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1409
2020-01-28Extend label matching for cluster node's External IPPawel Wieczorek1-2/+2
This patch also fixes minor typo. Issue-ID: SECCOM-261 Change-Id: I4326106f14381ec652eb493bf0a87fb1d82ea3fb Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-27Added mTLS support in pnf simulatorwsliwka22-45/+262
Issue-ID: INT-1372 Signed-off-by: wsliwka <wojciech.sliwka@nokia.com> Change-Id: I3bb0f3fe3849da0a72377fde5c974f4b30abd199
2020-01-27Latest changes to pnf simulatorwsliwka34-4724/+183
- replace cpp bindings by python - remove docker spotify plugin (no longer supported) - create own image for netopeer (with all packages installed upfront) Issue-ID: INT-1372 Signed-off-by: wsliwka <wojciech.sliwka@nokia.com> Change-Id: I983c0eddf12fa589fbf3ad1ffbab2b36929c9ef0
2020-01-21PNF Simulator to support Control Loop subscription modelrajendrajaiswal9-0/+333
Change-Id: I9919edb32f3f68f86fad28c908f808fcee3fc548 Issue-ID: INT-1312 Signed-off-by: rajendrajaiswal <rajendra.jaiswal@ericsson.com>
2020-01-14correct url in postman envRene_Robert1-100/+69
Issue-ID: INT-1340 Signed-off-by: Rene_Robert <rene.robert@orange.com> Change-Id: Ia67dbe0787cce1e07462a7c35b0e1ad0ea64b04a
2020-01-10Support setting custom path to config file in helper scriptsBartek Grzybowski2-2/+16
Change-Id: I43b160cfc3d087a0e8b70c9fb4cafa3626f84db8 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Support setting custom path to config file in vcpe.pyBartek Grzybowski2-11/+16
Change-Id: I9ec950413f323e6ed6dfb075f16b67d925ece047 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Use argparse library to parse command line optionsBartek Grzybowski1-27/+56
Change-Id: I75028c59109a9db902f7869ab1b987cc0c02e321 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Fix VcpeCommon object instantiationBartek Grzybowski1-3/+1
Superfluous VcpeCommon object instantiation in 'test' routine in Preload class was removed. Removed meaningless vcpecommon namespace import. Change-Id: I68c8604b12ffc760ab8ed4c53af586a5ca2572c7 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Add config for community lab running with OOM disabledBartek Grzybowski2-4/+74
Change-Id: Id23f6fa50fdbeb103fb91514d9093163d07b9246 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-10Remove unreferenced aaiutil.py fileBartek Grzybowski1-0/+0
Change-Id: I69e1385e0b7ef51ed372387b08b5c59c4e52c66a Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-08Move site specific properties to config fileBartek Grzybowski2-78/+79
Vcpe settings that were hardcoded in the VcpeCommon class definition are moved to a configuration file. Change-Id: I6733c6da5fc1977f67c4bd393bfa6fec0798971b Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2020-01-08Support reading configuration from vcpeconfig.yamlBartek Grzybowski2-0/+30
Settings from config file will be assigned directly to VcpeCommon class' object attributes. Change-Id: I3cd31077c04de6bacf6dc2365837405a1aa5f6cc Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1399
2019-12-18Ingress controller and node port scannerLucjan Bryndza1-0/+266
This tool reads K8S NodePort and Ingress service configurations and scans for service availability Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com> Change-Id: Ie9681ffe957317ed1f1c77ac9d6c90d677df294b Issue-ID: OOM-2240 Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com>
2019-12-06Get VfModuleModelInvariantUuid from service csar at runtimeBartek Grzybowski2-11/+6
VfModuleModelInvariantUuid no longer needs manual assignment, it will be gathered from service csar at runtime. Change-Id: I5d0da822dd4ce7b574dae8ce80db2a2d1e5de297 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1389
2019-12-06Insert SDNC ip pool automatically only if oom_mode is enabledBartek Grzybowski1-11/+15
Change-Id: Ia1fe923f877cf76e51bcc1f23c9bf562a877b112 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: TEST-222