mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-23 07:09:08 +02:00
include NonAuthoritative zone in tests
This commit is contained in:
@@ -47,8 +47,14 @@ insert into zones (id, account_id, domain, enabled, enable_search_domain, distri
|
||||
VALUES('zone-331','account-33','test-331.com',true,true,'["33-group-one-resource-id"]');
|
||||
insert into zones (id, account_id, domain, enabled, enable_search_domain, distribution_groups)
|
||||
VALUES('zone-332','account-33','disabled-331.com',false,true,'["33-group-one-resource-id"]');
|
||||
insert into zones (id, account_id, domain, enabled, enable_search_domain, distribution_groups)
|
||||
VALUES('zone-333','account-33','search-off-331.com',true,false,'["33-group-two-resources-id"]');
|
||||
insert into records (id, account_id, zone_id, name, type, ttl, content)
|
||||
VALUES('record-333','account-33','zone-332','test.disabled-331.com','A',1800,'1.1.1.9');
|
||||
insert into records (id, account_id, zone_id, name, type, ttl, content)
|
||||
VALUES('record-334','account-33','zone-333','test.search-off-331.com','A',1800,'1.1.1.3');
|
||||
insert into records (id, account_id, zone_id, name, type, ttl, content)
|
||||
VALUES('record-335','account-33','zone-333','alias.search-off-331.com','CNAME',1800,'test.search-off-331.com');
|
||||
insert into records (id, account_id, zone_id, name, type, ttl, content)
|
||||
VALUES('record-331','account-33','zone-331','test.test-331.com','A',1800,'1.1.1.1');
|
||||
insert into records (id, account_id, zone_id, name, type, ttl, content)
|
||||
|
||||
@@ -513,6 +513,32 @@
|
||||
"SearchDomainDisabled": false,
|
||||
"NonAuthoritative": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"DistributionGroups": [
|
||||
"33-group-two-resources-id"
|
||||
],
|
||||
"Zone": {
|
||||
"Domain": "search-off-331.com.",
|
||||
"Records": [
|
||||
{
|
||||
"Name": "test.search-off-331.com.",
|
||||
"Type": 1,
|
||||
"Class": "IN",
|
||||
"TTL": 1800,
|
||||
"RData": "1.1.1.3"
|
||||
},
|
||||
{
|
||||
"Name": "alias.search-off-331.com.",
|
||||
"Type": 5,
|
||||
"Class": "IN",
|
||||
"TTL": 1800,
|
||||
"RData": "test.search-off-331.com."
|
||||
}
|
||||
],
|
||||
"SearchDomainDisabled": true,
|
||||
"NonAuthoritative": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"PrivateServiceCandidates": null,
|
||||
|
||||
Reference in New Issue
Block a user