Use reasonable sizes for negative tests

Change-Id: Ie0c07199b0f0257452aa0e0fb5a4bfe546c7de29
This commit is contained in:
Erik Olof Gunnar Andersson 2023-10-05 03:54:59 -07:00
parent 428987b56a
commit 9552456e4f
2 changed files with 3 additions and 3 deletions

View File

@ -309,7 +309,7 @@ class TestPoolAdminNegative(BasePoolTest):
LOG.info('Create a pool using a huge size string for name)')
with self.assertRaisesDns(lib_exc.BadRequest, 'invalid_object', 400):
self.admin_client.create_pool(
pool_name=data_utils.rand_name(name="Huge_size_name") * 10000)
pool_name=data_utils.rand_name(name="Huge_size_name") * 100)
@decorators.idempotent_id('9a787d0e-ac04-11eb-ae06-74e5f9e2a801')
def test_create_pool_invalid_hostname_in_ns_records(self):
@ -337,7 +337,7 @@ class TestPoolAdminNegative(BasePoolTest):
with self.assertRaisesDns(lib_exc.BadRequest, 'invalid_object', 400):
self.admin_client.update_pool(
pool['id'],
pool_name=data_utils.rand_name(name="Huge_size_name") * 10000,
pool_name=data_utils.rand_name(name="Huge_size_name") * 100,
headers=self.all_projects_header, extra_headers=True)
@decorators.idempotent_id('2e496596-ac07-11eb-ae06-74e5f9e2a801')

View File

@ -749,7 +749,7 @@ class ZonesNegativeTest(BaseZonesTest):
self.assertRaisesDns(
lib_exc.BadRequest, 'invalid_object', 400,
self.zones_client.create_zone,
description=dns_data_utils.rand_zone_name() * 10000)
description=dns_data_utils.rand_zone_name() * 100)
@decorators.idempotent_id('49268b24-92de-11eb-9d02-74e5f9e2a801')
def test_show_not_existing_zone(self):