aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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>
2020-09-21Add missing dependency for the werkzeug moduleBartek Grzybowski1-0/+1
Change-Id: I0bd782a6bd45dc8db75cbab968a0146fa30ce647 Issue-ID: INT-1723 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-09-19Add an External RAN NSSMF simulatorEnbo Wang11-0/+470
Change-Id: I770091159dd1f953d8a567ccd2bd7f6d21f27649 Issue-ID: INT-1707 Signed-off-by: Enbo Wang <wangenbo@huawei.com>
2020-09-14Add timeout on SSL internal cert retrievalmrichomme2-0/+135
In case of SSL issues, the socket timeout is set to 600s by default as we are scanning a liitle bit stupdidly - we try on all the internal ports..it may take a long time if we cumulate the different timeouts. Moreover a new error may occur socker.gaiaerror on internal scans Issue-ID: INT-1570 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: Ia0e1c7bb133565d6179afa155f6c299a5e012764 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-09-07Remove old SECCOM waiver lists sourcePawel Wieczorek4-28/+0
SECCOM waivers are now located in "integration/seccom" repository. Issue-ID: INT-1710 Change-Id: I2598c3d848338a4527c5c49b38b7c9f150d45abe Depends-On: I5f0f11307dd259d2a66a2916ac4ac01e27177b29 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-09-02check_certificates: create result dir if neededmrichomme1-0/+4
an arg allows to specify the results dir but if the dir path is not valid, we got an error try to create the dir before running the test Issue-ID: INT-1570 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I32363af1f066dc5e5a0adf45619fb4e1a9052a7d Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-09-02update vcpe casezhaoliping1232-44/+56
Issue-ID: TEST-239 Change-Id: Id20dfc9551ddadc9a64c634ceb19a3cf992aaabc Signed-off-by: zhaoliping123 <zhaoliping@chinamobile.com>
2020-08-31Add support for detecting Java 8Pawel Wieczorek1-2/+4
For Java 11 there are four ways of checking Java binary version: * -version print product version to the error stream and exit * -showversion print product version to the error stream and continue * --version print product version to the output stream and exit * --show-version print product version to the output stream and continue For Java 8 only error stream options are available. There is no support for output stream (double-hyphenated) options. This patch extends list of executed commands for binary version detection. Java 8 presence will now be shown in results instead of being reported as an error. Issue-ID: INT-1601 Change-Id: I1b538bc1f0826f6000fedb08860d12c15fe2fc14 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-08-31AAI-Simulator: Pulling from PNF-SW-UP CSIT to Integration repoajay_dp001112-0/+10234
Issue-ID: INT-1704 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Ifc6a71f8303d3b27b40650dea5564365b08b1372 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-08-28Update tests for Datafile Collector (DCAE SDK update)Remigiusz Janeczek16-16/+56
Adjust DFC consul configs Make message router sim return array of strings instead of array of json objects as response (as in live environment) Issue-ID: DCAEGEN2-2267 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I792c9abcb1c49d73a790ca9c2e8f46a0e1dfd099
2020-08-26Add MANIFEST.in to include j2 file in the python packagemrichomme3-6/+4
Not sure it is the best way, maybe it can be done with setup.cfg.. it seems to be OK Issue-ID: INT-1570 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I7a1ddefba0ec0bbe35a5a51baebdf4a715a4f131 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-08-20Reset security xfail list for Guilinmrichomme1-14/+16
Issue-ID: INT-1695 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I6885cdbd4354add533999af6b43de267b888a59a
2020-08-10Drop using symlinks for documentation markup renderingPawel Wieczorek4-182/+180
Keeping only symlinks as the markup indicator does not trigger CI on relevant patches changing documentation contents (there's no change in symlink). This can be resolved by dropping symlinks usage entirely. Sphinx and RTD aren't going anywhere anytime soon. To make sure all symlinks were replaced following one-liner was used: $ find . -type l -name "*.rst" -exec readlink -e {} \; \ | xargs -I% git mv -f %{,.rst} which finds all the symlinks in the repo with "*.rst" suffix, then reads which file they link to and finally replaces given symlink with that file. This solution was suggested by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1672 Change-Id: I120e216b0b48032bb7b80c23cad799cd6f7cca53 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-07-29Adjust DFC test files to use FTPES instead of FTPSRemigiusz Janeczek33-790/+822
DFC doesn't support FTPS protocol. FTPS is treated exactly like FTPES and soon DFC won't accept file locations starting with "ftps://". Fix mr-sim.py lint issues Issue-ID: DCAEGEN2-2367 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Idab56aab3bdb6734a04bfc9c9212f2ea800d0d74
2020-07-28Import upstream component version inspection toolPawel Wieczorek16-0/+1360
This patch adds utility to check versions of binaries available in Docker containers run on Kubernetes cluster. It has been contributed by: kkkk-k <kkkk.k@samsung.com> Several minor changes were made to comply with ONAP CI linter rules. Issue-ID: INT-1571 Change-Id: Id0e4b557212dec1bf8d2bac580968d69e2cf5595 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>