aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/base.py
AgeCommit message (Collapse)AuthorFilesLines
2023-08-08Fix pylama errorsMichal Jagiello1-1/+1
Some new code was not checked by pylama and we have new errors Issue-ID: TEST-404 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I5e92f0bbbafedc8852599eb3fb3423509c3e0d12
2023-08-05Change cleanup process of testsLukasz Rajewski1-77/+214
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Iffe3aeaa4eab6adcabc94d143d1f94a684cd4657
2023-07-17Add pylama into checksMichal Jagiello1-7/+15
Checks code with pylama Issue-ID: INT-2222 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: If275ef90f21e3049abe72bcf373473b40846005c
2023-06-06Add component name to the JSON report formatLukasz Rajewski1-2/+4
Issue-ID: INT-2235 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I81274e0cca45ef86490e8004c594d7e85bf3c539
2023-05-26Fix the order of cleanup of certain stepsLukasz Rajewski1-3/+0
Issue-ID: INT-2239 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I3f7d4d7921e031c4d69ab19862421aeaba4595eb
2022-01-12[TEST] Basic CNF macroLukasz Rajewski1-0/+20
Basic CNF macro added with refactoring that enables debugging under IDE Also SDK upgraded to 9.2 what required adaptation in existing tests Issue-ID: TEST-376 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I697857bc0c13e86b88b71c3b46e0c4b59751939c Signed-off-by: mrichomme <morgan.richomme@orange.com>
2021-10-21[TEST] Do not show "No execution start time..." error log message for ↵Michal Jagiello1-2/+3
skipped substeps If one of the step fails and there are more substeps in the scenario then they won't be executed. During the report creation in the code the status of these steps were not checked and the confusing error message was logged. That change provide additional check if the step was skipped (not executed). Issue-ID: TEST-368 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Id1ea95229b2fd5cf3107d423f356f02dab437669
2021-10-19[TEST] Added support for multi-vnf macro instantiationJulien Fontaine1-0/+12
Decoupled service YAML template into a model YAML template and a (SO) service YAML template. Model YAML template will be used during the onboarding steps and service YAML template will be used to generate payload when sending instantiation request to SO. Service YAML template reference model name to use for its VNF/VF-Modules using "model_name" field. This provide more flexibility to design the testcase and enables to setup more complex testcases like instantiating several VNF/VF-MOdules using the same SDC model infos. This patch aims to provide backward compatibility for existing testcases based on YAML template. Issue-ID: TEST-358 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: I69d370eff4d383d5af135206476c65e4a56e4ee5
2021-08-31[TEST] Get cleanup reports from substeps also if parent step has no cleanup ↵Michal Jagiello1-2/+2
report Some cleanup reports are missing in pnf_macro test. Issue-ID: TEST-357 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I1d8cb6ccdfc4bd82c581bcce74e2d573bd306fda
2021-08-25[TEST] Unwind master back to 27.07.2020Krzysztof Opasiak1-2/+2
Unwind master due to regression in few tests. Issue-ID: OOM-1 Change-Id: I3b759a5928aeb47fc7fddeaa5998aa090d085c5c Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2021-08-04[TEST] Get cleanup reports from substeps also if parent step has no cleanup ↵Michal Jagiello1-2/+2
report Some cleanup reports are missing in pnf_macro test. Issue-ID: TEST-357 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Id6edabf77e38c82b6075947fb77b23e4574d01cd
2021-04-02Basic VM macroMichal Jagiello1-5/+6
Issue-ID: INT-1894 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Idd977cf3082587746fe27718a284197fda4afe5c
2021-02-16[TEST] Collect steps cleanup reportsMichal Jagiello1-17/+75
Collect reports of steps cleanup and present them in report Issue-ID: TEST-305 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ie288c85a381c6c53e7ffeb441f07e474a135c42d
2021-02-08Python SDK 7.4.0 compatibilityMichal Jagiello1-2/+3
Use Python SDK exceptions. Issue-ID: TEST-302 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I76996817c0d7b91c0214ad521c3768682ff07e83
2021-01-12Fix steps time measurementMichal Jagiello1-4/+9
Substeps execution time is not stored with the right time of step execution Issue-ID: TEST-292 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I58e2aecb1f3cfb1a2bf78a438fc3d508ecf83cc1
2020-11-19PNF onboarding stepMichal Jagiello1-1/+0
Add a code to onboard service with MACRO service instance type. Add properties assignement Issue-ID: TEST-279 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I93f04b09b3eaa622196774cb93ae615c9e6e52d5
2020-11-04Integration tests report enrichmentMichal Jagiello1-3/+38
Improve the step description for better reporting Add duration step in pythonsdk-test reporting Issue-ID: TEST-271 Issue-ID: TEST-272 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I6d46cb38ae236bc578eb15982c2c0b8f2b0c0791
2020-10-06Collect steps execution resultMichal Jagiello1-0/+37
Create a decorator to collect step execution result and store them in storage class. Storage class prepare a dictionary with step class name and execution result. Issue-ID: INT-1733 Change-Id: I9c4030a0740085a9acca461c1581683c469ecbcf Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
2020-09-04Add proxy support for pythonsdk-testsmrichomme1-2/+15
Issue-ID: TEST-253 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: Icc411e8418a698dd031bc5338d38311b85da113b Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-08-31Add logger in python-sdktestsjardellos1-1/+17
Adding of logger to onaptests setting the stream and file handlers based on settings.py onapsdk should evolve to include the same code This would avoid to add it in run.py Simplification of the proposal based on remarks from Michal and Morgan Issue-ID: TEST-252 Signed-off-by: jardellos <thierry.hardy@orange.com> Change-Id: I5b7baf77580df916c4f5e62965a47d8462b44c43
2020-08-24First proposal for the structure for pythonsdk based scenariosMichal Jagiello1-0/+84
Issue-ID: TEST-240 Change-Id: Ic989b26442b868363af7b3872bff49dd70d78be0 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>