aboutsummaryrefslogtreecommitdiffstats
path: root/functest
AgeCommit message (Collapse)AuthorFilesLines
2017-06-06Merge "Remove call to fetch_os_creds.sh"Jose Lausuch6-159/+15
2017-06-06Merge "Make tempest user_password more complicated"Jose Lausuch1-1/+1
2017-06-06Merge "Add the copyright header to decorators.py"Jose Lausuch1-0/+7
2017-06-06Merge "Use PrettyTable to show functest env"Jose Lausuch1-14/+13
2017-06-06Remove call to fetch_os_creds.shjose.lausuch6-159/+15
After [1], the openstack credentials are provided to Functest as a volume directly from CI. The same has to be done manually. Functest doesn't need the script fetch_os_creds.sh any longer. [1] https://gerrit.opnfv.org/gerrit/#/c/35199/ Change-Id: I0883ad7b248526cfe9df3fde984345bd41869e82 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-06Merge "Enable tempest offline by use_custom_images=True"valentin boucher3-4/+4
2017-06-05Add the copyright header to decorators.pyCédric Ollivier1-0/+7
Change-Id: Ie7c60b8ca174c9c95920d0b7ef73b8eff60ae7e1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-04Use PrettyTable to show functest envCédric Ollivier1-14/+13
Change-Id: I64800ae7738e0f4215c4c2948967cf60c005032e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-02Use constants in odlLinda Wang1-3/+5
Change-Id: I134b0efd3dd0faec389087a4dac59de09eae087e Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-02Make tempest user_password more complicatedLinda Wang1-1/+1
For some SUTs, the password for creating user is required to contain at least 8 characters and three types of characters for security. Change-Id: Iea770397fc6781d24fbfd0798e2da6bd65293866 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-02Merge "Use CONST to retrieve db_url rather than getter function"Jose Lausuch6-78/+74
2017-06-01Use CONST to retrieve db_url rather than getter functionLinda Wang6-78/+74
1. Remove get_db_url() 2. If TEST_DB_URL declared in env, update test_db_url in config_functest.yaml file during env preparation 3. No matter TEST_DB_URL declared in env or not, Result_DB = CONST.__getattribute__("results_test_db_url") JIRA: FUNCTEST-763 Change-Id: I20da7ef98bbcc56731e0ff7061b05c1dde6cbfc3 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-31Added unit tests for the connection_check test case.spisarski4-6/+95
JIRA: FUNCTEST-813 Change-Id: Ib851a3942e181b1a91cad695504613868a340d15 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-31Enable tempest offline by use_custom_images=TrueLinda Wang3-4/+4
1. The image cirros or testvm is required for tempest.conf to run tempest testcases. 2. If no images are created in openstack, which just match the img_name_regex (default="^.*(cirros|testvm).*$"), it is needed to download cirros image online. Change-Id: Ib5a38a0135b3dd80ad685e33ed35b7b6135b9c87 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-30Fix a typo in docstringCédric Ollivier1-1/+1
Change-Id: Ie03004474658bd3317a9be8a6b00f5bda1133f2c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-30Merge "Define create_snapshot() and clean() in TestCase"Cedric Ollivier15-100/+148
2017-05-30Merge "vping&snaps_xxx support not_hugepage_supported pod"Serena Feng2-2/+2
2017-05-30Define create_snapshot() and clean() in TestCaseCédric Ollivier15-100/+148
They replace the former calls in run_tests which are not suitable for all test cases. Now any test case can define how to clean its resources. If the snapshot cannot be created, the test case is considered as failed. Only a message is printed if any failure during cleaning. It also defines a new class called OSGCTestCase useful for test cases which don't clean their OpenStack resources. All test cases located in opnfv_tests/openstack inherit from it to keep the global behavior unchanged. It also deletes exit instructions in openstack_clean and openstack_snapshot, removes clean flags in testcases.yaml and updates the related utils. All Docs are modified as well. JIRA: FUNCTEST-438 Change-Id: I8938e6255708012380389763a24059ace4ce45d8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-30Merge "Chmod 755 functest/ci/download_images.sh"Cedric Ollivier1-0/+0
2017-05-30Merge "Switch shebangs to /usr/bin/env python"Cedric Ollivier12-12/+12
2017-05-29Chmod 755 functest/ci/download_images.shCédric Ollivier1-0/+0
It's designed to be called via Jenkins and was fixed by the next rule: $ find ${FUNCTEST_REPO_DIR} -name "*.sh" \ |xargs grep \#\! |cut -d\: -f 1 |xargs chmod -c 755 Change-Id: I186aa9c3227dbac4e80f9a463632efdb2512020e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-29Rename logger to __logger in unit.pyCédric Ollivier1-5/+6
This mangling ensures that all info messages printed from core packages. Change-Id: I77ac1c80360d45ef19ed7c3fa05a894804c92216 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-29Protect against self.suite = NoneCédric Ollivier2-9/+17
Change-Id: Ie3370ebfdd51b9aff707e50b754ca52796e49fbf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-29Merge "Re-Enable Promise testcases"Morgan Richomme1-1/+0
2017-05-29Merge "Fix some pylint errors in onos package"Morgan Richomme2-48/+55
2017-05-28Switch shebangs to /usr/bin/env pythonCédric Ollivier12-12/+12
It modified the shebang to /usr/bin/env which is considered as more flexible. Change-Id: I9c8cdb4243d41a83d524499cc91060d3700e008b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-25vping&snaps_xxx support not_hugepage_supported podSerenaFeng2-2/+2
if flavor_metadata is set to {'hw:mem_page_size': 'any'}, it means hugepage must be support by pod. but actually hugepage is not supported by all pods Change-Id: Ib0b716ecedacf7eeba2c0d0080be2707b1a87e73 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-05-24Merge "Stop printing in console when testing functest_utils.py"Jose Lausuch1-6/+4
2017-05-24Merge "Add docstrings in unit"valentin boucher2-11/+34
2017-05-24Merge "Rename the class TestSuiteRunner to Suite"valentin boucher3-4/+4
2017-05-24Merge "Rename test_pytest_suite_runner.py to test_unit.py"valentin boucher1-0/+0
2017-05-24Merge "Rename pytest_suite_runner.py to unit.py"valentin boucher3-8/+6
2017-05-24Fix some pylint errors in onos packageLinda Wang2-48/+55
Directories affected: - functest/opnfv_tests/sdn/onos/ JIRA: FUNCTEST-796 Change-Id: Iffbb0e9a021d31a32d940128435a9f6ed43a504f Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-23Stop printing in console when testing functest_utils.pyCédric Ollivier1-6/+4
Change-Id: I6fa0f6f449270199cc4d5b2c88e171091bf92773 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Add docstrings in unitCédric Ollivier2-11/+34
It also adds shebang and conforms the copyright header with the related OPNFV template. Change-Id: Iacb0cc8629e3021181eef2e8cb76daf48601abf4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Rename the class TestSuiteRunner to SuiteCédric Ollivier3-4/+4
It conforms with [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/35211/ Change-Id: I11bbdcd63a1691835fb7c6198549edbaf6b758a1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Rename test_pytest_suite_runner.py to test_unit.pyCédric Ollivier1-0/+0
It conforms with [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/35211/ Change-Id: Ife7a161970997cf6cd74e86c343d4879f87b5cf4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Merge "Bugfix: fix two typos"valentin boucher2-2/+2
2017-05-23Rename pytest_suite_runner.py to unit.pyCédric Ollivier3-8/+6
It also adds the rst files to include this module in apidoc. Change-Id: Iabbb17bc8601265bd9436c75d1afc0b470df1eb4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Call fetch_os_creds.sh from $PATHLinda Wang2-12/+8
Now it's defined as script in releng/modules' setup.py [1] [1] https://gerrit.opnfv.org/gerrit/#/c/35183/ Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Depends-On: Ic77f4e46d6d3396f9891b73105a0eb7aa037754f JIRA: FUNCTEST-829 Change-Id: Ief821b7326e0a6c2bbcab31bb21629455e4bc9ea Signed-off-by: Linda Wang <wangwulin@huawei.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-23Bugfix: fix two typosLinda Wang2-2/+2
1. In run_tests.py, test case name is shown before running: logger.error(kwargs['test']) -> logger.info(kwargs['test']) 2. In tempest.py, Verication -> Verification Change-Id: I117838cdb4b0f920c4cf855645d910e623e06868 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-22Merge "Bugfix: fix the errors of onos_sfc"Morgan Richomme1-4/+4
2017-05-22Merge "Update test_vnf.py to support py3"valentin boucher1-2/+2
2017-05-22Merge "Delete line breaks before binary operator"valentin boucher2-6/+7
2017-05-22Merge "Sort keys when dumping json"valentin boucher2-2/+3
2017-05-22Merge "Tox utility to run unit tests"valentin boucher1-27/+0
2017-05-22Merge "Add baro_tests as requirements"valentin boucher1-3/+2
2017-05-22Merge "Set default value for CONFIG_FUNCTEST_YAML"valentin boucher3-4/+8
2017-05-22Merge "Fully cover pytest_suite_runner.py"valentin boucher1-6/+36
2017-05-22Merge "Precise self.result in pytest_suite_runner.py"valentin boucher3-50/+46