From 9e101bfcbecae77aa76d0acdecf5e99fd34a6fba Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Fri, 15 May 2020 10:10:26 +0000 Subject: [PATCH] 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 --- neutron_tempest_plugin/scenario/test_dns_integration.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/neutron_tempest_plugin/scenario/test_dns_integration.py b/neutron_tempest_plugin/scenario/test_dns_integration.py index 533f0435..e5995c05 100644 --- a/neutron_tempest_plugin/scenario/test_dns_integration.py +++ b/neutron_tempest_plugin/scenario/test_dns_integration.py @@ -158,6 +158,15 @@ class DNSIntegrationAdminTests(BaseDNSIntegrationTests, 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):