Verify admin deletion not to fail
This is the test for the scenario described in bug [0], where an admin
deletes resources from a different project, resulting in orphaned DNS
records.
[0] https://launchpad.net/bugs/1875981
Change-Id: Ibc12a80fad28bb54b0416de7dfe14ef67e4420ef
Related-Bug: 1875981
Depends-On: https://review.opendev.org/740675
Depends-On: https://review.opendev.org/740676
Depends-On: https://review.opendev.org/740677
diff --git a/neutron_tempest_plugin/scenario/test_dns_integration.py b/neutron_tempest_plugin/scenario/test_dns_integration.py
index 533f043..e5995c0 100644
--- a/neutron_tempest_plugin/scenario/test_dns_integration.py
+++ b/neutron_tempest_plugin/scenario/test_dns_integration.py
@@ -158,6 +158,15 @@
self.client.delete_port(port['id'])
self._verify_dns_records(addr, name, found=False)
+ @decorators.idempotent_id('d44cd5b8-ac67-4965-96ff-cb77ab6aea8b')
+ def test_fip_admin_delete(self):
+ name = data_utils.rand_name('fip-test')
+ fip = self._create_floatingip_with_dns(name)
+ addr = fip['floating_ip_address']
+ self._verify_dns_records(addr, name)
+ self.delete_floatingip(fip, client=self.admin_client)
+ self._verify_dns_records(addr, name, found=False)
+
class DNSIntegrationExtraTests(BaseDNSIntegrationTests):