Skip to content

Commit

Permalink
designate: create a test port and nslookup it
Browse files Browse the repository at this point in the history
Added a basic test for designate recordset being created when a
floating ip is assigned to a port on a fixed network.

ping will not work because the port is still down as it is not assigned
to a vm. This helps test designate without
nova/glance/cinder/milkyway/...  and other astronomical services.

Also fixed a type in pools file name.
  • Loading branch information
Sumit Jamgade committed May 17, 2019
1 parent f81473b commit 2c78bf6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/qa_crowbarsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4116,8 +4116,16 @@ function oncontroller_testsetup
fi
# this file is created by the designate barclamp
designate_pools="/etc/desigate/pools.crowbar.yaml"
[[ -e $designate_pools ]] && designate-manage pool update --file $designate_pools
designate_pools="/etc/designate/pools.crowbar.yaml"
if [[ -e $designate_pools ]]; then
designate-manage pool update --file $designate_pools
# default values from the node.neutron.dns_domain
openstack tld create --name local
openstack zone create --email [email protected] openstack.local.
theport=$(openstack port create --network fixed --dns-name iamgroot thanos -f value -c id)
openstack floating ip create floating --port $theport
wait_for 30 5 "nslookup iamgroot.openstack.local >> /dev/null" "thanos port is nslookup-able"
fi
# Run Tempest Smoketests if configured to do so
tempestret=0
Expand Down

0 comments on commit 2c78bf6

Please sign in to comment.