Create in-addr.arpa TLD when running TLD tests
Without adding this TLD, other tests that run in parallel and try to
create floating ips might fail.
Closes-Bug: #1889073
Related-issue: https://mirantis.jira.com/browse/PRODX-5699
Change-Id: I2e1dd33b34992d9f9216fa41930225d264577e71
diff --git a/designate_tempest_plugin/tests/api/v2/test_tld.py b/designate_tempest_plugin/tests/api/v2/test_tld.py
index 380d224..14bc323 100644
--- a/designate_tempest_plugin/tests/api/v2/test_tld.py
+++ b/designate_tempest_plugin/tests/api/v2/test_tld.py
@@ -43,6 +43,11 @@
@classmethod
def resource_setup(cls):
super(TldAdminTest, cls).resource_setup()
+ # Create in-addr.arpa as well so that if there are any tests that run
+ # in parallel to this one and try to create a floating ip, they can
+ # still create it fine
+ cls.admin_client.create_tld(
+ tld_name='in-addr.arpa', ignore_errors=lib_exc.Conflict)
cls.tld = cls.admin_client.create_tld(tld_name='com',
ignore_errors=lib_exc.Conflict)