diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-26 14:32:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-26 14:32:18 +0000 |
commit | 26a374a577b39f044d178c3b9b5d8bf88b3f44c6 (patch) | |
tree | b9e681458ca1ffa6c1ada9f79a9b261d86fb49c9 /docker/run_tests.sh | |
parent | 68852eae675fb232ae5ed870227c38aa40ff3a7a (diff) | |
parent | 1a40722cd446af5416029dc0f3b371a835fa444c (diff) |
Merge "Patch ODL scenario to support joid (different keystone and neutron API IP)"
Diffstat (limited to 'docker/run_tests.sh')
-rwxr-xr-x | docker/run_tests.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docker/run_tests.sh b/docker/run_tests.sh index bf68612f9..9e2021669 100755 --- a/docker/run_tests.sh +++ b/docker/run_tests.sh @@ -51,7 +51,9 @@ function clean_openstack(){ } function odl_tests(){ - neutron_ip=$(keystone catalog --service identity | grep publicURL | cut -f3 -d"/" | cut -f1 -d":") + keystone_ip=$(keystone catalog --service identity | grep publicURL | cut -f3 -d"/" | cut -f1 -d":") + # historically most of the installers use the same IP for neutron and keystone API + neutron_ip=keystone_ip odl_ip=$(keystone catalog --service network | grep publicURL | cut -f3 -d"/" | cut -f1 -d":") usr_name=$(env | grep OS | grep OS_USERNAME | cut -f2 -d'=') password=$(env | grep OS | grep OS_PASSWORD | cut -f2 -d'=') @@ -61,6 +63,9 @@ function odl_tests(){ elif [ $INSTALLER_TYPE == "apex" ]; then : elif [ $INSTALLER_TYPE == "joid" ]; then + odl_ip=$(env | grep ODL_CONTROLLER | cut -f2 -d'=') + neutron_ip=$(keystone catalog --service network | grep publicURL | cut -f3 -d"/" | cut -f1 -d":") + odl_port=8080 : elif [ $INSTALLER_TYPE == "compass" ]; then : @@ -90,7 +95,7 @@ function run_test(){ "odl") info "Running ODL test..." odl_tests - ODL_PORT=$odl_port ODL_IP=$odl_ip NEUTRON_IP=$neutron_ip USR_NAME=$usr_name PASS=$password \ + ODL_PORT=$odl_port ODL_IP=$odl_ip KEYSTONE_IP=$keystone_ip NEUTRON_IP=$neutron_ip USR_NAME=$usr_name PASS=$password \ ${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/CI/start_tests.sh # push results to the DB in case of CI |