summaryrefslogtreecommitdiffstats
path: root/dovetail/tests/unit/utils/test_dovetail_utils.py
AgeCommit message (Collapse)AuthorFilesLines
2019-11-19Fix exception when running HA tests without pod.yamlxudan1-0/+20
1. use volumes '-v' to map files/directories which may be non-existing 2. use mounts '--mount' to map files/directories which couldn't be non-existing JIRA: DOVETAIL-789 Change-Id: I2184e5baed3d1491a2df4d3a1a77a11e3e9b4fc8 Signed-off-by: xudan <xudan16@huawei.com>
2019-10-25Update API to python3 and add some addtional APIsxudan1-1/+1
Update the unit test case to fix the py27 failure. Change-Id: Ic75b8fc037c320ec5599eb007dcee43788e32807 Signed-off-by: xudan <xudan16@huawei.com>
2019-10-11Update all redirected links in Dovetail docsxudan1-8/+5
The pod ld-build2 only has python 3.6 installed, so change the tox env to be 3.6 Other pods has python 3.5 to verify pep8, py35 ... Change-Id: I0289d7ce96ffa49dd08ce4b855fe071a5e608cbf Signed-off-by: xudan <xudan16@huawei.com>
2019-09-18Fault fixing for cmd_exec util methodPanagiotis Karalis1-4/+3
When the 'dovetail run' command is assigned, the error "TypeError: must be str, not bytes" is appeared. Due to a different handling of strings in the Python3, this error is appeared during of command execution (i.e. exec_cmd method). Each piece of the string should be decoded, before it will be appended to the rest one. Signed-off-by: Panagiotis Karalis <panos.pkaralis@gmail.com> Change-Id: I65629f3f76cc3e44f3926a744d00791ef588d2aa
2019-09-16Move the proj to python3Panagiotis Karalis1-28/+29
The aim of this patch is to upgrade python version of this project from python2 to python3. Signed-off-by: Panagiotis Karalis <panos.pkaralis@gmail.com> Change-Id: I3d3ef01176fda1b23a0542a24625be2f3368c40e
2019-04-03Push CI results to OPNFV test DBxudan1-0/+49
In order to use OPNFV test results page to do the ayalysis of all OVP test cases, it needs to push all results generated by Dovetail CI jobs to test DB and then using http://testresults.opnfv.org/test/#/results to check all results. The following data must contain in the POST body: 1. project_name 2. case_name 3. details 4. installer 5. scenario 6. pod_name 7. build_tag 8. criteria 9. start_date 10. stop_date 11. version JIRA: DOVETAIL-767 Change-Id: I925ae249e24efd7bfb1c68a69150e9c22f0cdf36 Signed-off-by: xudan <xudan16@huawei.com>
2019-03-18Replace subprocess commands with Docker SDKStamatis Katsaounis1-48/+27
JIRA: DOVETAIL-752 This patch replaces all python subprocess commands with the Docker SDK relevant commands. Change-Id: Iac7caffd80a863a8a022247d735b2a7f2792e49d Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-11-23Integrate k8s test cassesxudan1-1/+40
In order to integrate k8s test cases, Dovetail framework should do some refactor and make it more general for k8s test cases as well as ONAP ones. Integrate 2 k8s test cases. JIRA: DOVETAIL-748 Change-Id: Ibd87754ffb5fb29f6b4ce79232af860c2ed2da9c Signed-off-by: xudan <xudan16@huawei.com>
2018-11-14Add missing unit tests for utils filesStamatis Katsaounis1-0/+1318
JIRA: DOVETAIL-724 This patch adds unit tests which were missing from dovetail code base. Furthermore it updates the test_parser existing unit test. Finally, it fixes some minor issues in dovetail_utils itself. Change-Id: I8fd7cd4f6b1ede11664914746d2279f062511639 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>