integration-tests/networkgraph: Don't rely on svc names
@@ -938,9 +938,6 @@ func TestNetworkGraph(t *testing.T) {
Port: 53,
PodLabels: map[string]string{"run": "test-pod"},
RemoteKind: "svc",
- RemoteSvcNamespace: "kube-system",
- RemoteSvcName: "kube-dns",
- RemoteSvcLabelSelector: map[string]string{"k8s-app": "kube-dns"},
},
}
// Network gadget doesn't provide container data. Remove it.
@@ -955,6 +952,9 @@ func TestNetworkGraph(t *testing.T) {
e.PodIP = ""
e.PodOwner = ""
e.Debug = ""
+ e.RemoteSvcNamespace = ""
+ e.RemoteSvcName = ""
+ e.RemoteSvcLabelSelector = nil
if e.RemoteKind == "svc" {
e.IP = ""
