From 21cf062be5af3b57920124b3ab78dfeb56b0937c Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Wed, 21 Jun 2017 14:14:10 +0900 Subject: [PATCH] Consume horizon master Previously the repository consumes horizon from amotoki's private github repository for initial testing. Let's switch it to the main horizon repository. To test this, local.conf needs to be something like below: (Patch set number may need to be changed.) ----- enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas enable_plugin neutron-vpnaas-dashboard https://git.openstack.org/openstack/neutron-vpnaas-dashboard refs/changes/05/476005/6 ----- Implement blueprint split-out-neutron-xaas-dashboards Depends-On: Ib304ddef381d80011f7030fdd5049aab0e901ae6 Change-Id: I11a927ae799102def257edc5c18486acd3700299 --- devstack/plugin.sh | 6 ++++++ tools/tox_install.sh | 3 +-- tox.ini | 6 ++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index c540c50..7806dec 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -10,6 +10,12 @@ function install_neutron_vpnaas_dashboard { function configure_neutron_vpnaas_dashboard { cp -a $VPNAAS_ENABLED_DIR/_[0-9]*.py $HORIZON_ENABLED_DIR + # The following is to make vpnaas dashboard work with + # the master horizon with neutron vpnaas support. + # At now it seems overriding enabled file does not work. + # (horizon bug 1700325) + rm -f $DEST/horizon/openstack_dashboard/enabled/_1470_project_vpn_panel.py + rm -f $DEST/horizon/openstack_dashboard/enabled/__pycache__/_1470_project_vpn_panel.* # NOTE: If locale directory does not exist, compilemessages will fail, # so check for an existence of locale directory is required. if [ -d $VPNAAS_DASHBOARD_DIR/neutron_vpnaas_dashboard/locale ]; then diff --git a/tools/tox_install.sh b/tools/tox_install.sh index 7fd2a59..b551287 100755 --- a/tools/tox_install.sh +++ b/tools/tox_install.sh @@ -16,8 +16,7 @@ function pip_install() { # and honour any/all Depends-On headers in the commit message function install_from_git() { ZUUL_CLONER=/usr/zuul-env/bin/zuul-cloner - # GIT_HOST=git.openstack.org - GIT_HOST=github.com + GIT_HOST=git.openstack.org PROJ=$1 EGG=$2 diff --git a/tox.ini b/tox.ini index baee286..f46d7f0 100644 --- a/tox.ini +++ b/tox.ini @@ -7,8 +7,7 @@ skipsdist = True usedevelop = True install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} setenv = VIRTUAL_ENV={envdir} - # BRANCH_NAME=master - BRANCH_NAME=drop-vpnaas + BRANCH_NAME=master CLIENT_NAME=neutron-vpnaas-dashboard NOSE_WITH_OPENSTACK=1 NOSE_OPENSTACK_COLOR=1 @@ -17,8 +16,7 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_SHOW_ELAPSED=1 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt - os:amotoki/horizon:horizon - # os:openstack/horizon:horizon + os:openstack/horizon:horizon commands = {[unit_tests]commands} [unit_tests]