aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario
AgeCommit message (Collapse)AuthorFilesLines
2024-03-03Error reason added to the test reportsLukasz Rajewski1-7/+11
Error reason added to the test reports Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I024626764b134d9fe7607988cf46918414f1deb3
2024-02-12Improve verification of distribution statusLukasz Rajewski1-3/+69
- distribution excluded from instantiation - more steps to get details of error Issue-ID: TEST-404 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I2770a4d6ec6887b6e7b54e31ee4979c2b18e5d20
2024-02-02Execution base method is not required to be run.Lukasz Rajewski1-0/+1
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I3659aa2e09dd7c51f756bfdafb67d11b5114af2e
2024-02-02Refactor tests to use SDC v2 onapsdk moduleMichal Jagiello3-14/+2
Refactored SDC allows to archive and delete SDC resources Remove unmaintained test basic_clamp Issue-ID: TEST-404 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I11e4be6f4567098b20733879e393c689766a9c6e
2024-01-31Changes in the packages sort orderLukasz Rajewski7-8/+11
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I9f8ac40254e6a052c4b3ced5b05e21d7e84fa37f
2024-01-29Enhanced validation of configuration of all testsLukasz Rajewski6-24/+59
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I2e4ef6365b44c33f4c0b3e72886a83f92c63e2f3
2024-01-22Improved cleanup of service instances for failed casesLukasz Rajewski4-48/+0
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I348fc625a8cd2ac7c2ee506f996a506c5a4bf4f3
2023-09-04Improve-CPS-sanity-testpawel.denst1-1/+3
Improve-CPS-sanity-test Issue-ID: INT-2263 Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl> Change-Id: I03c30e40667ab1796d373c8b617a18cfca7c1988
2023-09-01Improve-CPS-sanity-testpawel.denst1-4/+45
Improve CPS sanity test Issue-ID: INT-2263 Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl> Change-Id: I64c54920d1c70c5aa8befb058402fe234eaab1e8
2023-08-08Simplify PNF Macro VES Send processLukasz Rajewski1-2/+8
Issue-ID: TEST-404 Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl> Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I7b3fd8f4bd96ff02dadf2662a1a16079a00fb1d0
2023-08-05Change cleanup process of testsLukasz Rajewski18-651/+130
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Iffe3aeaa4eab6adcabc94d143d1f94a684cd4657
2023-07-18Fix issue in status check after pylama fixxes additionLukasz Rajewski1-1/+0
Issue-ID: INT-2222 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Ia68eda6517295ba3916e585403ff7bcc3453b99c
2023-07-18Merge "Add pylama into checks"Lukasz Rajewski9-10/+12
2023-07-17Add pylama into checksMichal Jagiello9-10/+12
Checks code with pylama Issue-ID: INT-2222 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: If275ef90f21e3049abe72bcf373473b40846005c
2023-07-14Remove troubleshooting codeMichal Jagiello1-0/+1
Remove line which breaks test Issue-ID: INT-982 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ib2661483d694e40484160365eb4f08f3a396e493
2023-06-20BaseScenario class addedLukasz Rajewski17-126/+109
It prints out settings and will unify logic of scenarios later on. Issue-ID: TEST-395 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Ie5929e0cc136183d4374b95bfc1600445126c4b6
2023-06-15Enhanced SDNC test to cover SVC logic checkLukasz Rajewski1-3/+3
Issue-ID: TEST-395 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I1e49e8652d06b4c0147e8e1280ccbac9af83b8d4
2023-05-31Create SDNC Sanity testAleksandr Taranov1-0/+45
Issue-ID: TEST-395 Signed-off-by: Aleksandr Taranov <aleksandr.taranov@telekom.com> Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I2a035beb74510013eb8e04aecd90c648af77fe28
2023-05-23Refactor status verification testLukasz Rajewski2-874/+36
Issue-ID: INT-2239 Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl> Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I6db4d1d46536b0e1d6aeac2d8c9a569ed007f590
2023-05-09Migration of the healthchecks to gerritpawel.denst2-0/+894
Changes to set default directory for results if None Issue-ID: INT-2226 Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl> Change-Id: I5337a55f3271ebb5e58298e1fb1aa3b665713909
2023-03-15Add cleanup to sdc resources ondboarding stepMichal Jagiello1-0/+1
Delete SDC resources on cleanup Bump onapsdk requirements to 10.4.2 Issue-ID: INT-2193 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Id9e51f07a9c91a02b67a87eb897a2a4d19fa6738
2023-02-06[CPS] Fix basic_cps testMichal Jagiello1-3/+2
Add missing variable assignement Issue-ID: INT-2194 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I70044dd5b75cb0b57e97d8091fa43c757c926abf
2023-02-02[CPS] Create basic_cps testMichal Jagiello1-0/+57
Create test to check if creating basic cps resources (dataspace, schema-set, anchor) works and it's possible to create a node on an anchor. Issue-ID: INT-2194 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I86c5a80da65b90e2f1a228fcc7fc46a54bee92bc
2022-04-12Log exception stack trace on test failureMichal Jagiello10-20/+20
If test fails and exception is raised most of the test scenarios don't print a stack trace so debugging consume more time. Additionally double check on the SDC service distribution status due to an error on Python ONAP SDK Issue-ID: SDC-3949 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ifc51dbe287a45d5fbbee788f205d1dbe936516e4
2022-02-25[TEST] PNF macro nad CDS resource resoulution tests are failing on retryMichal Jagiello2-18/+16
If any of these two tests fail on the first try retry will always fail as well. It's because of that test's cleanup phase was executed only if an execution phase passed (all substeps). Because of that simulators was never deleted and second instantiation try fails every time. That change split test into two phases: execution and cleanup - if execution fails cleanup will be executed despite of that. Issue-ID: TEST-354 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Icf4abb1d82c64d1168e6200e94f9e05b54223d9c
2022-01-27[TEST] Add cds resource resolution missing cleanup method callMichal Jagiello1-0/+1
Currently no cleanup is performed for this test Issue-ID: TEST-380 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I7e241cc79d02b581a76a06d757d3df673195956c
2022-01-12[TEST] Basic CNF macroLukasz Rajewski4-7/+139
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-12-14[TEST] Do not create simulators in "onap" namespaceMichal Jagiello3-9/+11
As described in ticket - that resource shouldn't be created in onap namespace because if it's not properly deleted it has impact on the security tests results. Note: That change doesn't require any additional work in lab preparation - the namespace is going to be created by MSB K8S plugin. Issue-ID: TEST-356 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I0acf6262e3c8c9fbe9113d96e62960ce36ece04c
2021-10-22[TEST] Fix multi_vnf_macro scenario.Michal Jagiello1-1/+1
Scenario class call itself in the __init__ so it cause the RecursionError Issue-ID: TEST-358 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I12cbe4c03414f9f4c94587b450adf58646eda05e
2021-10-19[TEST] Added support for multi-vnf macro instantiationJulien Fontaine3-0/+147
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-09-02[TEST] CDS resource-resolution testMichal Jagiello1-0/+96
Issue-ID: TEST-291 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I5d9f55b67942c62f63e11282ef2383fe063d3137
2021-08-25[TEST] Unwind master back to 27.07.2020Krzysztof Opasiak1-96/+0
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-07-30CDS resource-resolution testMichal Jagiello1-0/+96
Issue-ID: TEST-291 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I441f2486b38481624eeefa18f47840d4c7a3db9d
2021-07-05[TEST] Basic macro stability scenarioMichal Jagiello1-0/+44
Issue-ID: TEST-349 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I951e9720668de9bf00136d4e043c9fe8950061f1
2021-04-21[EXCEPTIONS] Distinguish onaptests and onapsdk exceptionmorganrol9-10/+38
there is no error_message method on onapsdk exception as a consequence we may raise a new excpetion when catching sdk exception leading to the non generation of the report Issue-ID: TEST-332 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: I42d1413ef142e29eeafdfe701f136ae45b097de4
2021-04-02Merge "[CLAMP] Integrate basic_clamp"Morgan Richomme1-0/+47
2021-04-02Basic VM macroMichal Jagiello1-0/+125
Issue-ID: INT-1894 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Idd977cf3082587746fe27718a284197fda4afe5c
2021-03-31[CLAMP] Integrate basic_clampmorganrol1-0/+47
Some regressions occured and old files were used This patch update the different components with the right versions It also renames the vnf-service in basic_clamp-services.yaml It creates the entry point and the scenario to integrate the test in xtesting Issue-ID: INT-1819 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: I7a9e49d8ddc2c5bd0625a4a5ed940c10aed74f81
2021-03-05Add missing logger for Pnf ScenarioMichal Jagiello1-0/+3
Issue-ID: INT-1822 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ic247446b82e406ce0a8b4477f833bb9f12847836
2021-02-11[INT] Catch all onaptests and onapsdk exceptions for scenariosMichal Jagiello7-16/+34
Catch onaptests and onapsdk exceptions in scenario to generate test report if test fails Issue-ID: INT-1852 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Id9772fea10dc5aa323437e72c6fe5ddb4c6caabb
2021-02-08Merge "Python SDK 7.4.0 compatibility"Sylvain Desbureaux2-2/+6
2021-02-08Python SDK 7.4.0 compatibilityMichal Jagiello2-2/+6
Use Python SDK exceptions. Issue-ID: TEST-302 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I76996817c0d7b91c0214ad521c3768682ff07e83
2021-02-01[TESTS] cleanup tests and remove reference to ubuntu16mrichomme1-2/+1
the basic_vm test was historically called ubuntu16... as we are now delaing more with ubuntu18 or ubuntu20, the reference to the version16 is a bit old - Replace ubuntu16 by basic_vm - Use ubuntu20 instead of Ubuntu16 - Replace onap.small by m1.small to be natively compatible with any Openstack (default flavor) Issue-ID: TEST-299 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I69f573354c87c44c10581861450d48244db0c7df
2021-01-25PNF simulator CNF instantiation and registation stepsMichal Jagiello1-2/+2
Use CNF of PNF simulator in pnf_macro scenario Issue-ID: INT-1822 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Id7f70b45219a36b7fc70921a1438b0cbe57a1756
2021-01-18[TESTCASE] fix basic_onboard scenariomrichomme1-3/+5
the run_basic_onboard.py is working, but the scenario used by xtesting cannot work properly. Tested on Daily master lab. Issue-ID: TEST-288 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: Ibc5482607a738692a05260913eeb322a0933ff03
2021-01-15[PythonSDK-tests] Add basic_onboard testcaseChereau Natacha1-0/+43
Issue-ID: TEST-288 Signed-off-by: Chereau Natacha <natacha.chereau@orange.com> Change-Id: Ide7267428b5ca694dc3ca44a4c81730233610b78
2020-12-16PNF macro instantiationMichal Jagiello1-0/+115
Issue-ID: TEST-280 Change-Id: I6d18b90c3f4c66ddf8c9a4ebe3de7182481e331f Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
2020-12-04basic_cds adapatations for xtestingmrichomme1-2/+11
Issue-ID: TEST-245 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I4bb0a1c728ad8b982e6936c8a3bc5572ee08a6b4
2020-12-01Better exception handlingSylvain Desbureaux4-59/+13
Instead of catching all exceptions that can occurs and miss one, let's create a "parent" exception class for OnapTest and catch only this one. In order to know what's the error, we also create a class attribute (`error_message`) that gives us the reason for exception. Issue-ID: INT-1796 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I798d8c6270c466b1d9be6511f52fd9441401c9c8
2020-11-23CDS onboarding steps and simple CBA enrichment scenarion.Michal Jagiello1-0/+31
Steps for data dictionary upload and CBA enrichment Issue-ID: TEST-245 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: If7f3346c79ae97e35b21e919435270a0c54f77dd