Skip to content

Commit

Permalink
update internal-dns unit test to include boundary NTP
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Aug 8, 2024
1 parent fa58d40 commit 24b7562
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal-dns/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,11 @@ mod test {
b.service_backend_zone(ServiceName::Oximeter, &zone2, 125).unwrap();
b.service_backend_zone(ServiceName::Oximeter, &zone3, 126).unwrap();

// Add a boundary NTP service to one of the zones; this will also
// populate the special `BOUNDARY_NTP_DNS_NAME`.
b.service_backend_zone(ServiceName::BoundaryNtp, &zone2, 127)
.unwrap();

// A sharded service
b.service_backend_sled(
ServiceName::SledAgent(sled1_uuid),
Expand Down
17 changes: 17 additions & 0 deletions internal-dns/tests/output/internal-dns-zone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ builder: "non_trivial"
"data": "::1:4"
}
],
"_boundary-ntp._tcp": [
{
"type": "SRV",
"data": {
"port": 127,
"prio": 0,
"target": "001de000-c04e-4000-8000-000000000002.host.control-plane.oxide.internal",
"weight": 0
}
}
],
"_nexus._tcp": [
{
"type": "SRV",
Expand Down Expand Up @@ -118,5 +129,11 @@ builder: "non_trivial"
"weight": 0
}
}
],
"boundary-ntp": [
{
"type": "AAAA",
"data": "::1:2"
}
]
}

0 comments on commit 24b7562

Please sign in to comment.