summaryrefslogtreecommitdiffstats
path: root/apex/tests
AgeCommit message (Collapse)AuthorFilesLines
2017-10-19Fix interface role mapping config for odl-fdio scenariosFeng Pan1-7/+23
This patch fixes a bug in deploy config function that will make performance parameters overwrite interface role mapping config for honeycomb. apex-os-net-config: Ifa3b18aa6370c79ad6ad3ce983f1648ff0d1d79d Change-Id: Icdb7603577bc7edf1959238ddd3d686c310544ce Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit da99ee8cf99824a7ee5ff19544d3eec4788edd68)
2017-10-12Adding apex/overcloud/* unittestsDan Radez2-0/+483
Change-Id: I02cd512ba1ddaee2538bee7739e27b136112a0c6 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit d158a48f4f10e9abb1403b1178b8c2f31b36e992)
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> (cherry picked from commit ca7b8665dce213c51ae1e15dceede7cc9fba97c1)
2017-10-10Increasing clean.py unittest coverageDan Radez1-45/+82
Change-Id: Iae3e80b399d1431382614449488238475b47b103 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 88230c898808ecefffed413c36d3a558dcb7f763)
2017-10-02Adding unittests for undercloud.pyDan Radez1-0/+196
Change-Id: I65d73f7a1ad27f319857a72b7d9f738b04318aa6 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 11be8e73043eeaa9ec18508410ec28faecbccc08)
2017-09-28Adding python unittests for apex/virtual/*Dan Radez2-0/+203
Change-Id: I13dd395cd6270cbf0a02855b1d29794ecca06d76 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 9d24ddc56a76175a4b7514cea5c789e2612b2528)
2017-09-25Adding 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> (cherry picked from commit c876e9d261a7c3189cc8374c995014309c5b9881)
2017-09-22Fixes 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> (cherry picked from commit 17d5b541e93f5d88ff958372cdf0b0b184bdbc27)
2017-09-21Improves 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> (cherry picked from commit 02dc854a504569da15b0e41353a9f456e02599ad)
2017-09-19Fix 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> (cherry picked from commit 74336aa1ff8270e701c1e5f20c7a566715ed8d92)
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>