aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2023-04-19Fix security versions scriptMichal Jagiello19-310/+815
That script was usused on security versions tests, so I updated it with the latest changes from repo which was really used, created needed files and after we merge it we could use that on security tests. Issue-ID: TEST-394 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I8e5daa7d43e2723bbe3308cf85b1cae2b2f587ad
2023-04-18Pin tox.ini basepython to 3.8Marek Szwałkiewicz4-4/+4
Issue-ID: INT-2222 Change-Id: Id4577f676d914b1925949586771880fde1fa32e1 Signed-off-by: Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
2023-04-17Changes on security versions scriptMichal Jagiello1-3/+47
Limit namespace to ONAP Disable istio sidecars check by default Issue-ID: INT-2193 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ie307ecca1eb88a80582172ce292113217944c9ff
2023-04-17Fix integration stability tests settings templateMichal Jagiello1-0/+1
Add missing SDC_CLEANUP flag Issue-ID: INT-2193 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ia2708433501820f871c0b92e2bf05395291def38
2023-03-24Fix onaptests_benchMichal Jagiello1-1/+1
Add missing comma Issue-ID: INT-2214 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I4267012c8ec32d3f3da313ce2979656ec45c5370
2023-03-24Change on onaptests_bench to run stability tests on sm envMichal Jagiello2-8/+23
Change settings and hosts on launcher script Issue-ID: INT-2214 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: If62d43f2e103629e35a313847ae97e5a6b90e13d
2022-12-01Fix onap tests bench library to run stability tests with customized service ↵Michal Jagiello1-3/+5
definition Stability tests are executed with custom service definiton only. Issue-ID: INT-2150 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I78c4e72536b5bf9b116c5e164259b7bd0a398234
2022-11-25Add onaptests_bench into integration project repositoryMichal Jagiello12-0/+1104
Migrate ONAP GitLab project into integration ONAP project Issue-ID: INT-2150 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I5748c47931c8cf37a2fc88d89e117445d6987010
2022-11-03Dockerizing simulatorsxuegao1-0/+1
Add version in the yaml file for Jenkins job. Issue-ID: INT-2162 Signed-off-by: xuegao <xue.gao@intl.att.com> Change-Id: Id94161a1678570f0e13e73c7c8e6f8ebed0ea70c
2022-10-24Dockerizing simulatorsxuegao1-0/+25
Create docker images for Ran nssmf simulator. Issue-ID: INT-2162 Signed-off-by: xuegao <xue.gao@intl.att.com> Change-Id: Ia66c637b24c2422877a6310ecd16946eeda6416c Signed-off-by: xuegao <xue.gao@intl.att.com>
2022-08-29FIX Datafile collector (DFC) CSITs failingTomasz Wrobel2-6/+6
Issue-ID: DCAEGEN2-3244 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Id4149573ff55140e920c752ddbb8d0946d2c75c4
2022-03-29[STRIMZI_CA] Add strimzi ca to cert checkefiacor1-1/+2
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I246820e8d101834cbee43300a818c68dc03b2f14 Issue-ID: INT-2097
2022-03-04Add the support of activate/deactivate events to RAN NSSMF simulatorYogendra Pal3-1/+94
Issue-ID: INT-2080 Signed-off-by: yogendrapal <yogendra@aarnanetworks.com> Change-Id: If4e7bd29c4350e41ef2a1c2bf7ce40cea0bd2a66
2022-02-02[CERT] Update check_certificate testmrichomme1-1/+1
The test was not working since the update of the kubernetes version nobody remarked it.. In fact Ingress have been promoted and the kubernetes client API changed accordinggly Issue-ID: TEST-381 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I3a4691be7c9ffbf385e851d905181e4b5ec1f2f8
2021-09-07Fix problem with expired certs in FTPES testsPiotr Marcinkiewicz12-28/+181
- remove tls-init-container, which provides with expired certs - add newly generated certs to tls dir Issue-ID: DCAEGEN2-2692 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I9ec0ca0f99b00cccd569c9bc7817702aeae7cf0d
2021-09-07Update DFC tests to use file based conifgPiotr Marcinkiewicz86-783/+550
To remove Consul/CBS dependency in DCAE DFC was updated to use file based configuration Tests updates: - file based config use in DFC - removal of Consul/CBS from DFC tests - coversion config files from json to yaml Issue-ID: DCAEGEN2-2692 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I7267f99cc1354dee84afc1c187b7e4ca0b89af94
2021-09-03[SECURITY] Fix waiver management of check_for_nonssl_ports testmrichomme1-2/+2
There was a nit in the bash script preventing the cfail list to be taken into account Issue-ID: TEST-360 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: Id8aec2b091cd00eee1c018dc529e1b38bb050275
2021-08-30Update Vagrantfile for ternAlexander Mazuruk1-6/+1
scancode-toolkit supports Python versions up to 3.9 (3.10 in progress) thus removed adding external ppa in favor of distro provided Python. Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com> Change-Id: If8eb6749e2655835cc8558c60f1a4f4bd85f3eb5 Issue-ID: INT-1735
2021-04-19[INT] Fix netconf-pnp-simulator Python dependencies versionajay_dp0011-4/+4
Issue-ID: INT-1908 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Idada3c2a16406f7aa3fcf84c7771a86e0dfda5e2
2021-03-24DFC test containers and config update to fit honolulu releaseKrzysztof Gajewski5-40/+47
Issue-ID: DCAEGEN2-2699 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: I002b2cad53f27f900aa422e9b7912c9da3f01eee
2021-03-10Fix server hostname verificationKrzysztof Gajewski1-0/+1
- modify consul config to fit new datafile and https tests Issue-ID: DCAEGEN2-2656 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: Ifd6562ba40086d8e15befd7cbad7a30def1a48f7
2021-03-04Modify DFC HTTP mock to consume PNF-Simulator HTTP serverKrzysztof Gajewski12-736/+23
Issue-ID: DCAEGEN2-2536 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: I1737bc1d5d5558552afd32c93ca68d1143d36a89
2021-03-04Fix Integration-netconf-pnp-simulator-docker-merge-master jenkins buildajay_dp0011-1/+1
Issue-ID: INT-1877 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Iaff5b0cce3e26c2f8ab487af1532a6ce697995a7
2021-03-02[TESTS] Fix versionsmorganrol1-6/+10
an exception is no more caught and triggers an error when running versions Issue-ID: TEST-312 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: Ib787e6bf6359abc6df2732c27ebd7ac7ab9389af Signed-off-by: morganrol <morgan.richomme@orange.com>
2021-02-26Add JWT support in HTTP/HTTPS based locations - integrationKrzysztof Gajewski16-12/+200
Issue-ID: DCAEGEN2-2536 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: I334c66c025e1f3ef59393c3a0fe69493d4a3b5fa
2021-02-17Add HTTPS to DFC testsKrzysztof Gajewski3-6/+5
- CSIT tests are reported to be unstable. This fix prevents some 'permission denied' errors and sftp health checks errors which may occur during non https tests Issue-ID: DCAEGEN2-2528 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: Ib5d4042ab8207ced3746c390e63c88fc6b49b851
2021-02-17Add HTTPS to DFC testsKrzysztof Gajewski1-1/+4
- CSIT tests are reported to be unstable. This fix prevents some error logs which may occur during non https tests Issue-ID: DCAEGEN2-2528 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: Ib532e6bca0dbe998dcd54ae15c01366829f31dfd
2021-02-16Add HTTPS to DFC testsKrzysztof Gajewski1-1/+1
- CSIT tests are unable to run due to some Docker error, second try Issue-ID: DCAEGEN2-2528 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: I170e4ddd9adb70e02f777c957201ced2477df5b8
2021-02-15Add HTTPS to DFC testsKrzysztof Gajewski2-9/+8
- CSIT tests are unable to run due to some Docker error. this patch should fix this + one another fix Issue-ID: DCAEGEN2-2528 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: Iee95075b701e9b4fe9b0ed3b0d4ee232121a043e
2021-02-11Add HTTPS to DFC testsKrzysztof Gajewski48-203/+1137
- testing environment preparation for DFC with HTTPS client (expand existing http server) - add suitable TCs for CSIT tests Issue-ID: DCAEGEN2-2528 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: Ifa8abb827e269d76144fc74c65031dd387fe5fe7
2021-01-18Fix version test in CImrichomme1-7/+11
Issue-ID: INT-1834 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I032ad1234036c5671722456995d1059a8a493cfb
2021-01-13Add HTTP to DFC testsKrzysztof Gajewski23-102/+1334
- testing environment preparation for DFC with HTTP client - add suitable TCs for CSIT tests Issue-ID: DCAEGEN2-2527 Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com> Change-Id: Ic419c38125201ed6578a308ba258709f20ae65bd
2021-01-04Adapt kube config retrieval for certificate checkmrichomme1-1/+4
In case of test from inside the cluster, the k8s credentials must be retrieved using the k8s python client method load_incluster_config Issue-ID: INT-1818* Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: If3eb2de2099f88443ae4e36a404423b2e57769b8
2021-01-04Add license analysis vagrantfileAlexander Mazuruk4-0/+220
Usage in README.rst This Vagrantfile is intended for single image analysis. Issue-ID: INT-1735 Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com> Change-Id: Ief45804d216a9a50777491c2cf7a8088133e5a3b
2020-12-16Remove masspnf simulator codeBartek Grzybowski91-9070/+0
It has been moved to it's own repository: https://git.onap.org/integration/simulators/masspnf-simulator/ Change-Id: I54b63243eb9e932cd34373ef33679356542349be Issue-ID: INT-1810 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-12-07Allow customization of commonEventHeadres before request is sentEli Halych2-3/+37
Details: - Python handler is allowed to take --data argument with fields to be overriden. - In python handler the original dictionary from config.json is merged with custom sourceName and reportingEntityName if provided. - Java source code generates default sourceName and reportingEntityName as part of default data in the form of "default-XXX", where XXX is YEAR, MONTH and DAY as integers. - If such default data is received in the request body, don't override them with default values. - BUG FIXED: the previous solution used abstract path that could be "/" that resulted in empty strings for sourceName and reportingEntityName. Issue-ID: INT-1800 Signed-off-by: Eli Halych <illia.halych@t-mobile.pl> Change-Id: Ic88c5606a44abac64f842f28621332f3f86b83c6
2020-12-04Add send requests to VES via HTTPS in Mass PNF SimulatorEli Halych15-186/+343
Details: - Previously allowed only HTTP. - HTTPS support added since VES accepts HTTPS and throws 400 Bad Request on HTTP. - Added autogenerating Basic Authorization token based on user:password in Base64 to access real VES together with HTTPS. - For this reason, simple HttpClient became part of RestTemplate that can ignore certificate checks for HTTPS when connecting to VES. - Adjusted test cases. Issue-ID: INT-1799 Signed-off-by: Eli Halych <illia.halych@t-mobile.pl> Change-Id: I69eaeb4b10f903c3a3aa880dbb787034da4c30bb
2020-11-25Make initial cluster setup more robustPawel Wieczorek1-1/+2
Action "reset" triggers cluster shutdown attempt which will cause failure of subsequent calls for cluster status. Issue-ID: INT-1571 Change-Id: I4e607358fbeb910a250ac038cfc43682fb94bdea Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-11-25Unify variable initializationPawel Wieczorek1-1/+1
It is not possible to know "expected fails" list length upfront, hence there is no need to call "make" on "xfails" map - there are no optimization profits. Issue-ID: INT-1582 Change-Id: I0e21d83098359359d17661e6265760d7e95739b9 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-11-25Add namespace filtering to SSL endpoints checkPawel Wieczorek1-1/+8
Utility "sslendpoints" now supports scanning only selected Kubernetes cluster namespace. To do so, add "-namespace" flag with namespace of your choice as its argument to the executed command. Default behavior remained unchanged, i.e. scan covers all namespaces. Issue-ID: INT-1582 Change-Id: If5534b76bca94248a5003d735c25328648e478a1 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-11-25Remove build directory nestingPawel Wieczorek1-3/+2
This patch also removes unnecessary directory creation. Command: 'go build -o "${BINARIES}"' creates required file tree on its own. Issue-ID: SECCOM-261 Change-Id: I6b492a2d5f61ce6e139bfe718256357c9d343a6b Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-11-25Simplify composite literalsPawel Wieczorek1-50/+50
Utility "gopls" used to analyse Go source did not support code simplifications as of writing "sslendpoints" tool [1]. Simplifying composite literals is now supported [2]. [1] https://github.com/golang/go/issues/37221 [2] https://github.com/golang/tools/commit/e428a8eca3e395a1b415fd3aee1610aabb61b8b5 Issue-ID: SECCOM-261 Change-Id: I757ff8aefed4c7653f3992f9c1b7b0f3e6c10ea3 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-11-25Fixed comment syntax in netconf.env for masspnfsimEli Halych1-3/+3
Details: - Error message: In file pnf-sim-lw-0/config/netconf.env: environment variable name '//to run in simulator' may not contain whitespace. - Beginning of comment lines are changed from // to # Issue-ID: INT-1790 Signed-off-by: Eli Halych <illia.halych@t-mobile.pl> Change-Id: I04371f07965a61a524fffe7f8237995b15a81f87
2020-11-24Change mass-pnf-sim folder name to masspnfsimEli Halych91-4/+4
Details: - Allows for importing python files/classes/methods via normal import. - Dashes in mass-pnf-sim prevented from a normal Python import. - mass-pnf-sim path referenced in the project files changed to masspnfsim. - Possibility of using masspnfsim as a git submodule that requires noraml import. Issue-ID: INT-1789 Signed-off-by: Eli Halych <illia.halych@t-mobile.pl> Change-Id: I00cd753181c9b240b99881057cf777cf7977387a
2020-11-17Fix Data Type of External RAN NSSMF simulatorEnbo Wang1-3/+8
Issue-ID: INT-1707 Signed-off-by: Enbo Wang <wangenbo@huawei.com> Change-Id: Ib85af0db9364485fadc19f679517c2ebc6a42f08
2020-11-05Display waiver content for the security testsVirginie2-2/+2
Issue-ID: INT-1764 Signed-off-by: Virginie <virginie.lefilleul@orange.com> Change-Id: I2afc3cca2bde4ff8d7b9337c548f7b48af813fc0 Signed-off-by: Virginie <virginie.lefilleul@orange.com>
2020-11-04Display waiver content for the security testsVirginie2-0/+16
Issue-ID: INT-1764 Signed-off-by: Virginie <virginie.lefilleul@orange.com> Change-Id: I0efaa815112b30ad5c9faeeeafecaf7109a9162a Signed-off-by: Virginie <virginie.lefilleul@orange.com>
2020-10-02optimize size and time using "--no-cache-dir"Pratik Raj8-31/+31
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages by pip don't cached on system . This is a best practise which make sure to fetch ftom repo instead of using local cached one . Further , in case of Docker Containers , by restricing caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: INT-1616 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: Id3e28faf35f36258362323b4a96bcf0f3f95726b Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-09-23Setup basic functional test of NSSMF RAN simulatorBartek Grzybowski7-0/+52
This setup will be leveraged in CI for functional verification of simulator. Change-Id: I2e3e501c9eabfc3aadbfbb256e1e22ae2bf0221d Issue-ID: INT-1723 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-21Add missing dependency for the werkzeug module in setooptools as wellBartek Grzybowski1-1/+2
Change-Id: Ibb01f9050bb179fda2d652ed7c1cf5863e086d72 Issue-ID: INT-1723 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>