summaryrefslogtreecommitdiffstats
path: root/apex/tests
AgeCommit message (Collapse)AuthorFilesLines
2017-10-11Adding unittests for apex/deploy.pyDan Radez1-0/+231
Change-Id: Id108039dcf5d846affe2900706097049b3308e81 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-10-11Adding apex/overcloud/* unittestsDan Radez2-0/+483
Change-Id: I02cd512ba1ddaee2538bee7739e27b136112a0c6 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-10-11Updates to Inventory objectDan Radez1-7/+10
- moved get_node_counts over from overcloud/deploy.py - added more test coverage Change-Id: I7774bebb99169aa1da0f07cb2cfc0c1d197af5ca Signed-off-by: Dan Radez <dradez@redhat.com>
2017-10-10Merge "Cleaning up yamllint warnings"Dan Radez2-0/+2
2017-10-10Cleaning up yamllint warningsDan Radez2-0/+2
apex/tests/config/inventory-virt-1-node.yaml 1:1 warning missing document start "---" (document-start) apex/tests/config/inventory-virt.yaml 1:1 warning missing document start "---" (document-start) build/opnfv-environment.yaml 6:3 warning comment not indented like content (comments-indentation) Change-Id: Ice888464d09831066bb6cd0ac94fbd290b142088 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-10-10Increasing clean.py unittest coverageDan Radez1-45/+82
Change-Id: Iae3e80b399d1431382614449488238475b47b103 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-10-02Adding unittests for undercloud.pyDan Radez1-0/+196
Change-Id: I65d73f7a1ad27f319857a72b7d9f738b04318aa6 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-28Adding python unittests for apex/virtual/*Dan Radez2-0/+203
Change-Id: I13dd395cd6270cbf0a02855b1d29794ecca06d76 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-23Adding unittests for buildDan Radez2-0/+475
- covers build.py - covers build_utils.py - moved build_utils out of build module, it wasn't possible to import build.py while build_utils was in a module Change-Id: I42f08a475d9ca219a62c421d4bdd2d1d3c49691a Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-21Fixes removing inventory keysTim Rozet3-15/+56
Inventory keys that we want to delete were not being removed for instackenv.json. Also fixes unit tests. Change-Id: I7d6c752342db050d651953633f18e236f60334e3 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-20Improves clean to cleanup virsh nets and and other bridgesTim Rozet1-0/+12
Currently only the admin and external bridges will be removed from the jumphost which is only really clean for a baremetal deployment. Virtual deployments will leave br-tenant, br-api, br-storage. This patch removes those as well as deletes all Apex virsh networks from libvirt. Also checks if authorized_keys exists before trying to edit it. Change-Id: I1affe2733ba1dc38fd3b91fb14398454137f00a4 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-16Fix broken jumphost detach method when orig file existsTim Rozet1-0/+23
In the case where the backup ifcfg file exists (.orig) the functionality to detach the interface from ovs was broken. This fixes it and adds unit test case to cover that scenario. Change-Id: If6d8ca0ba5cf80df71bb82f52e9d204435374479 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-13Merge "Migrates clean to python"Feng Pan8-6/+417
2017-09-13Migrates clean to pythonTim Rozet8-6/+417
ci/clean.sh will be removed in a future patch after releng is updated to use python. JIRA: APEX-509 JIRA: APEX-319 Change-Id: If890db2fc5a31833ad28ec6f04589e25457bd380 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-11Show ansible tasks as they completeDan Radez2-1/+12
Change-Id: I1b68d70fd97076a7f2ca68091a6e94d87b72efa2 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-07Merge "More cleanup for ci directory"Feng Pan4-26/+0
2017-09-07More cleanup for ci directoryTim Rozet4-26/+0
Changes Include: - Moves dev_dep_check.sh to contrib dir as it is not used by our CI - Removes test.sh as it is not used by CI. tox can be invoked directly for developers. - Removes run_smoke_tests.sh which is not used anymore Change-Id: I59e39be0ce8b23234c70bf066aebf894b6d73388 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-06Adds parser tests and cleanupTim Rozet11-68/+167
Adds unit testing for the common/parsers library and cleans up some of the test files syntax. Change-Id: I7ff9d7ba20b028fba410af900a0c3107a5806d8f Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-08-23Migrates Apex to PythonTim Rozet15-0/+827
Removes all bash libraries and converts almost all of the code to a mixture of Python and Ansible. utils.sh and clean.sh still exist. clean.sh will be migrated fully to clean.py in another patch. The Apex Python package is now built into the opnfv-apex-common RPM. To install locally do 'pip3 install .'. To deploy: opnfv-deploy -d <file> -n <file> --image-dir /root/apex/.build -v --debug Non-python files (THT yaml, settings files, ansible playbooks) are all installed into /usr/share/opnfv-apex/. The RPM will copy settings files into /etc/opnfv-apex/. JIRA: APEX-317 Change-Id: I3232f0329bcd13bce5a28da6a8c9c84d0b048024 Signed-off-by: Tim Rozet <trozet@redhat.com>