aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf
AgeCommit message (Collapse)AuthorFilesLines
2017-05-05Merge "Extended the timeout for Opera"Jose Lausuch1-6/+6
2017-05-04Delete functest.utils.functest_loggerCédric Ollivier6-13/+14
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-05-04Extended the timeout for Operahelenyao1-6/+6
Change-Id: Ifeb4aecf66d75c9bb98d5dafdbe20be78423565e Signed-off-by: helenyao <yaohelan@huawei.com>
2017-04-26Switch TestCase attribute criteria to resultCédric Ollivier5-5/+5
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-14Remove deprecated feature modulesCédric Ollivier2-26/+0
All features running bash programs are now simply defined in testcases.yaml. All deprecated modules and unit tests are removed. Change-Id: I7047b6f7a1e43cb8ed5ba2d569d5dcecae68fb86 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-04-12Refactor the Feature frameworkCédric Ollivier1-3/+4
run() returns the expected status code (see following JIRA tickets). repo, pre() and post() are removed as they were quite useless. A dedicated class is proposed for bash programs. Unit tests have been added to fully cover this module. All features have been modified to conform with these modifications. It also removes the decorators which skipped several unit tests. JIRA: FUNCTEST-778 JIRA: FUNCTEST-779 JIRA: FUNCTEST-780 JIRA: FUNCTEST-781 Change-Id: Ifb1e4c4f68260a4e20d895f67f07f369ca959374 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-04-11Modify TestCase constructor attributesCédric Ollivier5-17/+19
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-08Add unit tests for parserCédric Ollivier1-2/+2
It also fixes the corresponding case name in testcases.yaml. Change-Id: I2b93323a18bb192d9ad35823dc48b236cb6841b1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-04-04Fix VIM onboarding and ims deploymentMichael Pauls2-12/+52
VIM onboarding: check for API version of OpenStack -> support of v2 and v3 ims deployment: fix userdata in order to wait for EMS registration Change-Id: Id0932232ddb1f1163ef3c37460bc88b71b9c0bdd Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
2017-04-04Merge "Add case_name as constructor arg"valentin boucher4-7/+8
2017-04-04Add case_name as constructor argCédric Ollivier4-7/+8
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-31[Clearwater Test] Fix bug in error messageboucherv1-2/+1
Change-Id: I5d1a3f44915821fcf778c4bcecb32d2aaf475262 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-29Merge "rename FeatureBase to Feature"Cedric Ollivier2-2/+2
2017-03-29Merge "rename feature_base to feature"Cedric Ollivier2-2/+2
2017-03-29Added test case for opera vimshelenyao3-476/+272
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-28rename FeatureBase to FeatureSerenaFeng2-2/+2
delete useless suffix 'Base' Change-Id: Ie789da2e83cc90585fd281fe183e8430af498436 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-28rename feature_base to featureSerenaFeng2-2/+2
remove useless suffix _base Change-Id: I63a73fd6fef2fccd9b92c405f64dda50735b0026 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-28Merge "Rename testcase_base to testcase"Cedric Ollivier1-3/+3
2017-03-28Merge "Switch TestcaseBase to TestCase"Cedric Ollivier1-2/+2
2017-03-27Changing project name of vRouterShuyaNakama1-1/+1
JIRA: FUNCTEST-769 When pushing result to DB in vRouter module an error occurred. couse is wrong project name. We changed project name from "vRouter" to "functest". Change-Id: I8b8289b48330b17b6d6620524024dea4f488e38a Signed-off-by: Shuya Nakama <shuya.nakama@okinawaopenlabs.org>
2017-03-27Rename testcase_base to testcaseCédric Ollivier1-3/+3
It simply removes the useless suffix. Change-Id: Ib9a682b57d8f33518359d817a593bb3786577390 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-27Switch TestcaseBase to TestCaseCédric Ollivier1-2/+2
It partially reverts "Rename TestCasesBase into TestcaseBase" [1] and removes the useless suffix too. [1] https://gerrit.opnfv.org/gerrit/#/c/25391/ Change-Id: Iddf2ec8d6c1dafe6e4c6713c2e69969613317471 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-23Fix VIM onboardingMichael Pauls1-1/+7
Usage openstack client in order to get project id directly Change-Id: Id75dcd594430501152c3ba02a969ac1a2aaaadc5 Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
2017-03-22Merge changes from topics '644', 'improve_unix_permission_check'Cedric Ollivier2-0/+0
* changes: Change execute bits Improve unix permissions fixes
2017-03-22Merge "Respect common unix permissions"Cedric Ollivier2-0/+0
2017-03-21Change execute bitsCédric Ollivier2-0/+0
It applies the rules proposed by "Improve unix permissions fixes" [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/31171/ Change-Id: If5142befb74165a982f9281e8770289b303d483d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-21Respect common unix permissionsCédric Ollivier2-0/+0
It was fixed by the following rule: find ${FUNCTEST_REPO_DIR} -name "*.py" \ -not -path "*tests/unit*" |xargs grep __main__ \ |cut -d\: -f 1 |xargs chmod -c 755 && find ${FUNCTEST_REPO_DIR} -name "*.sh" \ |xargs grep \#\! |cut -d\: -f 1 |xargs chmod -c 755 Change-Id: I23fab3ff90d41d040264b5b8c0e425b6a42c7e55 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-21[cloudify_ims] Change VNF flavor valueboucherv2-3/+3
Change-Id: I843f77fa5051a99be8bdbdbb76300ab965e9d8af Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-20Fix usage of v3 APIs of OpenStackMichael Pauls1-4/+7
Using OS_PROJECT_ID instead of OS_TENANT_NAME as tenant when onboarding a new VIM/PoP with Open Baton Change-Id: I873badc73e7b33179fa487505d18ce89840d6599 Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
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-17Fix deployment flavor of orchestra machine; Improve bootstrapMichael Pauls2-3/+3
Change-Id: I3aa00be7e6e7d3e8de86a8b6a8e9564dc548a3d3 Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
2017-03-10cloudify_ims: fix error on account creationboucherv1-0/+3
Change-Id: I43550b2062c69d7b4eb144057a90806f92328739 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-10cloudify_ims: fix sip public domain nameboucherv1-1/+1
Change-Id: I25423cc3fbab54f81047fbebd0bc33895d826186 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-03-02Integration of orchestra projectMichael Pauls2-74/+151
JIRA: FUNCTEST-726 Change-Id: If53e11136ccfacad9e9827e1c0397304acfdd7b2 Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
2017-02-27Merge "Refactoring of cloudify_ims."valentin boucher1-6/+7
2017-02-27Merge "Adding vRouter test codes using TestCasesBase"Morgan Richomme2-0/+33
2017-02-24Merge "Integration of orchestra_ims test"Morgan Richomme3-231/+716
2017-02-24Adding vRouter test codes using TestCasesBaseh-hayashi2-0/+33
JIRA: FUNCTEST-530 1.setting "nosdn-nofeature" scinario in testcase.yaml. 1.adding process of setting result details for push DB 2.Delete of define "vrouter_data" in config_functest.yaml. 3.modify of vrouter git tag's name "stable". 4.modrify of testcase name "vyos_vrouter" In order to more specific. Change-Id: I0602c01dbf9a5e71bf85943c2b5e40ef51269ffd Signed-off-by: Hideyasu Hayashi <hideyasu.hayashi@okinawaopenlabs.org>
2017-02-24Integration of orchestra_ims testMorgan Richomme3-231/+716
JIRA: FUNCTEST-726 Change-Id: Ie6a35a817aa327a7e9143d93b5ea2582e99e0066 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-02-23Use new-style classes which inherit from objectLinda Wang2-2/+2
JIRA: FUNCTEST-707 Change-Id: Ieaa888375136eddbbe003a24b32bf09fd0f92923 Signed-off-by: Linda Wang <wangwulin@huawei.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 logboucherv3-13/+20
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 Richomme2-48/+203
bug fixes + adaptation to abstraction class JIRA: FUNCTEST-710 Change-Id: I687876637bd9eeeba9256e28b98a1e3a4f5c3e22 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-02-02Change permissions of python filesCédric Ollivier1-0/+0
Change-Id: I21826594ffa9b06a70664aa3512f0b5df8b546cd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-01-20bug fix case name for VNFonboardingMorgan Richomme4-5/+7
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 Richomme8-506/+658
JIRA: FUNCTEST-535 Change-Id: Idfa3dfd64554472aaac3f26a504e1f74d2f42926 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>