[ Agent ] [ Status ] - network info
This commit is contained in:
@@ -6,21 +6,6 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetNetworkInfo(t *testing.T) {
|
||||
|
||||
networkInfo, err := GetNetworkStatus()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
marshalIndent, err := json.MarshalIndent(networkInfo, "", " ")
|
||||
if err != nil {
|
||||
fmt.Printf("error")
|
||||
}
|
||||
|
||||
fmt.Println(string(marshalIndent))
|
||||
}
|
||||
|
||||
func TestMatchNetInterfaceRight(t *testing.T) {
|
||||
interfaceNames := []string{"eth0", "eth1", "enp3s0", "wlan0", "lo", "ens12", "eno1", "asdas", "en0"}
|
||||
|
||||
@@ -44,3 +29,8 @@ func TestGetNetworkMetric(t *testing.T) {
|
||||
fmt.Println()
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetNetworkInfo(t *testing.T) {
|
||||
GetNetworkInfo()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user