aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/basic_vm.py
AgeCommit message (Collapse)AuthorFilesLines
2022-04-12Log exception stack trace on test failureMichal Jagiello1-2/+2
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
2021-04-21[EXCEPTIONS] Distinguish onaptests and onapsdk exceptionmorganrol1-1/+4
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-02-11[INT] Catch all onaptests and onapsdk exceptions for scenariosMichal Jagiello1-4/+2
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 Desbureaux1-0/+3
2021-02-08Python SDK 7.4.0 compatibilityMichal Jagiello1-0/+3
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
2020-12-01Better exception handlingSylvain Desbureaux1-20/+3
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-10-14Improve xtesting integrationmrichomme1-12/+36
All the exceptions shall be caught by the use case Issue-ID: TEST-257 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: Ie2762ad869d8984ce2125db4a8ef4990ee50f82a Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-10-08Add reporting page creation in pythonsdk-testsmrichomme1-2/+2
Issue-ID: TEST-269 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I4ab0a2f7a1a1e98ae5d05166c6aa06212d24eeae Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-10-01Update entry point to consider clean as part of the testmrichomme1-13/+12
It is not just a teradown oepration for extra resources We must verify that resources have been properly cleaned Issue-ID: TEST-240 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: Ifc0301ba6f35b05d74dc43ac86203f11ada0789e
2020-09-25Prepare python package to integrate it in xtesting dockermrichomme1-0/+49
- creation of entrypoint - include templates in the package - complete requirements Open question for integration python reviewers: - I was not able with the MANIFEST to use the template directory until I put it in the package tree. I am not sure it is very nice.. Maybe it is not the right way, we could simply copy the templates in the docker rather than including them as part of the python package.. Note: I retested the ubuntu16 (onboarding/deployment/instantiation) on the Daily Master Issue-ID: TEST-258 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I26f3e959b9c5e341ab197a6c519ca87e31921921 Signed-off-by: mrichomme <morgan.richomme@orange.com>