Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Support existing tenant and user with a get_or_create_tenant method.
If the tenant and user already exist it only get the id of those
JIRA: FUNCTEST-799
Change-Id: Id5daf2904592e42199471bdd3547e861e6db6e32
Signed-off-by: boucherv <valentin.boucher@orange.com>
|
|
It removes case_name from the list of attributes that run() must set
because it's now managed by run_tests.py (see __init__())
Change-Id: Id6228880257d0e9fb27483c56aa9985197feb04e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
It also modifies the testcase module docstring.
Now features.py is rated 10/10 by pylint.
Change-Id: I83f2ac385b2a713d116c1ae4b49ba9cc9b26a83c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
It's now useless as it's passed as run() args.
Change-Id: I97e14bd431a8844cd90905bf2050c48fb00f1cc5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
It takes into account the following warnings/errors:
- Inline strong start-string without end-string
- Unexpected indentation
Change-Id: Idb05c7b04ba98ef8f3ef65e6ec7c9bb5b7571cad
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
Change-Id: I91a5c6fb14f7c76a348bb4329d023bab53a3804c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
Change-Id: Idf0380930e97e1aa4584ba000f32d742a87d9486
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
Change-Id: I75f51f216dcbf0db1c563cf381c28efc47241d3c
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
|
|
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>
|
|
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>
|
|
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>
|
|
When running healthcheck tier and rally, it complains " __init__() got
an unexpected keyword argument 'case_name'"
Change-Id: I078094921f08b457b88beabee60eabf40b657411
Signed-off-by: Linda Wang <wangwulin@huawei.com>
|
|
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>
|
|
|
|
|
|
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>
|
|
delete useless suffix 'Base'
Change-Id: Ie789da2e83cc90585fd281fe183e8430af498436
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
|
|
remove useless suffix _base
Change-Id: I63a73fd6fef2fccd9b92c405f64dda50735b0026
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
|
|
testcase.py is now rated at 10.00/10 by pylint.
Change-Id: Ia90e53db7a25aac3827cd29bb9fd6baaa46cd487
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
It simply removes the useless suffix.
Change-Id: Ib9a682b57d8f33518359d817a593bb3786577390
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
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>
|
|
It takes into account the following warnings:
- bare-except
- unused-argument
- broad-except
Change-Id: I3a50bf6d07823edc80a7f0f78f46681ace7f4a39
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
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>
|
|
until exceptions are better managed in abstraction
Currently it triggers an exit from the jenkins job
and prevent other tests to be run
Change-Id: Id3b18c1d6d3b786fc78456b3ad51963d2cbb2cc1
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
|
|
Change-Id: Ied92224bc80ab4e02611e7b1f4bf33f276914e89
Signed-off-by: boucherv <valentin.boucher@orange.com>
|
|
As certain scenarios such as, DPDK, FDIO, and OVS use cases
require special 'hw:' settings to flavors, SNAPS-OO has just
implemented the ability to take in these configuration values
to apply to its integration tests. This change checks the
scenario and should be configuring the flavor metadata accordingly.
Also see SNAPS-38
Used this as an opportunity to refactor the SNAPS test classes as well...
JIRA: FUNCTEST-746
Change-Id: I63535776acde088a7461f602966a324b6207592d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
|
|
|
|
Also, add a executor method in VNFBase
to allow re-write it for some cases
where the feature is another python
script instead of shell script.
Change-Id: Id734553dffe32fdc9a0befc3f4c0e29e5d56fc61
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
|
|
Adding admin role to the new_user for the new tenant
It will fix this bug for other tests based on this class
JIRA: FUNCTEST-734
Change-Id: Ia3b8797fa391f528d24425a5b13c1b329cb992f4
Signed-off-by: boucherv <valentin.boucher@orange.com>
|
|
JIRA: FUNCTEST-734
Change-Id: I9e13b9b9459b9051981766fbf32126583a761656
Signed-off-by: boucherv <valentin.boucher@orange.com>
|
|
|
|
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>
|
|
* changes:
Add can_dump_request_to_file decorator
Revert "write test results to a local file"
|
|
|
|
This reverts commit ee21af78fbfc93e888acda121f08d2b216dd0159.
Change-Id: If7c8d3b645073574862eb67225b1e11b0dd7a021
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|
|
bug fixes + adaptation to abstraction class
JIRA: FUNCTEST-710
Change-Id: I687876637bd9eeeba9256e28b98a1e3a4f5c3e22
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
|
|
1. Removed the calling from exec_test.sh
2. Used FeatureBase instead
3. Removed the legacy security scan code
Change-Id: I1984ec951973f337f275e50543b277cd90d9a202
Signed-off-by: helenyao <yaohelan@huawei.com>
|
|
this problem was due to the fact that we add exit condition
EX_ERROR when the result was FAIL
EX_ERROR shall be used as exit condition when there is an
execution error, i.e the test case cannot be run
if it can be run, there is no execution error
the result can be PASS or FAIL, but from the CI, execution is OK
JIRA: FUNCTEST-714
Change-Id: Id434bb9aa88b50277c40c717259304f26f7b3966
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
|
|
|
|
the case paramter was not provided to the anstraction class
Change-Id: I42ba63a3b4fd20f6d076f20369fed56715237640
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
|
|
JIRA: FUNCTEST-702
Change-Id: Ia831d35079f9286f924d0b407a64bf376b1cff21
Signed-off-by: boucherv <valentin.boucher@orange.com>
|
|
|
|
JIRA: FUNCTEST-535
Change-Id: Idfa3dfd64554472aaac3f26a504e1f74d2f42926
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
|
|
Write test result to a file or push it to DB depends
on the value format of test_db_url which is defined in
config_functest.yaml. Meanwhile, test_db_url can be set
by os envrion value "RESULT_STORE".
If test_db_url is a url, e.g. http:// or https://, then
push result to DB. If test_db_url is a file location,
e.g. file:///, then write results to a file with json data.
One result record, one line.
JIRA: FUNCTEST-657
Change-Id: I579087cd2c24d61a79142b5d67003fb486b6c723
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
|
|
There are some files whose permissions are changed unintendedly.
Revert all of them.
mode change 100644 <= 100755 functest/core/pytest_suite_runner.py
mode change 100644 <= 100755 functest/opnfv_tests/openstack/vping/vping_base.py
mode change 100644 <= 100755 functest/utils/openstack_tacker.py
mode change 100644 <= 100755 functest/tests/unit/odl/test_odl.py
mode change 100644 <= 100755 requirements.txt
mode change 100644 <= 100755 test-requirements.txt
Historical comments that changed the permission for reference
changeID: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6
changeID: Id6815f96a11f2918bc2c7bc1c33f38c3f5754e11
changeID: Ic8c01b9b7ed86d3bdd9f5125504bc47f46a37700
changeID: I9f1a408f0e43bff4499575fa57cabd1a83d99b3a
Change-Id: I1deadd77cc78f2186f82de79233aabe97ac21b26
Signed-off-by: helenyao <yaohelan@huawei.com>
|
|
JIRA: FUNCTEST-673
Change-Id: Ia37fb5a08c8fbc4a8acb666565ea887f9ae48b83
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
|
|
JIRA: FUNCTEST-673
Change-Id: I56ac66662b53593257609fa87c16df52440f7458
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
|
|
JIRA: FUNCTEST-630
Change-Id: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6
Signed-off-by: helenyao <yaohelan@huawei.com>
|
|
It allows checking testcase results and then returning an error value
to CI. Now run() should return EX_OK even if criteria is FAILED.
It also fixes an issue induced by [1].
[1] https://gerrit.opnfv.org/gerrit/#/c/24561/
Change-Id: Iaa095696f9dcb87f8cc95179b4f404b092d1e23e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
|