aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/ims/cloudify_ims.py
AgeCommit message (Collapse)AuthorFilesLines
2018-04-12Print the stack traceback when cleaningCédric Ollivier1-2/+1
Change-Id: I8279844f0e42378b4fe550696608054cd7418a12 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-17Decrease log levels when trying to connectCédric Ollivier1-3/+3
Only the last attempt should be printed in console. Change-Id: Ic1ed5887195c98c64ade4558ac20ebd814e38bab Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-07Add a new env var for nameserverLinda Wang1-1/+3
We should still consider that the nameserver must be handled by all installers instead [1]: - by configuring one or more DNS resolvers in dhcp_agent.ini - by asking a local resolv It eases setting the nameserver in testcases and then allows gating them. 8.8.8.8 is still defined by default. [1] https://docs.openstack.org/neutron/pike/admin/config-dns-res.html Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Id58dd5ebee612a0fce2ebc40f089769e60899416 Signed-off-by: Linda Wang <wangwulin@huawei.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-02Leverage on XtestingCédric Ollivier1-6/+4
It removes all the files which have moved to Xtesting. Vnf inheritances and env management will be improved in other changes. It keeps the same tree thanks to a symlink to allow publishing artifacts. Change-Id: I551bbd3f344cdab0158a50b7b09e541576695631 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Merge "Support different user/project domain values"valentin boucher1-1/+3
2018-02-22Switch from CONST to CONFCédric Ollivier1-2/+2
It also removes constants.CONST and env.Environment which are now useless. Depends-On: I764a0a2a24447c941d1e726f3116593b29dd1c1e Depends-On: I6cfa832466dcefd737314633d807512e46267a69 Change-Id: Ife41c59d9f2e6ec4e49df38af962039f99554bc5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-22Support different user/project domain valuesValentin Boucher1-1/+3
For the moment, VNF works well only if OS_PROJECT_DOMAIN_NAME=Default OS_USER_DOMAIN_NAME=Default It's now possible to use domain != Default JIRA: FUNCTEST-935 Change-Id: I779a93538662ff32906d91d7cf3b2c5c3e872765 Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-02-21Print stdout and stderr when calling commands over SSHCédric Ollivier1-13/+16
It will help debugging possible issues vs APEX [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/792/console Change-Id: I610f5b0a7774440c51fa086fad4f61c9be0571dc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-19Remove last CONST.__getattribute__()Cédric Ollivier1-2/+2
Change-Id: I82f6aa1e723c88eebd4c7410da4b9741a482e9bc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-19Manage region in cloudify_ims.pyCédric Ollivier1-2/+3
It must be completed by a new change in opnfv-cloudify-clearwater [1]. [1] https://github.com/Orange-OpenSource/opnfv-cloudify-clearwater/pull/18 Change-Id: Ic3a323e33b9742835159f5386e9247c6ac965f51 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-16Add suffixes in vnf keypair namesCédric Ollivier1-13/+15
Change-Id: Ia9c8ef535b16326a520367d2c7c98b7e8db4822c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-15Add suffixes to OpenStack resource namesCédric Ollivier1-17/+19
All vnf testcases have to add suffixes in OpenStack resources names simply because the password is now generated before any run [1]. Snaps mainly creates the resource only if unfound in all tenants [2]. Then one remaining resource could easily raise permissions denied. It avoid conflicts between vrouter and cloudify_ims which are using the same names. [1] https://gerrit.opnfv.org/gerrit/#/c/50747/ [2] https://jira.opnfv.org/browse/SNAPS-257 Depends-On: If56cc44fe35ca06bc9033af620ddd3c0586877fe Change-Id: I1800886e575189b64fdc580a5ee6b59c81fcde5c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-15Fix typos in cloudify_imsCédric Ollivier1-6/+5
Change-Id: I5d29b3e58cae7e9a334ec6f264cdb5e280860d97 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-01-20Configure password for the user in vnfLinda Wang1-3/+3
For some SUTs, the password for creating user is not allowed to be the same as user name, and some even is required to contain at least 8 characters and three types of characters for security. It also turns yamllint warnings into errors and fixes the remaining warnings. Change-Id: Icf25a7b9ff1c8cee55899198f1e519c9209877ff Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-11-30Adjust timeouts in VnfsCédric Ollivier1-2/+2
When testcases fail, the jjobs is aborted and the result isn't printed. Change-Id: Ibda6268873303e631705c695a41c50980a3d29e5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-11-25Remove os_utils call from cloudify ims and vrouterLinda Wang1-2/+3
Change-Id: I333551125616113484ad275820f2176dae79da6e Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-11-21Removal of deprecated SNAPS-OO classes.spisarski1-41/+42
JIRA: SNAPS-202 Change-Id: I115b4927b287a5525f4c1b95128d91f5229c7856 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-09-11Fix bug in cloudify_ims: no return codeboucherv1-1/+1
Change-Id: I89ab2f9b57d9f4710201af5852aa12925f122079 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-09-05Fix the cloudify_ims update quotas errorLinda Wang1-4/+4
Change-Id: I62376dd02dd95ebff54c1ebf963267c6534181ed Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-09-04Merge "More support of snaps for VNF"Morgan Richomme1-14/+13
2017-09-04More support of snaps for VNFboucherv1-14/+13
Remove OpenStack utils in vnf_base Support snaps for quotas management in cloudify_ims Change-Id: I44e5b01bb26569276133e85dfc25bc2cceb03056 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-08-29Put vnf_test pass if more than 80% of vnf test result are OKboucherv1-8/+19
Change-Id: I1042176c587ef2bf1197c724cb5b1b6d67ffba3d Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-08-22Complete caching images for vnf testcasesCédric Ollivier1-4/+4
It conforms with snaps API for publishing local images. It completes [1] which only modifies the yaml files. [1] https://gerrit.opnfv.org/gerrit/#/c/39757/ Change-Id: I325a245c0e7bb15bb1f9570996500573cfe257b0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-13Fix some issues in cloudify_imsboucherv1-23/+35
- Blocking ssh - Timeout for SCP - Debug in clearwater-ims-base - Flavor with snaps Change-Id: Ib11a4ebf20e698caccbb16920ae7d715f931fc58 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-07-11Add decorators in testcases for energy recording.Benoit HERARD1-36/+41
Test cases are: - rally (sanity and full) - refstack - cloudify_ims - vping_ssh It also fix a bug on "energy_recording" decorator of energy module. Change-Id: I625c214552ad1b89eaf7e196e706d7c69b37da33 Signed-off-by: Benoit HERARD <benoit.herard@orange.com>
2017-07-03[cloudify_ims] Support Cloudify 4.0boucherv1-189/+413
- Delete all shell commands to use cloudify python lib - Cloudify Manager installation with a packaged image - SNAPS integration - Adapt test_vnf unit tests - Initiate test cloudify_ims unit tests (to be completed) JIRA: FUNCTEST-838 Change-Id: Ia4b499d4155e6af5d37d6d5cf4310a5a9693c7ce Signed-off-by: boucherv <valentin.boucher@orange.com> Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-07-02Stop modifying unix perm in cloudify_imsCédric Ollivier1-5/+1
It should be noted that several mockey patches should have been added in the related unit tests. Change-Id: I04bf003bc6beed1580c5d052c588f6f4ac23f768 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-06Refactor core VNF classMorgan Richomme1-79/+37
- Simplify processing - Implement run method to inherit testcase methods - Add unit tests - Fix all pylint issues It also obliges vnf and its uts to be rated 10/10 by pylint. JIRA: FUNCTEST-830 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I8dd24eea55089277c9e5b2b51fb14dc377f2fcaf Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-04Delete functest.utils.functest_loggerCédric Ollivier1-2/+2
It deletes functest.utils.functest_logger and the related unit tests. Then it modifies all functest modules to get all loggers via logging.getLogger(). __name__ is mainly used as getLogger arg as proposed by logging [1]. All loggers and handlers are now defined via functest/ci/logging.ini instead of a dict loaded by an external json file. Now only warn messages and info messages from ci and core packages are printed in console. [1] https://docs.python.org/2/library/logging.html Change-Id: Ic192855e0f9bf94825d8f7ec73549a0f3b8d44c5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-04-26Switch TestCase attribute criteria to resultCédric Ollivier1-1/+1
It mainly avoids mixing input and output. Criteria is now an input set in functest/ci/testcases.yaml and then must be passed as __init__() args (which will be proposed in an additional change). Then it also renames the related TestCase method to check_result(). Change-Id: Ifc3c8e3ea6cde7e3edf7174bed4bf2bf0894e8e3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-04-11Modify TestCase constructor attributesCédric Ollivier1-3/+4
Every feature/testcase now allows receiving the data defined in testcases.yaml as args (name is renamed to case_name). From the time being, only project and case names are handled. Next pending patches will add criteria, cmd and repo to this list. It keeps the default values for case names except for features which will be aggregated into Feature. Change-Id: Id742d100b8183d7f10894c24ae6879d1b2b60ac9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-04-04Add case_name as constructor argCédric Ollivier1-2/+2
It allows managing multiple TestCase names with only one TestCase module. It is mainly required by odl which implements: - odl, - odl_netvirt, - fds. It also renames case to case_name in Features to conform with TestCases. JIRA: FUNCTEST-762 Change-Id: Ie254f754a0ea3077a8afda1c470528d38c79478f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-29Added test case for opera vimshelenyao1-112/+30
1. Created a ImsOnBoardingBase to wrap up all common ims operations 2. Created test case to test opera vims onboarding Change-Id: Idf3a82e10661271ad413f4dd5795c80ca4421d73 Signed-off-by: helenyao <yaohelan@huawei.com>
2017-03-21[cloudify_ims] Change VNF flavor valueboucherv1-1/+1
Change-Id: I843f77fa5051a99be8bdbdbb76300ab965e9d8af Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-20[vnf_base] improve exceptionboucherv1-0/+4
Return on part of previous changes in commit: 30257 https://gerrit.opnfv.org/gerrit/#/c/30257/ Change-Id: I11b33ee2a6f9d4cbcf1449006b47be508fce655e Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-19[cloudify_ims] fix signaling test errorboucherv1-3/+5
Change-Id: I6d6cf36c2a82df1ff9943cc3084b38967033bb94 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-10cloudify_ims: fix error on account creationboucherv1-0/+3
Change-Id: I43550b2062c69d7b4eb144057a90806f92328739 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-09fix vnf deploymentboucherv1-1/+1
Change-Id: If92c7d402b88f59367564f7279d426eb8f3b582a Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-02-21Refactoring of cloudify_ims.ashishk19941-6/+7
Change the way of using few variables like vnf from object to dictionary for consistency. Change-Id: I5cf92ff16ba1296f223a60f85de4b815aadc8875 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-02-17Fix flavor config and error logboucherv1-7/+15
JIRA: FUNCTEST-734 Change-Id: Ic124cfa68e1ba50c9dc098c14b17ed694eefb7cc Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-02-16Fix auth errorboucherv1-4/+4
JIRA: FUNCTEST-734 Change-Id: I9e13b9b9459b9051981766fbf32126583a761656 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-02-15update cloudify_ims caseboucherv1-5/+0
bug fixes Provisional change of the ci loop var to daily for VNF testcase. JIRA: FUNCTEST-710 Change-Id: I6dc8072b4e56c96473a2b09f1881b96024259db5 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-02-09[WIP] update cloudify_ims caseMorgan Richomme1-48/+164
bug fixes + adaptation to abstraction class JIRA: FUNCTEST-710 Change-Id: I687876637bd9eeeba9256e28b98a1e3a4f5c3e22 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-01-20bug fix case name for VNFonboardingMorgan Richomme1-1/+2
the case paramter was not provided to the anstraction class Change-Id: I42ba63a3b4fd20f6d076f20369fed56715237640 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-01-18Add VnfOnBoarding AbstractionMorgan Richomme1-0/+277
JIRA: FUNCTEST-535 Change-Id: Idfa3dfd64554472aaac3f26a504e1f74d2f42926 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>