946d232e05
A VPNaaS test case for 'tox -e api' was failing as the test_vpnaas.py code catching a tempest_lib.NotFound but the tempest code is throwing a tempest.lib.NotFound causing a Mismatch. ============================== Failed 1 tests - output below: ============================== neutron_vpnaas.tests.api.test_vpnaas.VPNaaSTestJSON. test_create_update_delete_ipsec_policy[smoke] Captured traceback: ~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "neutron_vpnaas/tests/api/test_vpnaas.py", line 312, in test_create_update_delete_ipsec_policy Fix was to change to tempest.lib, as recommended in: /usr/local/lib/python2.7/dist-packages/tempest_lib/__init__.py:28: DeprecationWarning: tempest-lib is deprecated for future bug-fixes and code changes in favor of tempest. Please change your imports from tempest_lib to tempest.lib DeprecationWarning) Fix base.py for same issue, plus clean up some obvious code issues like a 'self' for a class method and indentation while in there. And since bash not my default shell, fix tox_install.sh to use bash as otherwise get error. opt/stack/neutron-vpnaas/tools/tox_install.sh: 19: /opt/stack/neutron-vpnaas/tools/tox_install.sh: Bad substitution Change-Id: I2ced6fd5cf9cc8a6972e6c937e1da4a0fc0236f4 |
||
---|---|---|
.. | ||
check_i18n_test_case.txt | ||
check_i18n.py | ||
check_unit_test_structure.sh | ||
clean.sh | ||
configure_for_vpn_func_testing.sh | ||
deploy_rootwrap.sh | ||
generate_config_file_samples.sh | ||
i18n_cfg.py | ||
install_venv_common.py | ||
install_venv.py | ||
ostestr_compat_shim.sh | ||
pretty_tox.sh | ||
subunit-trace.py | ||
tox_install.sh | ||
with_venv.sh |