Adding new test cases to "quota" scenario test suite
1) test_api_export_size_quota
Verifies: "Number of recordsets allowed in a zone export"
2) test_recordset_records_quota
Verifies: "Number of records allowed per recordset"
3) test_zone_records_quota
Verifies: "Number of records allowed per zone"
4) test_zone_recordsets_quota
Verifies: "Number of records allowed per recordset"
5) test_zones_quota (modify)
Verifies: "The number of zone allowed per project"
Change-Id: Ia89091087f004e174f38ca0685605057abbf5cdd
diff --git a/designate_tempest_plugin/data_utils.py b/designate_tempest_plugin/data_utils.py
index 61c6da0..d4df276 100644
--- a/designate_tempest_plugin/data_utils.py
+++ b/designate_tempest_plugin/data_utils.py
@@ -125,7 +125,7 @@
def rand_recordset_data(record_type, zone_name, name=None, records=None,
- ttl=None):
+ ttl=None, number_of_records=None):
"""Generate random recordset data, with optional overrides
:return: A RecordsetModel
"""
@@ -133,6 +133,8 @@
name = rand_zone_name(prefix=record_type, suffix='.' + zone_name)
if records is None:
records = [rand_ip()]
+ if number_of_records:
+ records = [rand_ip() for r in range(number_of_records)]
if ttl is None:
ttl = rand_ttl()
return {