Skip to content

Commit f3f243a

Browse files
committed
Add test env boundary NTP server to internal DNS
1 parent 5a0d82e commit f3f243a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nexus/test-utils/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,16 +1213,22 @@ impl<'a, N: NexusServer> ControlPlaneTestContextBuilder<'a, N> {
12131213
.nth(NUM_INITIAL_RESERVED_IP_ADDRESSES + 1)
12141214
.unwrap();
12151215
let external_ip = IpAddr::V4(Ipv4Addr::new(1, 2, 3, 4));
1216+
let address = "[::1]:80".parse().unwrap(); // FIXME: what should we use here?
12161217
let zone_id = OmicronZoneUuid::new_v4();
12171218
let zpool_id = ZpoolUuid::new_v4();
12181219

1220+
self.rack_init_builder.add_service_to_dns(
1221+
zone_id,
1222+
address,
1223+
ServiceName::BoundaryNtp,
1224+
);
12191225
self.blueprint_zones.push(BlueprintZoneConfig {
12201226
disposition: BlueprintZoneDisposition::InService,
12211227
id: zone_id,
12221228
filesystem_pool: ZpoolName::new_external(zpool_id),
12231229
zone_type: BlueprintZoneType::BoundaryNtp(
12241230
blueprint_zone_type::BoundaryNtp {
1225-
address: "[::1]:80".parse().unwrap(),
1231+
address,
12261232
ntp_servers: vec![],
12271233
dns_servers: vec![],
12281234
domain: None,

0 commit comments

Comments
 (0)