[management] fix private services calc on new db path (#7383)

This commit is contained in:
Pascal Fischer
2026-09-01 20:20:30 +02:00
committed by GitHub
parent e5c0cdf958
commit e3d6c3d0eb
13 changed files with 337 additions and 339 deletions
@@ -12,6 +12,7 @@
"IP": "10.10.10.1",
"IPv6": "fdf4:ba80:6aa5:89f1:44d7:8701:8699:4940",
"RequiresApproval": false,
"Connected": true,
"ExtraDNSLabels": [
"extra-peer-1"
],
@@ -66,6 +67,7 @@
"IP": "10.10.100.1",
"IPv6": "fdf5:ba80:6aa5:89f1:44d7:8701:8699:4940",
"RequiresApproval": false,
"Connected": true,
"ExtraDNSLabels": [
"extra-peer-2"
],
@@ -120,6 +122,7 @@
"IP": "10.10.200.1",
"IPv6": "fdf6:ba80:6aa5:89f1:44d7:8701:8699:4940",
"RequiresApproval": false,
"Connected": true,
"ExtraDNSLabels": [
"extra-peer-3"
],
@@ -542,5 +545,11 @@
}
],
"PrivateServiceCandidates": null,
"Services": null
"Services": null,
"Domains": [
{
"Domain": "test-331.com",
"TargetCluster": "target-1.cluster.local"
}
]
}
@@ -40,6 +40,7 @@ func TestGetPeers(t *testing.T) {
IP: netip.MustParseAddr("10.10.10.1"),
IPv6: netip.MustParseAddr("fdf4:ba80:6aa5:89f1:44d7:8701:8699:4940"),
RequiresApproval: false,
Connected: true,
Meta: nmdata.PeerSystemMeta{
WtVersion: "0.76.0",
GoOS: "linux",
@@ -82,6 +83,7 @@ func TestGetPeers(t *testing.T) {
IP: netip.MustParseAddr("10.10.100.1"),
IPv6: netip.MustParseAddr("fdf5:ba80:6aa5:89f1:44d7:8701:8699:4940"),
RequiresApproval: false,
Connected: true,
Meta: nmdata.PeerSystemMeta{
WtVersion: "0.76.1",
GoOS: "linux",
@@ -124,6 +126,7 @@ func TestGetPeers(t *testing.T) {
IP: netip.MustParseAddr("10.10.200.1"),
IPv6: netip.MustParseAddr("fdf6:ba80:6aa5:89f1:44d7:8701:8699:4940"),
RequiresApproval: false,
Connected: true,
Meta: nmdata.PeerSystemMeta{
WtVersion: "0.76.2",
GoOS: "linux",