From e385d1e0309a4fc5d414277260702a7c0fff6ad0 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Wed, 12 Mar 2014 16:58:12 +0800 Subject: [PATCH] Add support for django_openstack_auth It would be useful for development, reviewing and testing to add support for django_openstack_auth to devstack. This change adds the integration tests to the openstack_auth list of test: https://review.openstack.org/#/c/86528/ Change-Id: Ifbd336b83f6b2beb23996b599ec820232c13efdd Closes-Bug: #1262121 --- AUTHORS | 1 + lib/horizon | 7 +++++++ stack.sh | 2 ++ stackrc | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/AUTHORS b/AUTHORS index c6b40d8203..04bff48fcb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -48,3 +48,4 @@ Vishvananda Ishaya Yun Mao Yong Sheng Gong Zhongyue Luo +Zhenguo Niu diff --git a/lib/horizon b/lib/horizon index 02715cedff..1cfc60561e 100644 --- a/lib/horizon +++ b/lib/horizon @@ -26,6 +26,7 @@ set +o xtrace # Set up default directories HORIZON_DIR=$DEST/horizon +HORIZONAUTH_DIR=$DEST/django_openstack_auth # local_settings.py is used to customize Dashboard settings. # The example file in Horizon repo is used by default. @@ -155,6 +156,12 @@ function init_horizon { } +# install_django_openstack_auth() - Collect source and prepare +function install_django_openstack_auth { + git_clone $HORIZONAUTH_REPO $HORIZONAUTH_DIR $HORIZONAUTH_BRANCH + setup_develop $HORIZONAUTH_DIR +} + # install_horizon() - Collect source and prepare function install_horizon { # Apache installation, because we mark it NOPRIME diff --git a/stack.sh b/stack.sh index bd99b5b752..2fe01d0818 100755 --- a/stack.sh +++ b/stack.sh @@ -757,6 +757,8 @@ if is_service_enabled nova; then fi if is_service_enabled horizon; then + # django openstack_auth + install_django_openstack_auth # dashboard install_horizon configure_horizon diff --git a/stackrc b/stackrc index 01d0e0f79f..a517fbb014 100644 --- a/stackrc +++ b/stackrc @@ -133,6 +133,10 @@ HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master} HORIZON_REPO=${HORIZON_REPO:-${GIT_BASE}/openstack/horizon.git} HORIZON_BRANCH=${HORIZON_BRANCH:-master} +# django openstack_auth library +HORIZONAUTH_REPO=${HORIZONAUTH_REPO:-${GIT_BASE}/openstack/django_openstack_auth.git} +HORIZONAUTH_BRANCH=${HORIZONAUTH_BRANCH:-master} + # baremetal provisionint service IRONIC_REPO=${IRONIC_REPO:-${GIT_BASE}/openstack/ironic.git} IRONIC_BRANCH=${IRONIC_BRANCH:-master}