Add functional testing for Designate

Change-Id: If9fe00c437e6ca1341c72c1081eee35ad2ee46d2
Signed-off-by: Graham Hayes <gr@ham.ie>
This commit is contained in:
Graham Hayes 2018-10-15 17:31:43 +01:00
parent bd1588ac19
commit 11e2fdd2fb
No known key found for this signature in database
GPG Key ID: 1B263DC59F4AEFD5
5 changed files with 22 additions and 0 deletions

View File

@ -7,6 +7,8 @@
required-projects:
- openstack-infra/devstack-gate
- openstack/ospurge
- openstack/designate
- openstack/python-designateclient
irrelevant-files: &dsvm-irrelevant-files
- ^(test-|)requirements.txt$
- ^.*\.rst$

View File

@ -30,6 +30,11 @@
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_NEUTRON=1
export BRANCH_OVERRIDE=default
export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322"
export PROJECTS="openstack/designate $PROJECTS"
export PROJECTS="openstack/ospurge $PROJECTS"
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE

View File

@ -6,6 +6,7 @@ openstackdocstheme>=1.5.0 # Apache-2.0
sphinx>=1.6.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
python-openstackclient>=3.16.1
python-designateclient
# Python 2.7 dependencies
mock; python_version < '3.0'

View File

@ -167,3 +167,8 @@ else
exit 1
fi
fi
if [[ $(openstack zone list --all-projects | wc -l) -ne 1 ]]; then # This also checks FIP
echo "Not all zones were cleaned up"
exit 1
fi

View File

@ -68,6 +68,8 @@ EXTNET_NAME=${EXTNET_NAME:-public}
FLAVOR=${FLAVOR:-m1.nano}
# Image used for the VM
VMIMG_NAME=${VMIMG_NAME:-cirros-0.3.5-x86_64-disk}
# Zone name used for the Designate Zone
ZONE_NAME="${UUID//-/}.com."
@ -181,6 +183,13 @@ exit_on_failure "Unable to create Glance iamge ${UUID}"
swift upload ${UUID} ${UUID}.raw || true
###############################
### Designate
###############################
# Create Designate Zone
openstack zone create --email hostmaster@example.com ${ZONE_NAME}
exit_on_failure "Unable to create Designate Zone ${ZONE_NAME}"
###############################
### Link resources