mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-07 06:29:06 +01:00
Fix status test
This commit is contained in:
parent
4339b6528f
commit
334926ce90
@ -279,7 +279,6 @@ func TestParsingToJSON(t *testing.T) {
|
|||||||
"status": "Connected",
|
"status": "Connected",
|
||||||
"lastStatusUpdate": "2001-01-01T01:01:01Z",
|
"lastStatusUpdate": "2001-01-01T01:01:01Z",
|
||||||
"connectionType": "P2P",
|
"connectionType": "P2P",
|
||||||
"direct": true,
|
|
||||||
"iceCandidateType": {
|
"iceCandidateType": {
|
||||||
"local": "",
|
"local": "",
|
||||||
"remote": ""
|
"remote": ""
|
||||||
@ -288,6 +287,7 @@ func TestParsingToJSON(t *testing.T) {
|
|||||||
"local": "",
|
"local": "",
|
||||||
"remote": ""
|
"remote": ""
|
||||||
},
|
},
|
||||||
|
"relayAddress": "",
|
||||||
"lastWireguardHandshake": "2001-01-01T01:01:02Z",
|
"lastWireguardHandshake": "2001-01-01T01:01:02Z",
|
||||||
"transferReceived": 200,
|
"transferReceived": 200,
|
||||||
"transferSent": 100,
|
"transferSent": 100,
|
||||||
@ -304,7 +304,6 @@ func TestParsingToJSON(t *testing.T) {
|
|||||||
"status": "Connected",
|
"status": "Connected",
|
||||||
"lastStatusUpdate": "2002-02-02T02:02:02Z",
|
"lastStatusUpdate": "2002-02-02T02:02:02Z",
|
||||||
"connectionType": "Relayed",
|
"connectionType": "Relayed",
|
||||||
"direct": false,
|
|
||||||
"iceCandidateType": {
|
"iceCandidateType": {
|
||||||
"local": "relay",
|
"local": "relay",
|
||||||
"remote": "prflx"
|
"remote": "prflx"
|
||||||
@ -313,6 +312,7 @@ func TestParsingToJSON(t *testing.T) {
|
|||||||
"local": "10.0.0.1:10001",
|
"local": "10.0.0.1:10001",
|
||||||
"remote": "10.0.10.1:10002"
|
"remote": "10.0.10.1:10002"
|
||||||
},
|
},
|
||||||
|
"relayAddress": "",
|
||||||
"lastWireguardHandshake": "2002-02-02T02:02:03Z",
|
"lastWireguardHandshake": "2002-02-02T02:02:03Z",
|
||||||
"transferReceived": 2000,
|
"transferReceived": 2000,
|
||||||
"transferSent": 1000,
|
"transferSent": 1000,
|
||||||
@ -404,13 +404,13 @@ func TestParsingToYAML(t *testing.T) {
|
|||||||
status: Connected
|
status: Connected
|
||||||
lastStatusUpdate: 2001-01-01T01:01:01Z
|
lastStatusUpdate: 2001-01-01T01:01:01Z
|
||||||
connectionType: P2P
|
connectionType: P2P
|
||||||
direct: true
|
|
||||||
iceCandidateType:
|
iceCandidateType:
|
||||||
local: ""
|
local: ""
|
||||||
remote: ""
|
remote: ""
|
||||||
iceCandidateEndpoint:
|
iceCandidateEndpoint:
|
||||||
local: ""
|
local: ""
|
||||||
remote: ""
|
remote: ""
|
||||||
|
relayAddress: ""
|
||||||
lastWireguardHandshake: 2001-01-01T01:01:02Z
|
lastWireguardHandshake: 2001-01-01T01:01:02Z
|
||||||
transferReceived: 200
|
transferReceived: 200
|
||||||
transferSent: 100
|
transferSent: 100
|
||||||
@ -424,13 +424,13 @@ func TestParsingToYAML(t *testing.T) {
|
|||||||
status: Connected
|
status: Connected
|
||||||
lastStatusUpdate: 2002-02-02T02:02:02Z
|
lastStatusUpdate: 2002-02-02T02:02:02Z
|
||||||
connectionType: Relayed
|
connectionType: Relayed
|
||||||
direct: false
|
|
||||||
iceCandidateType:
|
iceCandidateType:
|
||||||
local: relay
|
local: relay
|
||||||
remote: prflx
|
remote: prflx
|
||||||
iceCandidateEndpoint:
|
iceCandidateEndpoint:
|
||||||
local: 10.0.0.1:10001
|
local: 10.0.0.1:10001
|
||||||
remote: 10.0.10.1:10002
|
remote: 10.0.10.1:10002
|
||||||
|
relayAddress: ""
|
||||||
lastWireguardHandshake: 2002-02-02T02:02:03Z
|
lastWireguardHandshake: 2002-02-02T02:02:03Z
|
||||||
transferReceived: 2000
|
transferReceived: 2000
|
||||||
transferSent: 1000
|
transferSent: 1000
|
||||||
@ -501,9 +501,9 @@ func TestParsingToDetail(t *testing.T) {
|
|||||||
Status: Connected
|
Status: Connected
|
||||||
-- detail --
|
-- detail --
|
||||||
Connection type: P2P
|
Connection type: P2P
|
||||||
Direct: true
|
|
||||||
ICE candidate (Local/Remote): -/-
|
ICE candidate (Local/Remote): -/-
|
||||||
ICE candidate endpoints (Local/Remote): -/-
|
ICE candidate endpoints (Local/Remote): -/-
|
||||||
|
Relay server address:
|
||||||
Last connection update: %s
|
Last connection update: %s
|
||||||
Last WireGuard handshake: %s
|
Last WireGuard handshake: %s
|
||||||
Transfer status (received/sent) 200 B/100 B
|
Transfer status (received/sent) 200 B/100 B
|
||||||
@ -517,9 +517,9 @@ func TestParsingToDetail(t *testing.T) {
|
|||||||
Status: Connected
|
Status: Connected
|
||||||
-- detail --
|
-- detail --
|
||||||
Connection type: Relayed
|
Connection type: Relayed
|
||||||
Direct: false
|
|
||||||
ICE candidate (Local/Remote): relay/prflx
|
ICE candidate (Local/Remote): relay/prflx
|
||||||
ICE candidate endpoints (Local/Remote): 10.0.0.1:10001/10.0.10.1:10002
|
ICE candidate endpoints (Local/Remote): 10.0.0.1:10001/10.0.10.1:10002
|
||||||
|
Relay server address:
|
||||||
Last connection update: %s
|
Last connection update: %s
|
||||||
Last WireGuard handshake: %s
|
Last WireGuard handshake: %s
|
||||||
Transfer status (received/sent) 2.0 KiB/1000 B
|
Transfer status (received/sent) 2.0 KiB/1000 B
|
||||||
|
Loading…
Reference in New Issue
Block a user