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
(cherry picked from commit a3cee3d726a9c154a47068640f1db0ebb9dc8a10)
(cherry picked from commit 9513f2132af99d6e82067ea7abede329261deadc)
diff --git a/designate_tempest_plugin/tests/api/v2/test_tld.py b/designate_tempest_plugin/tests/api/v2/test_tld.py
index f14d4ed..b230c64 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
)