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
@@ -45,7 +45,8 @@
"SyncMessageVersion": 1 "SyncMessageVersion": 1
}, },
"ProxyMeta": { "ProxyMeta": {
"Embedded": true "Embedded": true,
"Cluster": "cluster-1.netbird.services"
}, },
"Location": { "Location": {
"CountryCode": "DE", "CountryCode": "DE",
@@ -98,7 +99,8 @@
"SyncMessageVersion": 0 "SyncMessageVersion": 0
}, },
"ProxyMeta": { "ProxyMeta": {
"Embedded": true "Embedded": true,
"Cluster": "cluster-2.netbird.services"
}, },
"Location": { "Location": {
"CountryCode": "DE", "CountryCode": "DE",
@@ -151,7 +153,8 @@
"SyncMessageVersion": 1 "SyncMessageVersion": 1
}, },
"ProxyMeta": { "ProxyMeta": {
"Embedded": true "Embedded": true,
"Cluster": "cluster-3.netbird.services"
}, },
"Location": { "Location": {
"CountryCode": "DE", "CountryCode": "DE",
@@ -512,5 +515,6 @@
} }
} }
], ],
"PrivateServiceCandidates": null "PrivateServiceCandidates": null,
"Services": null
} }
@@ -61,6 +61,7 @@ func TestGetPeers(t *testing.T) {
}, },
ProxyMeta: nmdata.ProxyMeta{ ProxyMeta: nmdata.ProxyMeta{
Embedded: true, Embedded: true,
Cluster: "cluster-1.netbird.services",
}, },
Location: nmdata.PeerLocation{ Location: nmdata.PeerLocation{
CountryCode: "DE", CountryCode: "DE",
@@ -102,6 +103,7 @@ func TestGetPeers(t *testing.T) {
}, },
ProxyMeta: nmdata.ProxyMeta{ ProxyMeta: nmdata.ProxyMeta{
Embedded: true, Embedded: true,
Cluster: "cluster-2.netbird.services",
}, },
Location: nmdata.PeerLocation{ Location: nmdata.PeerLocation{
CountryCode: "DE", CountryCode: "DE",
@@ -143,6 +145,7 @@ func TestGetPeers(t *testing.T) {
}, },
ProxyMeta: nmdata.ProxyMeta{ ProxyMeta: nmdata.ProxyMeta{
Embedded: true, Embedded: true,
Cluster: "cluster-3.netbird.services",
}, },
Location: nmdata.PeerLocation{ Location: nmdata.PeerLocation{
CountryCode: "DE", CountryCode: "DE",