fix: update summary test to handle Secure flag
This commit is contained in:
@@ -46,6 +46,7 @@ func TestFormatSummary(t *testing.T) {
|
|||||||
Device: "Model A",
|
Device: "Model A",
|
||||||
Address: netip.MustParseAddr("10.0.0.1"),
|
Address: netip.MustParseAddr("10.0.0.1"),
|
||||||
Port: 8554,
|
Port: 8554,
|
||||||
|
Secure: true,
|
||||||
Available: true,
|
Available: true,
|
||||||
Routes: []string{"stream1", "stream2"},
|
Routes: []string{"stream1", "stream2"},
|
||||||
RouteFound: true,
|
RouteFound: true,
|
||||||
@@ -73,7 +74,7 @@ func TestFormatSummary(t *testing.T) {
|
|||||||
"Authentication: digest",
|
"Authentication: digest",
|
||||||
"Routes: stream1, stream2",
|
"Routes: stream1, stream2",
|
||||||
"Credentials: user:pass",
|
"Credentials: user:pass",
|
||||||
"RTSP URL: rtsp://user:pass@10.0.0.1:8554/stream1",
|
"RTSP URL: rtsps://user:pass@10.0.0.1:8554/stream1",
|
||||||
"Admin panel: http://10.0.0.1/",
|
"Admin panel: http://10.0.0.1/",
|
||||||
"Admin panel: http://10.0.0.2/",
|
"Admin panel: http://10.0.0.2/",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user