update tests to expect cluster names in proxy meta

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-08-20 11:57:40 +02:00
parent 9324608d4e
commit 6f677cd1d5
2 changed files with 11 additions and 4 deletions

View File

@@ -45,7 +45,8 @@
"SyncMessageVersion": 1
},
"ProxyMeta": {
"Embedded": true
"Embedded": true,
"Cluster": "cluster-1.netbird.services"
},
"Location": {
"CountryCode": "DE",
@@ -98,7 +99,8 @@
"SyncMessageVersion": 0
},
"ProxyMeta": {
"Embedded": true
"Embedded": true,
"Cluster": "cluster-2.netbird.services"
},
"Location": {
"CountryCode": "DE",
@@ -151,7 +153,8 @@
"SyncMessageVersion": 1
},
"ProxyMeta": {
"Embedded": true
"Embedded": true,
"Cluster": "cluster-3.netbird.services"
},
"Location": {
"CountryCode": "DE",
@@ -512,5 +515,6 @@
}
}
],
"PrivateServiceCandidates": null
"PrivateServiceCandidates": null,
"Services": null
}

View File

@@ -61,6 +61,7 @@ func TestGetPeers(t *testing.T) {
},
ProxyMeta: nmdata.ProxyMeta{
Embedded: true,
Cluster: "cluster-1.netbird.services",
},
Location: nmdata.PeerLocation{
CountryCode: "DE",
@@ -102,6 +103,7 @@ func TestGetPeers(t *testing.T) {
},
ProxyMeta: nmdata.ProxyMeta{
Embedded: true,
Cluster: "cluster-2.netbird.services",
},
Location: nmdata.PeerLocation{
CountryCode: "DE",
@@ -143,6 +145,7 @@ func TestGetPeers(t *testing.T) {
},
ProxyMeta: nmdata.ProxyMeta{
Embedded: true,
Cluster: "cluster-3.netbird.services",
},
Location: nmdata.PeerLocation{
CountryCode: "DE",