Add functional testing for Designate
Change-Id: If9fe00c437e6ca1341c72c1081eee35ad2ee46d2 Signed-off-by: Graham Hayes <gr@ham.ie>
This commit is contained in:
parent
bd1588ac19
commit
11e2fdd2fb
@ -7,6 +7,8 @@
|
|||||||
required-projects:
|
required-projects:
|
||||||
- openstack-infra/devstack-gate
|
- openstack-infra/devstack-gate
|
||||||
- openstack/ospurge
|
- openstack/ospurge
|
||||||
|
- openstack/designate
|
||||||
|
- openstack/python-designateclient
|
||||||
irrelevant-files: &dsvm-irrelevant-files
|
irrelevant-files: &dsvm-irrelevant-files
|
||||||
- ^(test-|)requirements.txt$
|
- ^(test-|)requirements.txt$
|
||||||
- ^.*\.rst$
|
- ^.*\.rst$
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
export DEVSTACK_GATE_TEMPEST=0
|
export DEVSTACK_GATE_TEMPEST=0
|
||||||
export DEVSTACK_GATE_NEUTRON=1
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
export BRANCH_OVERRIDE=default
|
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"
|
export PROJECTS="openstack/ospurge $PROJECTS"
|
||||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||||
|
@ -6,6 +6,7 @@ openstackdocstheme>=1.5.0 # Apache-2.0
|
|||||||
sphinx>=1.6.2 # BSD
|
sphinx>=1.6.2 # BSD
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
python-openstackclient>=3.16.1
|
python-openstackclient>=3.16.1
|
||||||
|
python-designateclient
|
||||||
|
|
||||||
# Python 2.7 dependencies
|
# Python 2.7 dependencies
|
||||||
mock; python_version < '3.0'
|
mock; python_version < '3.0'
|
||||||
|
@ -167,3 +167,8 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
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
|
@ -68,6 +68,8 @@ EXTNET_NAME=${EXTNET_NAME:-public}
|
|||||||
FLAVOR=${FLAVOR:-m1.nano}
|
FLAVOR=${FLAVOR:-m1.nano}
|
||||||
# Image used for the VM
|
# Image used for the VM
|
||||||
VMIMG_NAME=${VMIMG_NAME:-cirros-0.3.5-x86_64-disk}
|
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
|
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
|
### Link resources
|
||||||
|
Loading…
x
Reference in New Issue
Block a user