From 19a7960585056667632c8551b6e78c4fff063169 Mon Sep 17 00:00:00 2001 From: shireenf-ibm Date: Wed, 23 Oct 2024 12:07:45 +0300 Subject: [PATCH 1/5] adding new line to textual outputs that did not have (connlist + diff); tests of list with exposure-analysis had new line at the end --- pkg/netpol/connlist/conns_formatter_txt.go | 2 +- pkg/netpol/diff/diff_formatter_text.go | 2 +- ...-demos_focus_workload_ingress-controller_connlist_output.txt | 2 +- ...onlineboutique_with_pods_severe_error_and_onlineboutique.txt | 2 +- ...workloads_changed_workloads_and_onlineboutique_workloads.txt | 2 +- test_outputs/cli/document_with_syntax_error_connlist_output.txt | 2 +- test_outputs/cli/onlineboutique_connlist_output.txt | 2 +- ...oads_focus_workload_default_emailservice_connlist_output.txt | 2 +- ...ue_workloads_focus_workload_emailservice_connlist_output.txt | 2 +- ...ded-workloads_focus_workload_asset-cache_connlist_output.txt | 2 +- ...ds_focus_workload_backend_recommendation_connlist_output.txt | 2 +- ...oads_focus_workload_frontend_asset-cache_connlist_output.txt | 2 +- ...kloads_focus_workload_ingress-controller_connlist_output.txt | 2 +- .../acs-security-demos-with-netpol-list_connlist_output.txt | 2 +- test_outputs/connlist/acs-security-demos_connlist_output.txt | 2 +- .../connlist/acs_security_frontend_demos_connlist_output.txt | 1 + .../connlist/core_pods_without_host_ip_connlist_output.txt | 2 +- .../demo_app_with_routes_and_ingress_connlist_output.txt | 2 +- ...pod_exposed_only_to_representative_peers_connlist_output.txt | 2 +- test_outputs/connlist/ipblockstest_2_connlist_output.txt | 2 +- test_outputs/connlist/ipblockstest_3_connlist_output.txt | 2 +- test_outputs/connlist/ipblockstest_4_connlist_output.txt | 2 +- test_outputs/connlist/ipblockstest_connlist_output.txt | 2 +- test_outputs/connlist/k8s_ingress_test_connlist_output.txt | 2 +- ...est_focus_workload_details-v1-79f774bdb9_connlist_output.txt | 2 +- test_outputs/connlist/minikube_resources_connlist_output.txt | 2 +- test_outputs/connlist/minimal_test_in_ns_connlist_output.txt | 2 +- ...ple_ingress_objects_with_different_ports_connlist_output.txt | 2 +- .../connlist/multiple_topology_resources_1_connlist_output.txt | 2 +- .../connlist/multiple_topology_resources_2_connlist_output.txt | 2 +- .../connlist/multiple_topology_resources_3_connlist_output.txt | 2 +- .../connlist/multiple_topology_resources_4_connlist_output.txt | 2 +- .../netpol-analysis-example-minimal_connlist_output.txt | 2 +- .../connlist/netpol_named_port_test_2_connlist_output.txt | 2 +- .../connlist/netpol_named_port_test_connlist_output.txt | 2 +- test_outputs/connlist/new_online_boutique_connlist_output.txt | 2 +- .../connlist/new_online_boutique_synthesis_connlist_output.txt | 2 +- .../connlist/one_ingress_multiple_ports_connlist_output.txt | 2 +- .../connlist/one_ingress_multiple_services_connlist_output.txt | 2 +- .../online_boutique_workloads_no_ns_connlist_output.txt | 2 +- test_outputs/connlist/onlineboutique_connlist_output.txt | 2 +- .../connlist/onlineboutique_workloads_connlist_output.txt | 2 +- ...ue_workloads_focus_workload_emailservice_connlist_output.txt | 2 +- ...fferent-topologies-policy-a-with-ipblock_connlist_output.txt | 2 +- ...manticDiff-different-topologies-policy-a_connlist_output.txt | 2 +- ...fferent-topologies-policy-b-with-ipblock_connlist_output.txt | 2 +- ...manticDiff-different-topologies-policy-b_connlist_output.txt | 2 +- .../semanticDiff-orig-topologies-no-policy_connlist_output.txt | 2 +- .../semanticDiff-orig-topologies-policy-a_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-new1_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-new1a_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-new2_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-new3_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-old1_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-old2_connlist_output.txt | 2 +- .../semanticDiff-same-topologies-old3_connlist_output.txt | 2 +- .../test_with_named_ports_changed_netpol_2_connlist_output.txt | 2 +- .../test_with_named_ports_changed_netpol_connlist_output.txt | 2 +- test_outputs/connlist/test_with_named_ports_connlist_output.txt | 2 +- test_outputs/connlist/with_end_port_example_connlist_output.txt | 2 +- .../connlist/with_end_port_example_new_connlist_output.txt | 2 +- ...e_workloads_changed_netpols_and_onlineboutique_workloads.txt | 2 +- ...cs-security-demos-added-workloads_and_acs-security-demos.txt | 2 +- ...ff_between_acs-security-demos-new_and_acs-security-demos.txt | 2 +- ...ween_acs-security-demos-no-routes_and_acs-security-demos.txt | 2 +- ...loyment_changed_netpol_and_deny_all_to_from_a_deployment.txt | 2 +- .../diff/diff_between_ipblockstest_2_and_ipblockstest.txt | 2 +- .../diff/diff_between_ipblockstest_3_and_ipblockstest.txt | 2 +- .../diff/diff_between_ipblockstest_4_and_ipblockstest.txt | 2 +- .../diff_between_k8s_ingress_test_new_and_k8s_ingress_test.txt | 2 +- ...ts_new_and_multiple_ingress_objects_with_different_ports.txt | 2 +- ...e_topology_resources_2_and_multiple_topology_resources_1.txt | 2 +- ...diff-example-minimal_and_netpol-analysis-example-minimal.txt | 2 +- ...en_new_online_boutique_synthesis_and_new_online_boutique.txt | 2 +- ...e_workloads_changed_netpols_and_onlineboutique_workloads.txt | 2 +- ...anged_netpols_and_workloads_and_onlineboutique_workloads.txt | 2 +- ...workloads_changed_workloads_and_onlineboutique_workloads.txt | 2 +- ...-policy-a_and_semanticDiff-different-topologies-policy-b.txt | 2 +- ...opologies-policy-a_and_semanticDiff-same-topologies-old1.txt | 2 +- ..._semanticDiff-different-topologies-policy-a-with-ipblock.txt | 2 +- ...-policy-b_and_semanticDiff-different-topologies-policy-a.txt | 2 +- ...me-topologies-new1_and_semanticDiff-same-topologies-old1.txt | 2 +- ...e-topologies-new1a_and_semanticDiff-same-topologies-old1.txt | 2 +- ...me-topologies-new2_and_semanticDiff-same-topologies-old2.txt | 2 +- ...ith_named_ports_changed_netpol_and_test_with_named_ports.txt | 2 +- 85 files changed, 85 insertions(+), 84 deletions(-) diff --git a/pkg/netpol/connlist/conns_formatter_txt.go b/pkg/netpol/connlist/conns_formatter_txt.go index 609d850a..78653c56 100644 --- a/pkg/netpol/connlist/conns_formatter_txt.go +++ b/pkg/netpol/connlist/conns_formatter_txt.go @@ -22,7 +22,7 @@ type formatText struct { func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool) (string, error) { res := t.writeConnlistOutput(conns, exposureFlag) if !exposureFlag { - return res, nil + return res + newLineChar, nil } // else append exposure analysis results: if res != "" { diff --git a/pkg/netpol/diff/diff_formatter_text.go b/pkg/netpol/diff/diff_formatter_text.go index ac467f54..f60abb71 100644 --- a/pkg/netpol/diff/diff_formatter_text.go +++ b/pkg/netpol/diff/diff_formatter_text.go @@ -27,7 +27,7 @@ func (t *diffFormatText) writeDiffOutput(connsDiff ConnectivityDiff) (string, er res := make([]string, 0) res = append(res, connectivityDiffHeader) res = append(res, writeDiffLinesOrderedByCategory(connsDiff, t)...) - return strings.Join(res, newLine), nil + return strings.Join(res, newLine) + newLine, nil } // singleDiffLine forms a single diff line in the txt format diff --git a/test_outputs/cli/acs-security-demos_focus_workload_ingress-controller_connlist_output.txt b/test_outputs/cli/acs-security-demos_focus_workload_ingress-controller_connlist_output.txt index 839eab9f..9025e8d0 100644 --- a/test_outputs/cli/acs-security-demos_focus_workload_ingress-controller_connlist_output.txt +++ b/test_outputs/cli/acs-security-demos_focus_workload_ingress-controller_connlist_output.txt @@ -1,2 +1,2 @@ {ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 -{ingress-controller} => frontend/webapp[Deployment] : TCP 8080 \ No newline at end of file +{ingress-controller} => frontend/webapp[Deployment] : TCP 8080 diff --git a/test_outputs/cli/diff_between_onlineboutique_with_pods_severe_error_and_onlineboutique.txt b/test_outputs/cli/diff_between_onlineboutique_with_pods_severe_error_and_onlineboutique.txt index 2108d995..c06c95d5 100644 --- a/test_outputs/cli/diff_between_onlineboutique_with_pods_severe_error_and_onlineboutique.txt +++ b/test_outputs/cli/diff_between_onlineboutique_with_pods_severe_error_and_onlineboutique.txt @@ -1,2 +1,2 @@ Connectivity diff: -diff-type: changed, source: default/frontend-99684f7f8[ReplicaSet], destination: default/adservice-77d5cd745d[ReplicaSet], dir1: TCP 9555, dir2: TCP 8080 \ No newline at end of file +diff-type: changed, source: default/frontend-99684f7f8[ReplicaSet], destination: default/adservice-77d5cd745d[ReplicaSet], dir1: TCP 9555, dir2: TCP 8080 diff --git a/test_outputs/cli/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt b/test_outputs/cli/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt index 770fc08b..0a5767ec 100644 --- a/test_outputs/cli/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt +++ b/test_outputs/cli/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt @@ -2,4 +2,4 @@ Connectivity diff: diff-type: added, source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], dir1: No Connections, dir2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added diff-type: added, source: default/redis-cart[Deployment], destination: default/unicorn[Deployment], dir1: No Connections, dir2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added diff-type: added, source: default/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: No Connections, dir2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added -diff-type: added, source: default/unicorn[Deployment], destination: default/redis-cart[Deployment], dir1: No Connections, dir2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added \ No newline at end of file +diff-type: added, source: default/unicorn[Deployment], destination: default/redis-cart[Deployment], dir1: No Connections, dir2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added diff --git a/test_outputs/cli/document_with_syntax_error_connlist_output.txt b/test_outputs/cli/document_with_syntax_error_connlist_output.txt index 251d8373..9876370c 100644 --- a/test_outputs/cli/document_with_syntax_error_connlist_output.txt +++ b/test_outputs/cli/document_with_syntax_error_connlist_output.txt @@ -9,4 +9,4 @@ default/emailservice[Deployment] => default/checkoutservice[Deployment] : All Co default/emailservice[Deployment] => default/recommendationservice[Deployment] : All Connections default/recommendationservice[Deployment] => 0.0.0.0-255.255.255.255 : All Connections default/recommendationservice[Deployment] => default/checkoutservice[Deployment] : All Connections -default/recommendationservice[Deployment] => default/emailservice[Deployment] : All Connections \ No newline at end of file +default/recommendationservice[Deployment] => default/emailservice[Deployment] : All Connections diff --git a/test_outputs/cli/onlineboutique_connlist_output.txt b/test_outputs/cli/onlineboutique_connlist_output.txt index a6e0c030..f569d193 100644 --- a/test_outputs/cli/onlineboutique_connlist_output.txt +++ b/test_outputs/cli/onlineboutique_connlist_output.txt @@ -14,4 +14,4 @@ default/frontend-99684f7f8[ReplicaSet] => default/recommendationservice-5f8c4567 default/frontend-99684f7f8[ReplicaSet] => default/shippingservice-5bd985c46d[ReplicaSet] : TCP 50051 default/loadgenerator-555fbdc87d[ReplicaSet] => default/frontend-99684f7f8[ReplicaSet] : TCP 8080 default/recommendationservice-5f8c456796[ReplicaSet] => default/productcatalogservice-68765d49b6[ReplicaSet] : TCP 3550 -default/redis-cart-78746d49dc[ReplicaSet] => 0.0.0.0-255.255.255.255 : All Connections \ No newline at end of file +default/redis-cart-78746d49dc[ReplicaSet] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/cli/onlineboutique_workloads_focus_workload_default_emailservice_connlist_output.txt b/test_outputs/cli/onlineboutique_workloads_focus_workload_default_emailservice_connlist_output.txt index 47af46b8..dfe15150 100644 --- a/test_outputs/cli/onlineboutique_workloads_focus_workload_default_emailservice_connlist_output.txt +++ b/test_outputs/cli/onlineboutique_workloads_focus_workload_default_emailservice_connlist_output.txt @@ -1 +1 @@ -default/checkoutservice[Deployment] => default/emailservice[Deployment] : TCP 8080 \ No newline at end of file +default/checkoutservice[Deployment] => default/emailservice[Deployment] : TCP 8080 diff --git a/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt b/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt index 47af46b8..dfe15150 100644 --- a/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt +++ b/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt @@ -1 +1 @@ -default/checkoutservice[Deployment] => default/emailservice[Deployment] : TCP 8080 \ No newline at end of file +default/checkoutservice[Deployment] => default/emailservice[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_asset-cache_connlist_output.txt b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_asset-cache_connlist_output.txt index 5f06bc11..4d7b7df5 100644 --- a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_asset-cache_connlist_output.txt +++ b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_asset-cache_connlist_output.txt @@ -1 +1 @@ -{ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 \ No newline at end of file +{ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_backend_recommendation_connlist_output.txt b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_backend_recommendation_connlist_output.txt index a4b06e97..5551cbce 100644 --- a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_backend_recommendation_connlist_output.txt +++ b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_backend_recommendation_connlist_output.txt @@ -1,4 +1,4 @@ backend/checkout[Deployment] => backend/recommendation[Deployment] : TCP 8080 backend/recommendation[Deployment] => backend/catalog[Deployment] : TCP 8080 backend/reports[Deployment] => backend/recommendation[Deployment] : TCP 8080 -frontend/webapp[Deployment] => backend/recommendation[Deployment] : TCP 8080 \ No newline at end of file +frontend/webapp[Deployment] => backend/recommendation[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_frontend_asset-cache_connlist_output.txt b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_frontend_asset-cache_connlist_output.txt index 5f06bc11..4d7b7df5 100644 --- a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_frontend_asset-cache_connlist_output.txt +++ b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_frontend_asset-cache_connlist_output.txt @@ -1 +1 @@ -{ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 \ No newline at end of file +{ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_ingress-controller_connlist_output.txt b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_ingress-controller_connlist_output.txt index 561b44bf..f200deb2 100644 --- a/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_ingress-controller_connlist_output.txt +++ b/test_outputs/connlist/acs-security-demos-added-workloads_focus_workload_ingress-controller_connlist_output.txt @@ -1,4 +1,4 @@ {ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 {ingress-controller} => frontend/blog[Deployment] : TCP 8080 {ingress-controller} => frontend/webapp[Deployment] : TCP 8080 -{ingress-controller} => zeroday/zeroday[Deployment] : TCP 8080 \ No newline at end of file +{ingress-controller} => zeroday/zeroday[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs-security-demos-with-netpol-list_connlist_output.txt b/test_outputs/connlist/acs-security-demos-with-netpol-list_connlist_output.txt index ab2be258..266599fe 100644 --- a/test_outputs/connlist/acs-security-demos-with-netpol-list_connlist_output.txt +++ b/test_outputs/connlist/acs-security-demos-with-netpol-list_connlist_output.txt @@ -11,4 +11,4 @@ frontend/webapp[Deployment] => backend/shipping[Deployment] : TCP 8080 payments/gateway[Deployment] => payments/mastercard-processor[Deployment] : TCP 8080 payments/gateway[Deployment] => payments/visa-processor[Deployment] : TCP 8080 {ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 -{ingress-controller} => frontend/webapp[Deployment] : TCP 8080 \ No newline at end of file +{ingress-controller} => frontend/webapp[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs-security-demos_connlist_output.txt b/test_outputs/connlist/acs-security-demos_connlist_output.txt index ab2be258..266599fe 100644 --- a/test_outputs/connlist/acs-security-demos_connlist_output.txt +++ b/test_outputs/connlist/acs-security-demos_connlist_output.txt @@ -11,4 +11,4 @@ frontend/webapp[Deployment] => backend/shipping[Deployment] : TCP 8080 payments/gateway[Deployment] => payments/mastercard-processor[Deployment] : TCP 8080 payments/gateway[Deployment] => payments/visa-processor[Deployment] : TCP 8080 {ingress-controller} => frontend/asset-cache[Deployment] : TCP 8080 -{ingress-controller} => frontend/webapp[Deployment] : TCP 8080 \ No newline at end of file +{ingress-controller} => frontend/webapp[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/acs_security_frontend_demos_connlist_output.txt b/test_outputs/connlist/acs_security_frontend_demos_connlist_output.txt index e69de29b..8b137891 100644 --- a/test_outputs/connlist/acs_security_frontend_demos_connlist_output.txt +++ b/test_outputs/connlist/acs_security_frontend_demos_connlist_output.txt @@ -0,0 +1 @@ + diff --git a/test_outputs/connlist/core_pods_without_host_ip_connlist_output.txt b/test_outputs/connlist/core_pods_without_host_ip_connlist_output.txt index 0d01ccc8..6018382c 100644 --- a/test_outputs/connlist/core_pods_without_host_ip_connlist_output.txt +++ b/test_outputs/connlist/core_pods_without_host_ip_connlist_output.txt @@ -459,4 +459,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.txt b/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.txt index 4b6995fe..ebbcfab8 100644 --- a/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.txt +++ b/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.txt @@ -12,4 +12,4 @@ routeworld/route-world[Deployment] => helloworld/hello-world[Deployment] : All C routeworld/route-world[Deployment] => ingressworld/ingress-world[Deployment] : All Connections {ingress-controller} => helloworld/hello-world[Deployment] : TCP 8000 {ingress-controller} => ingressworld/ingress-world[Deployment] : TCP 8090 -{ingress-controller} => routeworld/route-world[Deployment] : TCP 8060 \ No newline at end of file +{ingress-controller} => routeworld/route-world[Deployment] : TCP 8060 diff --git a/test_outputs/connlist/exposure_test_pod_exposed_only_to_representative_peers_connlist_output.txt b/test_outputs/connlist/exposure_test_pod_exposed_only_to_representative_peers_connlist_output.txt index 9f5933e5..b8d36096 100644 --- a/test_outputs/connlist/exposure_test_pod_exposed_only_to_representative_peers_connlist_output.txt +++ b/test_outputs/connlist/exposure_test_pod_exposed_only_to_representative_peers_connlist_output.txt @@ -1,2 +1,2 @@ 0.0.0.0-255.255.255.255 => hello-world/workload-a[Deployment] : All Connections -hello-world/workload-a[Deployment] => 0.0.0.0-255.255.255.255 : All Connections \ No newline at end of file +hello-world/workload-a[Deployment] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/ipblockstest_2_connlist_output.txt b/test_outputs/connlist/ipblockstest_2_connlist_output.txt index 66d59e07..86e4b2ee 100644 --- a/test_outputs/connlist/ipblockstest_2_connlist_output.txt +++ b/test_outputs/connlist/ipblockstest_2_connlist_output.txt @@ -599,4 +599,4 @@ kube-system/vpn-858f6d9777[ReplicaSet] => kube-system-dummy-to-ignore/public-cre kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/calico-node[DaemonSet] : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/heapster-7df8cb8c66[ReplicaSet] : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-keepalived-watcher-for-demo[DaemonSet] : All Connections -kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-kube-fluentd[DaemonSet] : All Connections \ No newline at end of file +kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-kube-fluentd[DaemonSet] : All Connections diff --git a/test_outputs/connlist/ipblockstest_3_connlist_output.txt b/test_outputs/connlist/ipblockstest_3_connlist_output.txt index 66d59e07..86e4b2ee 100644 --- a/test_outputs/connlist/ipblockstest_3_connlist_output.txt +++ b/test_outputs/connlist/ipblockstest_3_connlist_output.txt @@ -599,4 +599,4 @@ kube-system/vpn-858f6d9777[ReplicaSet] => kube-system-dummy-to-ignore/public-cre kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/calico-node[DaemonSet] : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/heapster-7df8cb8c66[ReplicaSet] : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-keepalived-watcher-for-demo[DaemonSet] : All Connections -kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-kube-fluentd[DaemonSet] : All Connections \ No newline at end of file +kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-kube-fluentd[DaemonSet] : All Connections diff --git a/test_outputs/connlist/ipblockstest_4_connlist_output.txt b/test_outputs/connlist/ipblockstest_4_connlist_output.txt index 5e144b5a..c5e187c3 100644 --- a/test_outputs/connlist/ipblockstest_4_connlist_output.txt +++ b/test_outputs/connlist/ipblockstest_4_connlist_output.txt @@ -51990,4 +51990,4 @@ kube-system/vpn-858f6d9777[ReplicaSet] => 95.0.0.0-95.0.0.255 : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => 96.0.0.0-96.0.0.255 : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => 97.0.0.0-97.0.0.255 : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => 98.0.0.0-98.0.0.255 : All Connections -kube-system/vpn-858f6d9777[ReplicaSet] => 99.0.0.0-99.0.0.255 : All Connections \ No newline at end of file +kube-system/vpn-858f6d9777[ReplicaSet] => 99.0.0.0-99.0.0.255 : All Connections diff --git a/test_outputs/connlist/ipblockstest_connlist_output.txt b/test_outputs/connlist/ipblockstest_connlist_output.txt index e8e1482f..f9f16e7e 100644 --- a/test_outputs/connlist/ipblockstest_connlist_output.txt +++ b/test_outputs/connlist/ipblockstest_connlist_output.txt @@ -599,4 +599,4 @@ kube-system/vpn-858f6d9777[ReplicaSet] => kube-system-dummy-to-ignore/public-cre kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/calico-node[DaemonSet] : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/heapster-7df8cb8c66[ReplicaSet] : All Connections kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-keepalived-watcher-for-demo[DaemonSet] : All Connections -kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-kube-fluentd[DaemonSet] : All Connections \ No newline at end of file +kube-system/vpn-858f6d9777[ReplicaSet] => kube-system/ibm-kube-fluentd[DaemonSet] : All Connections diff --git a/test_outputs/connlist/k8s_ingress_test_connlist_output.txt b/test_outputs/connlist/k8s_ingress_test_connlist_output.txt index f67a30f5..864a1d9f 100644 --- a/test_outputs/connlist/k8s_ingress_test_connlist_output.txt +++ b/test_outputs/connlist/k8s_ingress_test_connlist_output.txt @@ -40,4 +40,4 @@ default/reviews-v3-84779c7bbc[ReplicaSet] => default/productpage-v1-6b746f74dc[R default/reviews-v3-84779c7bbc[ReplicaSet] => default/ratings-v1-b6994bb9[ReplicaSet] : All Connections default/reviews-v3-84779c7bbc[ReplicaSet] => default/reviews-v1-545db77b95[ReplicaSet] : All Connections default/reviews-v3-84779c7bbc[ReplicaSet] => default/reviews-v2-7bf8c9648f[ReplicaSet] : All Connections -{ingress-controller} => default/details-v1-79f774bdb9[ReplicaSet] : TCP 9080 \ No newline at end of file +{ingress-controller} => default/details-v1-79f774bdb9[ReplicaSet] : TCP 9080 diff --git a/test_outputs/connlist/k8s_ingress_test_focus_workload_details-v1-79f774bdb9_connlist_output.txt b/test_outputs/connlist/k8s_ingress_test_focus_workload_details-v1-79f774bdb9_connlist_output.txt index 66341d5a..6c3a8295 100644 --- a/test_outputs/connlist/k8s_ingress_test_focus_workload_details-v1-79f774bdb9_connlist_output.txt +++ b/test_outputs/connlist/k8s_ingress_test_focus_workload_details-v1-79f774bdb9_connlist_output.txt @@ -10,4 +10,4 @@ default/ratings-v1-b6994bb9[ReplicaSet] => default/details-v1-79f774bdb9[Replica default/reviews-v1-545db77b95[ReplicaSet] => default/details-v1-79f774bdb9[ReplicaSet] : All Connections default/reviews-v2-7bf8c9648f[ReplicaSet] => default/details-v1-79f774bdb9[ReplicaSet] : All Connections default/reviews-v3-84779c7bbc[ReplicaSet] => default/details-v1-79f774bdb9[ReplicaSet] : All Connections -{ingress-controller} => default/details-v1-79f774bdb9[ReplicaSet] : TCP 9080 \ No newline at end of file +{ingress-controller} => default/details-v1-79f774bdb9[ReplicaSet] : TCP 9080 diff --git a/test_outputs/connlist/minikube_resources_connlist_output.txt b/test_outputs/connlist/minikube_resources_connlist_output.txt index b4897d36..58d503a9 100644 --- a/test_outputs/connlist/minikube_resources_connlist_output.txt +++ b/test_outputs/connlist/minikube_resources_connlist_output.txt @@ -153,4 +153,4 @@ kube-system/storage-provisioner[Pod] => kube-system/etcd-minikube[Pod] : All Con kube-system/storage-provisioner[Pod] => kube-system/kube-apiserver-minikube[Pod] : All Connections kube-system/storage-provisioner[Pod] => kube-system/kube-controller-manager-minikube[Pod] : All Connections kube-system/storage-provisioner[Pod] => kube-system/kube-proxy[DaemonSet] : All Connections -kube-system/storage-provisioner[Pod] => kube-system/kube-scheduler-minikube[Pod] : All Connections \ No newline at end of file +kube-system/storage-provisioner[Pod] => kube-system/kube-scheduler-minikube[Pod] : All Connections diff --git a/test_outputs/connlist/minimal_test_in_ns_connlist_output.txt b/test_outputs/connlist/minimal_test_in_ns_connlist_output.txt index 384a1096..e0a15c3d 100644 --- a/test_outputs/connlist/minimal_test_in_ns_connlist_output.txt +++ b/test_outputs/connlist/minimal_test_in_ns_connlist_output.txt @@ -2,4 +2,4 @@ hello-world/workload-a[Deployment] => 0.0.0.0-255.255.255.255 : All Connections hello-world/workload-a[Deployment] => hello-world/workload-b[Deployment] : All Connections hello-world/workload-b[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -hello-world/workload-b[Deployment] => hello-world/workload-a[Deployment] : TCP 8050 \ No newline at end of file +hello-world/workload-b[Deployment] => hello-world/workload-a[Deployment] : TCP 8050 diff --git a/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.txt b/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.txt index a445a311..3ae1f275 100644 --- a/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.txt +++ b/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.txt @@ -1,3 +1,3 @@ 0.0.0.0-255.255.255.255 => ingressworld/ingress-world-multiple-ports[Deployment] : All Connections ingressworld/ingress-world-multiple-ports[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -{ingress-controller} => ingressworld/ingress-world-multiple-ports[Deployment] : TCP 8050,8090 \ No newline at end of file +{ingress-controller} => ingressworld/ingress-world-multiple-ports[Deployment] : TCP 8050,8090 diff --git a/test_outputs/connlist/multiple_topology_resources_1_connlist_output.txt b/test_outputs/connlist/multiple_topology_resources_1_connlist_output.txt index d78b00f6..067a8480 100644 --- a/test_outputs/connlist/multiple_topology_resources_1_connlist_output.txt +++ b/test_outputs/connlist/multiple_topology_resources_1_connlist_output.txt @@ -552,4 +552,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/multiple_topology_resources_2_connlist_output.txt b/test_outputs/connlist/multiple_topology_resources_2_connlist_output.txt index bc08a2c1..b88080d6 100644 --- a/test_outputs/connlist/multiple_topology_resources_2_connlist_output.txt +++ b/test_outputs/connlist/multiple_topology_resources_2_connlist_output.txt @@ -552,4 +552,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/multiple_topology_resources_3_connlist_output.txt b/test_outputs/connlist/multiple_topology_resources_3_connlist_output.txt index 9380b84f..b92cccbd 100644 --- a/test_outputs/connlist/multiple_topology_resources_3_connlist_output.txt +++ b/test_outputs/connlist/multiple_topology_resources_3_connlist_output.txt @@ -597,4 +597,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/multiple_topology_resources_4_connlist_output.txt b/test_outputs/connlist/multiple_topology_resources_4_connlist_output.txt index 9380b84f..b92cccbd 100644 --- a/test_outputs/connlist/multiple_topology_resources_4_connlist_output.txt +++ b/test_outputs/connlist/multiple_topology_resources_4_connlist_output.txt @@ -597,4 +597,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.txt b/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.txt index 2691cdd2..ef8a4d07 100644 --- a/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.txt +++ b/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.txt @@ -1,3 +1,3 @@ 0.0.0.0-255.255.255.255 => default/frontend[Deployment] : TCP 8080 default/frontend[Deployment] => 0.0.0.0-255.255.255.255 : UDP 53 -default/frontend[Deployment] => default/backend[Deployment] : TCP 9090 \ No newline at end of file +default/frontend[Deployment] => default/backend[Deployment] : TCP 9090 diff --git a/test_outputs/connlist/netpol_named_port_test_2_connlist_output.txt b/test_outputs/connlist/netpol_named_port_test_2_connlist_output.txt index 3cebb7b3..3e5672a6 100644 --- a/test_outputs/connlist/netpol_named_port_test_2_connlist_output.txt +++ b/test_outputs/connlist/netpol_named_port_test_2_connlist_output.txt @@ -1,3 +1,3 @@ 0.0.0.0-255.255.255.255 => helloworld/pod-a[Deployment] : All Connections helloworld/pod-a[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -helloworld/pod-a[Deployment] => helloworld/new-pod[Deployment] : SCTP 8956,9090 \ No newline at end of file +helloworld/pod-a[Deployment] => helloworld/new-pod[Deployment] : SCTP 8956,9090 diff --git a/test_outputs/connlist/netpol_named_port_test_connlist_output.txt b/test_outputs/connlist/netpol_named_port_test_connlist_output.txt index 3757be36..d85d9dca 100644 --- a/test_outputs/connlist/netpol_named_port_test_connlist_output.txt +++ b/test_outputs/connlist/netpol_named_port_test_connlist_output.txt @@ -1,2 +1,2 @@ 0.0.0.0-255.255.255.255 => helloworld/new-pod[Deployment] : All Connections -helloworld/new-pod[Deployment] => 0.0.0.0-255.255.255.255 : All Connections \ No newline at end of file +helloworld/new-pod[Deployment] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/new_online_boutique_connlist_output.txt b/test_outputs/connlist/new_online_boutique_connlist_output.txt index 81d88ea3..ee968371 100644 --- a/test_outputs/connlist/new_online_boutique_connlist_output.txt +++ b/test_outputs/connlist/new_online_boutique_connlist_output.txt @@ -34,4 +34,4 @@ default/recommendationservice[Deployment] => 0.0.0.0-255.255.255.255 : All Conne default/recommendationservice[Deployment] => default/loadgenerator[Deployment] : All Connections default/recommendationservice[Deployment] => default/productcatalogservice[Deployment] : TCP 3550 default/shippingservice[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -default/shippingservice[Deployment] => default/loadgenerator[Deployment] : All Connections \ No newline at end of file +default/shippingservice[Deployment] => default/loadgenerator[Deployment] : All Connections diff --git a/test_outputs/connlist/new_online_boutique_synthesis_connlist_output.txt b/test_outputs/connlist/new_online_boutique_synthesis_connlist_output.txt index 7ff81aa0..fa103d42 100644 --- a/test_outputs/connlist/new_online_boutique_synthesis_connlist_output.txt +++ b/test_outputs/connlist/new_online_boutique_synthesis_connlist_output.txt @@ -12,4 +12,4 @@ default/frontend[Deployment] => default/productcatalogservice[Deployment] : TCP default/frontend[Deployment] => default/recommendationservice[Deployment] : TCP 8080 default/frontend[Deployment] => default/shippingservice[Deployment] : TCP 50051 default/loadgenerator[Deployment] => default/frontend[Deployment] : TCP 8080 -default/recommendationservice[Deployment] => default/productcatalogservice[Deployment] : TCP 3550 \ No newline at end of file +default/recommendationservice[Deployment] => default/productcatalogservice[Deployment] : TCP 3550 diff --git a/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.txt b/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.txt index 4e3cbdc5..0cc08f03 100644 --- a/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.txt +++ b/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.txt @@ -1,3 +1,3 @@ 0.0.0.0-255.255.255.255 => ingressworld/ingress-world-multiple-ports[Deployment] : All Connections ingressworld/ingress-world-multiple-ports[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -{ingress-controller} => ingressworld/ingress-world-multiple-ports[Deployment] : TCP 8000,8090 \ No newline at end of file +{ingress-controller} => ingressworld/ingress-world-multiple-ports[Deployment] : TCP 8000,8090 diff --git a/test_outputs/connlist/one_ingress_multiple_services_connlist_output.txt b/test_outputs/connlist/one_ingress_multiple_services_connlist_output.txt index 4e3cbdc5..0cc08f03 100644 --- a/test_outputs/connlist/one_ingress_multiple_services_connlist_output.txt +++ b/test_outputs/connlist/one_ingress_multiple_services_connlist_output.txt @@ -1,3 +1,3 @@ 0.0.0.0-255.255.255.255 => ingressworld/ingress-world-multiple-ports[Deployment] : All Connections ingressworld/ingress-world-multiple-ports[Deployment] => 0.0.0.0-255.255.255.255 : All Connections -{ingress-controller} => ingressworld/ingress-world-multiple-ports[Deployment] : TCP 8000,8090 \ No newline at end of file +{ingress-controller} => ingressworld/ingress-world-multiple-ports[Deployment] : TCP 8000,8090 diff --git a/test_outputs/connlist/online_boutique_workloads_no_ns_connlist_output.txt b/test_outputs/connlist/online_boutique_workloads_no_ns_connlist_output.txt index 85516d56..f8cfaf48 100644 --- a/test_outputs/connlist/online_boutique_workloads_no_ns_connlist_output.txt +++ b/test_outputs/connlist/online_boutique_workloads_no_ns_connlist_output.txt @@ -14,4 +14,4 @@ default/frontend[Deployment] => default/recommendationservice[Deployment] : TCP default/frontend[Deployment] => default/shippingservice[Deployment] : TCP 50051 default/loadgenerator[Deployment] => default/frontend[Deployment] : TCP 8080 default/recommendationservice[Deployment] => default/productcatalogservice[Deployment] : TCP 3550 -default/redis-cart[Deployment] => 0.0.0.0-255.255.255.255 : All Connections \ No newline at end of file +default/redis-cart[Deployment] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/onlineboutique_connlist_output.txt b/test_outputs/connlist/onlineboutique_connlist_output.txt index a6e0c030..f569d193 100644 --- a/test_outputs/connlist/onlineboutique_connlist_output.txt +++ b/test_outputs/connlist/onlineboutique_connlist_output.txt @@ -14,4 +14,4 @@ default/frontend-99684f7f8[ReplicaSet] => default/recommendationservice-5f8c4567 default/frontend-99684f7f8[ReplicaSet] => default/shippingservice-5bd985c46d[ReplicaSet] : TCP 50051 default/loadgenerator-555fbdc87d[ReplicaSet] => default/frontend-99684f7f8[ReplicaSet] : TCP 8080 default/recommendationservice-5f8c456796[ReplicaSet] => default/productcatalogservice-68765d49b6[ReplicaSet] : TCP 3550 -default/redis-cart-78746d49dc[ReplicaSet] => 0.0.0.0-255.255.255.255 : All Connections \ No newline at end of file +default/redis-cart-78746d49dc[ReplicaSet] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/onlineboutique_workloads_connlist_output.txt b/test_outputs/connlist/onlineboutique_workloads_connlist_output.txt index 85516d56..f8cfaf48 100644 --- a/test_outputs/connlist/onlineboutique_workloads_connlist_output.txt +++ b/test_outputs/connlist/onlineboutique_workloads_connlist_output.txt @@ -14,4 +14,4 @@ default/frontend[Deployment] => default/recommendationservice[Deployment] : TCP default/frontend[Deployment] => default/shippingservice[Deployment] : TCP 50051 default/loadgenerator[Deployment] => default/frontend[Deployment] : TCP 8080 default/recommendationservice[Deployment] => default/productcatalogservice[Deployment] : TCP 3550 -default/redis-cart[Deployment] => 0.0.0.0-255.255.255.255 : All Connections \ No newline at end of file +default/redis-cart[Deployment] => 0.0.0.0-255.255.255.255 : All Connections diff --git a/test_outputs/connlist/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt b/test_outputs/connlist/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt index 47af46b8..dfe15150 100644 --- a/test_outputs/connlist/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt +++ b/test_outputs/connlist/onlineboutique_workloads_focus_workload_emailservice_connlist_output.txt @@ -1 +1 @@ -default/checkoutservice[Deployment] => default/emailservice[Deployment] : TCP 8080 \ No newline at end of file +default/checkoutservice[Deployment] => default/emailservice[Deployment] : TCP 8080 diff --git a/test_outputs/connlist/semanticDiff-different-topologies-policy-a-with-ipblock_connlist_output.txt b/test_outputs/connlist/semanticDiff-different-topologies-policy-a-with-ipblock_connlist_output.txt index 68f0dae3..969059cb 100644 --- a/test_outputs/connlist/semanticDiff-different-topologies-policy-a-with-ipblock_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-different-topologies-policy-a-with-ipblock_connlist_output.txt @@ -61,4 +61,4 @@ default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => 10.11.0.0-10.255.255.255 : default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => 11.0.0.0-255.255.255.255 : All Connections default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-0[DaemonSet] : All Connections default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-2[DaemonSet] : All Connections -default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-3[DaemonSet] : All Connections \ No newline at end of file +default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-3[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-different-topologies-policy-a_connlist_output.txt b/test_outputs/connlist/semanticDiff-different-topologies-policy-a_connlist_output.txt index 63200efe..35205a1e 100644 --- a/test_outputs/connlist/semanticDiff-different-topologies-policy-a_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-different-topologies-policy-a_connlist_output.txt @@ -23,4 +23,4 @@ default/cog-agents-3[DaemonSet] => default/cog-local-analyzer-7d77fb55cc[Replica default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => 0.0.0.0-255.255.255.255 : All Connections default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-0[DaemonSet] : All Connections default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-2[DaemonSet] : All Connections -default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-3[DaemonSet] : All Connections \ No newline at end of file +default/cog-local-analyzer-7d77fb55cc[ReplicaSet] => default/cog-agents-3[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-different-topologies-policy-b-with-ipblock_connlist_output.txt b/test_outputs/connlist/semanticDiff-different-topologies-policy-b-with-ipblock_connlist_output.txt index d12753c5..af32c7a0 100644 --- a/test_outputs/connlist/semanticDiff-different-topologies-policy-b-with-ipblock_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-different-topologies-policy-b-with-ipblock_connlist_output.txt @@ -61,4 +61,4 @@ default/cog-agents-6[DaemonSet] => 10.12.0.0-10.255.255.255 : All Connections default/cog-agents-6[DaemonSet] => 11.0.0.0-255.255.255.255 : All Connections default/cog-agents-6[DaemonSet] => default/cog-agents-0[DaemonSet] : All Connections default/cog-agents-6[DaemonSet] => default/cog-agents-1[DaemonSet] : All Connections -default/cog-agents-6[DaemonSet] => default/cog-agents-5[DaemonSet] : All Connections \ No newline at end of file +default/cog-agents-6[DaemonSet] => default/cog-agents-5[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-different-topologies-policy-b_connlist_output.txt b/test_outputs/connlist/semanticDiff-different-topologies-policy-b_connlist_output.txt index e8ec9e40..ff40a502 100644 --- a/test_outputs/connlist/semanticDiff-different-topologies-policy-b_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-different-topologies-policy-b_connlist_output.txt @@ -23,4 +23,4 @@ default/cog-agents-5[DaemonSet] => default/cog-agents-6[DaemonSet] : All Connect default/cog-agents-6[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections default/cog-agents-6[DaemonSet] => default/cog-agents-0[DaemonSet] : All Connections default/cog-agents-6[DaemonSet] => default/cog-agents-1[DaemonSet] : All Connections -default/cog-agents-6[DaemonSet] => default/cog-agents-5[DaemonSet] : All Connections \ No newline at end of file +default/cog-agents-6[DaemonSet] => default/cog-agents-5[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-orig-topologies-no-policy_connlist_output.txt b/test_outputs/connlist/semanticDiff-orig-topologies-no-policy_connlist_output.txt index 0d01ccc8..6018382c 100644 --- a/test_outputs/connlist/semanticDiff-orig-topologies-no-policy_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-orig-topologies-no-policy_connlist_output.txt @@ -459,4 +459,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-orig-topologies-policy-a_connlist_output.txt b/test_outputs/connlist/semanticDiff-orig-topologies-policy-a_connlist_output.txt index 0d01ccc8..6018382c 100644 --- a/test_outputs/connlist/semanticDiff-orig-topologies-policy-a_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-orig-topologies-policy-a_connlist_output.txt @@ -459,4 +459,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-new1_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-new1_connlist_output.txt index 33a36d79..eed5ec9f 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-new1_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-new1_connlist_output.txt @@ -6,4 +6,4 @@ demo/cog-agents-account-command[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : All Connections demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-command[DaemonSet] : TCP 8080,9090,UDP 8080 -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-new1a_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-new1a_connlist_output.txt index 410f7ed6..2c3c6aa6 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-new1a_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-new1a_connlist_output.txt @@ -5,4 +5,4 @@ demo/cog-agents-account-command[DaemonSet] => demo/cog-agents-account-query[Daem demo/cog-agents-account-command[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : All Connections demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : UDP 8080 demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-new2_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-new2_connlist_output.txt index 44b1fe13..22573b37 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-new2_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-new2_connlist_output.txt @@ -7,4 +7,4 @@ demo/cog-agents-account-query[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connec demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : All Connections demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-command[DaemonSet] : TCP 8081-8082,UDP 9091 -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-new3_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-new3_connlist_output.txt index 9593b567..fb1fdedf 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-new3_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-new3_connlist_output.txt @@ -5,4 +5,4 @@ demo/cog-agents-account-command[DaemonSet] => demo/cog-agents-account-query[Daem demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : TCP 8080 demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-command[DaemonSet] : All Connections -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-old1_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-old1_connlist_output.txt index 8f157c24..04753523 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-old1_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-old1_connlist_output.txt @@ -6,4 +6,4 @@ demo/cog-agents-account-command[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : TCP 8080 demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-command[DaemonSet] : All Connections -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-old2_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-old2_connlist_output.txt index 104eb83a..624cc001 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-old2_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-old2_connlist_output.txt @@ -7,4 +7,4 @@ demo/cog-agents-account-query[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connec demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : All Connections demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-command[DaemonSet] : SCTP 7070,TCP 8080-8081,UDP 9090 -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/semanticDiff-same-topologies-old3_connlist_output.txt b/test_outputs/connlist/semanticDiff-same-topologies-old3_connlist_output.txt index 9593b567..fb1fdedf 100644 --- a/test_outputs/connlist/semanticDiff-same-topologies-old3_connlist_output.txt +++ b/test_outputs/connlist/semanticDiff-same-topologies-old3_connlist_output.txt @@ -5,4 +5,4 @@ demo/cog-agents-account-command[DaemonSet] => demo/cog-agents-account-query[Daem demo/cog-agents-account-query[DaemonSet] => demo/cog-agents-bank-ui[DaemonSet] : TCP 8080 demo/cog-agents-bank-ui[DaemonSet] => 0.0.0.0-255.255.255.255 : All Connections demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-command[DaemonSet] : All Connections -demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections \ No newline at end of file +demo/cog-agents-bank-ui[DaemonSet] => demo/cog-agents-account-query[DaemonSet] : All Connections diff --git a/test_outputs/connlist/test_with_named_ports_changed_netpol_2_connlist_output.txt b/test_outputs/connlist/test_with_named_ports_changed_netpol_2_connlist_output.txt index f6a311d9..aee2cfab 100644 --- a/test_outputs/connlist/test_with_named_ports_changed_netpol_2_connlist_output.txt +++ b/test_outputs/connlist/test_with_named_ports_changed_netpol_2_connlist_output.txt @@ -444,4 +444,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd-frontend[Daemon vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/test_with_named_ports_changed_netpol_connlist_output.txt b/test_outputs/connlist/test_with_named_ports_changed_netpol_connlist_output.txt index 73327c44..00da13da 100644 --- a/test_outputs/connlist/test_with_named_ports_changed_netpol_connlist_output.txt +++ b/test_outputs/connlist/test_with_named_ports_changed_netpol_connlist_output.txt @@ -375,4 +375,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/test_with_named_ports_connlist_output.txt b/test_outputs/connlist/test_with_named_ports_connlist_output.txt index 722cb7fa..64c193c1 100644 --- a/test_outputs/connlist/test_with_named_ports_connlist_output.txt +++ b/test_outputs/connlist/test_with_named_ports_connlist_output.txt @@ -375,4 +375,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/with_end_port_example_connlist_output.txt b/test_outputs/connlist/with_end_port_example_connlist_output.txt index 0d01ccc8..6018382c 100644 --- a/test_outputs/connlist/with_end_port_example_connlist_output.txt +++ b/test_outputs/connlist/with_end_port_example_connlist_output.txt @@ -459,4 +459,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/connlist/with_end_port_example_new_connlist_output.txt b/test_outputs/connlist/with_end_port_example_new_connlist_output.txt index 0d01ccc8..6018382c 100644 --- a/test_outputs/connlist/with_end_port_example_new_connlist_output.txt +++ b/test_outputs/connlist/with_end_port_example_new_connlist_output.txt @@ -459,4 +459,4 @@ vendor-system/foofoo-app[ReplicaSet] => kube-system/kube-fluentd[DaemonSet] : Al vendor-system/foofoo-app[ReplicaSet] => kube-system/storage-watcher-8494b4b8bb[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/tiller-deploy-5c45c9966b[ReplicaSet] : All Connections vendor-system/foofoo-app[ReplicaSet] => kube-system/vpn-858f6d9777[ReplicaSet] : All Connections -vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections \ No newline at end of file +vendor-system/foofoo-app[ReplicaSet] => vendor-system/barbar-app[ReplicaSet] : All Connections diff --git a/test_outputs/diff/TsetOutputWithArgNamesOption_diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt b/test_outputs/diff/TsetOutputWithArgNamesOption_diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt index 5b117069..2cf5d2da 100644 --- a/test_outputs/diff/TsetOutputWithArgNamesOption_diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt +++ b/test_outputs/diff/TsetOutputWithArgNamesOption_diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt @@ -6,4 +6,4 @@ diff-type: added, source: default/checkoutservice[Deployment], destination: defa diff-type: removed, source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], old: All Connections, new: No Connections diff-type: removed, source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], old: TCP 7000, new: No Connections diff-type: removed, source: default/frontend[Deployment], destination: default/adservice[Deployment], old: TCP 9555, new: No Connections -diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, old: All Connections, new: No Connections \ No newline at end of file +diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, old: All Connections, new: No Connections diff --git a/test_outputs/diff/diff_between_acs-security-demos-added-workloads_and_acs-security-demos.txt b/test_outputs/diff/diff_between_acs-security-demos-added-workloads_and_acs-security-demos.txt index acb9ae03..55869d7f 100644 --- a/test_outputs/diff/diff_between_acs-security-demos-added-workloads_and_acs-security-demos.txt +++ b/test_outputs/diff/diff_between_acs-security-demos-added-workloads_and_acs-security-demos.txt @@ -1,4 +1,4 @@ Connectivity diff: diff-type: added, source: payments/gateway[Deployment], destination: payments/visa-processor-v2[Deployment], ref1: No Connections, ref2: TCP 8080, workloads-diff-info: workload payments/visa-processor-v2[Deployment] added diff-type: added, source: {ingress-controller}, destination: frontend/blog[Deployment], ref1: No Connections, ref2: TCP 8080, workloads-diff-info: workload frontend/blog[Deployment] added -diff-type: added, source: {ingress-controller}, destination: zeroday/zeroday[Deployment], ref1: No Connections, ref2: TCP 8080, workloads-diff-info: workload zeroday/zeroday[Deployment] added \ No newline at end of file +diff-type: added, source: {ingress-controller}, destination: zeroday/zeroday[Deployment], ref1: No Connections, ref2: TCP 8080, workloads-diff-info: workload zeroday/zeroday[Deployment] added diff --git a/test_outputs/diff/diff_between_acs-security-demos-new_and_acs-security-demos.txt b/test_outputs/diff/diff_between_acs-security-demos-new_and_acs-security-demos.txt index 116389ea..f007262b 100644 --- a/test_outputs/diff/diff_between_acs-security-demos-new_and_acs-security-demos.txt +++ b/test_outputs/diff/diff_between_acs-security-demos-new_and_acs-security-demos.txt @@ -10,4 +10,4 @@ diff-type: added, source: frontend/webapp[Deployment], destination: external/uni diff-type: added, source: payments/gateway[Deployment], destination: external/unicorn[Deployment], ref1: No Connections, ref2: UDP 5353, workloads-diff-info: workload external/unicorn[Deployment] added diff-type: removed, source: frontend/webapp[Deployment], destination: backend/shipping[Deployment], ref1: TCP 8080, ref2: No Connections diff-type: removed, source: payments/gateway[Deployment], destination: payments/mastercard-processor[Deployment], ref1: TCP 8080, ref2: No Connections, workloads-diff-info: workload payments/mastercard-processor[Deployment] removed -diff-type: removed, source: {ingress-controller}, destination: frontend/asset-cache[Deployment], ref1: TCP 8080, ref2: No Connections \ No newline at end of file +diff-type: removed, source: {ingress-controller}, destination: frontend/asset-cache[Deployment], ref1: TCP 8080, ref2: No Connections diff --git a/test_outputs/diff/diff_between_acs-security-demos-no-routes_and_acs-security-demos.txt b/test_outputs/diff/diff_between_acs-security-demos-no-routes_and_acs-security-demos.txt index 4356b2db..e01765f8 100644 --- a/test_outputs/diff/diff_between_acs-security-demos-no-routes_and_acs-security-demos.txt +++ b/test_outputs/diff/diff_between_acs-security-demos-no-routes_and_acs-security-demos.txt @@ -1,3 +1,3 @@ Connectivity diff: diff-type: removed, source: {ingress-controller}, destination: frontend/asset-cache[Deployment], ref1: TCP 8080, ref2: No Connections -diff-type: removed, source: {ingress-controller}, destination: frontend/webapp[Deployment], ref1: TCP 8080, ref2: No Connections \ No newline at end of file +diff-type: removed, source: {ingress-controller}, destination: frontend/webapp[Deployment], ref1: TCP 8080, ref2: No Connections diff --git a/test_outputs/diff/diff_between_deny_all_to_from_a_deployment_changed_netpol_and_deny_all_to_from_a_deployment.txt b/test_outputs/diff/diff_between_deny_all_to_from_a_deployment_changed_netpol_and_deny_all_to_from_a_deployment.txt index 859cdc36..5b061da1 100644 --- a/test_outputs/diff/diff_between_deny_all_to_from_a_deployment_changed_netpol_and_deny_all_to_from_a_deployment.txt +++ b/test_outputs/diff/diff_between_deny_all_to_from_a_deployment_changed_netpol_and_deny_all_to_from_a_deployment.txt @@ -1,2 +1,2 @@ Connectivity diff: -diff-type: added, source: default/deployment2[Deployment], destination: default/deployment1[Deployment], ref1: No Connections, ref2: All Connections \ No newline at end of file +diff-type: added, source: default/deployment2[Deployment], destination: default/deployment1[Deployment], ref1: No Connections, ref2: All Connections diff --git a/test_outputs/diff/diff_between_ipblockstest_2_and_ipblockstest.txt b/test_outputs/diff/diff_between_ipblockstest_2_and_ipblockstest.txt index 3ad887bf..25fb3fc7 100644 --- a/test_outputs/diff/diff_between_ipblockstest_2_and_ipblockstest.txt +++ b/test_outputs/diff/diff_between_ipblockstest_2_and_ipblockstest.txt @@ -26,4 +26,4 @@ diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/ibm-kube-fluentd-with-tier[DaemonSet], ref1: UDP 53, ref2: TCP 53 diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/ibm-storage-watcher-8494b4b8bb[ReplicaSet], ref1: UDP 53, ref2: TCP 53 diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/tiller-deploy-5c45c9966b[ReplicaSet], ref1: UDP 53, ref2: TCP 53 -diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/vpn-858f6d9777[ReplicaSet], ref1: UDP 53, ref2: TCP 53 \ No newline at end of file +diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/vpn-858f6d9777[ReplicaSet], ref1: UDP 53, ref2: TCP 53 diff --git a/test_outputs/diff/diff_between_ipblockstest_3_and_ipblockstest.txt b/test_outputs/diff/diff_between_ipblockstest_3_and_ipblockstest.txt index 3ad887bf..25fb3fc7 100644 --- a/test_outputs/diff/diff_between_ipblockstest_3_and_ipblockstest.txt +++ b/test_outputs/diff/diff_between_ipblockstest_3_and_ipblockstest.txt @@ -26,4 +26,4 @@ diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/ibm-kube-fluentd-with-tier[DaemonSet], ref1: UDP 53, ref2: TCP 53 diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/ibm-storage-watcher-8494b4b8bb[ReplicaSet], ref1: UDP 53, ref2: TCP 53 diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/tiller-deploy-5c45c9966b[ReplicaSet], ref1: UDP 53, ref2: TCP 53 -diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/vpn-858f6d9777[ReplicaSet], ref1: UDP 53, ref2: TCP 53 \ No newline at end of file +diff-type: changed, source: 172.31.0.0-255.255.255.255, destination: kube-system/vpn-858f6d9777[ReplicaSet], ref1: UDP 53, ref2: TCP 53 diff --git a/test_outputs/diff/diff_between_ipblockstest_4_and_ipblockstest.txt b/test_outputs/diff/diff_between_ipblockstest_4_and_ipblockstest.txt index c348caa2..a1fe43bd 100644 --- a/test_outputs/diff/diff_between_ipblockstest_4_and_ipblockstest.txt +++ b/test_outputs/diff/diff_between_ipblockstest_4_and_ipblockstest.txt @@ -4723,4 +4723,4 @@ diff-type: removed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: diff-type: removed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: kube-system/calico-node[DaemonSet], ref1: All Connections, ref2: No Connections diff-type: removed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: kube-system/heapster-7df8cb8c66[ReplicaSet], ref1: All Connections, ref2: No Connections diff-type: removed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: kube-system/ibm-keepalived-watcher-for-demo[DaemonSet], ref1: All Connections, ref2: No Connections -diff-type: removed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: kube-system/ibm-kube-fluentd[DaemonSet], ref1: All Connections, ref2: No Connections \ No newline at end of file +diff-type: removed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: kube-system/ibm-kube-fluentd[DaemonSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_k8s_ingress_test_new_and_k8s_ingress_test.txt b/test_outputs/diff/diff_between_k8s_ingress_test_new_and_k8s_ingress_test.txt index 18d1573a..f716ddb6 100644 --- a/test_outputs/diff/diff_between_k8s_ingress_test_new_and_k8s_ingress_test.txt +++ b/test_outputs/diff/diff_between_k8s_ingress_test_new_and_k8s_ingress_test.txt @@ -44,4 +44,4 @@ diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destinati diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], ref1: All Connections, ref2: No Connections diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], ref1: All Connections, ref2: No Connections diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], ref1: All Connections, ref2: No Connections -diff-type: added, source: {ingress-controller}, destination: default/unicorn[Deployment], ref1: No Connections, ref2: TCP 8080, workloads-diff-info: workload default/unicorn[Deployment] added \ No newline at end of file +diff-type: added, source: {ingress-controller}, destination: default/unicorn[Deployment], ref1: No Connections, ref2: TCP 8080, workloads-diff-info: workload default/unicorn[Deployment] added diff --git a/test_outputs/diff/diff_between_multiple_ingress_objects_with_different_ports_new_and_multiple_ingress_objects_with_different_ports.txt b/test_outputs/diff/diff_between_multiple_ingress_objects_with_different_ports_new_and_multiple_ingress_objects_with_different_ports.txt index 23433a6d..8ac3c295 100644 --- a/test_outputs/diff/diff_between_multiple_ingress_objects_with_different_ports_new_and_multiple_ingress_objects_with_different_ports.txt +++ b/test_outputs/diff/diff_between_multiple_ingress_objects_with_different_ports_new_and_multiple_ingress_objects_with_different_ports.txt @@ -1,2 +1,2 @@ Connectivity diff: -diff-type: changed, source: {ingress-controller}, destination: ingressworld/ingress-world-multiple-ports[Deployment], ref1: TCP 8050,8090, ref2: TCP 8000,8090 \ No newline at end of file +diff-type: changed, source: {ingress-controller}, destination: ingressworld/ingress-world-multiple-ports[Deployment], ref1: TCP 8050,8090, ref2: TCP 8000,8090 diff --git a/test_outputs/diff/diff_between_multiple_topology_resources_2_and_multiple_topology_resources_1.txt b/test_outputs/diff/diff_between_multiple_topology_resources_2_and_multiple_topology_resources_1.txt index 90a4ec6d..29d9b4f7 100644 --- a/test_outputs/diff/diff_between_multiple_topology_resources_2_and_multiple_topology_resources_1.txt +++ b/test_outputs/diff/diff_between_multiple_topology_resources_2_and_multiple_topology_resources_1.txt @@ -1,3 +1,3 @@ Connectivity diff: diff-type: changed, source: demo/cog-agents-account-query[DaemonSet], destination: demo/cog-agents-bank-ui[DaemonSet], ref1: TCP 8080, ref2: All Connections -diff-type: changed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: TCP 8080,9090,UDP 8080 \ No newline at end of file +diff-type: changed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: TCP 8080,9090,UDP 8080 diff --git a/test_outputs/diff/diff_between_netpol-diff-example-minimal_and_netpol-analysis-example-minimal.txt b/test_outputs/diff/diff_between_netpol-diff-example-minimal_and_netpol-analysis-example-minimal.txt index 230f0593..1478d117 100644 --- a/test_outputs/diff/diff_between_netpol-diff-example-minimal_and_netpol-analysis-example-minimal.txt +++ b/test_outputs/diff/diff_between_netpol-diff-example-minimal_and_netpol-analysis-example-minimal.txt @@ -1,3 +1,3 @@ Connectivity diff: diff-type: changed, source: default/frontend[Deployment], destination: default/backend[Deployment], ref1: TCP 9090, ref2: TCP 9090,UDP 53 -diff-type: added, source: 0.0.0.0-255.255.255.255, destination: default/backend[Deployment], ref1: No Connections, ref2: TCP 9090 \ No newline at end of file +diff-type: added, source: 0.0.0.0-255.255.255.255, destination: default/backend[Deployment], ref1: No Connections, ref2: TCP 9090 diff --git a/test_outputs/diff/diff_between_new_online_boutique_synthesis_and_new_online_boutique.txt b/test_outputs/diff/diff_between_new_online_boutique_synthesis_and_new_online_boutique.txt index a075f2bb..e354dece 100644 --- a/test_outputs/diff/diff_between_new_online_boutique_synthesis_and_new_online_boutique.txt +++ b/test_outputs/diff/diff_between_new_online_boutique_synthesis_and_new_online_boutique.txt @@ -20,4 +20,4 @@ diff-type: removed, source: default/productcatalogservice[Deployment], destinati diff-type: removed, source: default/recommendationservice[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections diff-type: removed, source: default/recommendationservice[Deployment], destination: default/loadgenerator[Deployment], ref1: All Connections, ref2: No Connections diff-type: removed, source: default/shippingservice[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections -diff-type: removed, source: default/shippingservice[Deployment], destination: default/loadgenerator[Deployment], ref1: All Connections, ref2: No Connections \ No newline at end of file +diff-type: removed, source: default/shippingservice[Deployment], destination: default/loadgenerator[Deployment], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt b/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt index a27ec8d5..2e474be9 100644 --- a/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt +++ b/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_onlineboutique_workloads.txt @@ -6,4 +6,4 @@ diff-type: added, source: default/checkoutservice[Deployment], destination: defa diff-type: removed, source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], ref1: All Connections, ref2: No Connections diff-type: removed, source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], ref1: TCP 7000, ref2: No Connections diff-type: removed, source: default/frontend[Deployment], destination: default/adservice[Deployment], ref1: TCP 9555, ref2: No Connections -diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections \ No newline at end of file +diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_workloads_and_onlineboutique_workloads.txt b/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_workloads_and_onlineboutique_workloads.txt index 6ebf9199..1b9ba0ba 100644 --- a/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_workloads_and_onlineboutique_workloads.txt +++ b/test_outputs/diff/diff_between_onlineboutique_workloads_changed_netpols_and_workloads_and_onlineboutique_workloads.txt @@ -8,4 +8,4 @@ diff-type: added, source: default/unicorn[Deployment], destination: 0.0.0.0-255. diff-type: removed, source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], ref1: All Connections, ref2: No Connections diff-type: removed, source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], ref1: TCP 7000, ref2: No Connections diff-type: removed, source: default/frontend[Deployment], destination: default/adservice[Deployment], ref1: TCP 9555, ref2: No Connections -diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections \ No newline at end of file +diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt b/test_outputs/diff/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt index 3faa4a48..03311085 100644 --- a/test_outputs/diff/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt +++ b/test_outputs/diff/diff_between_onlineboutique_workloads_changed_workloads_and_onlineboutique_workloads.txt @@ -2,4 +2,4 @@ Connectivity diff: diff-type: added, source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], ref1: No Connections, ref2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added diff-type: added, source: default/redis-cart[Deployment], destination: default/unicorn[Deployment], ref1: No Connections, ref2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added diff-type: added, source: default/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, ref1: No Connections, ref2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added -diff-type: added, source: default/unicorn[Deployment], destination: default/redis-cart[Deployment], ref1: No Connections, ref2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added \ No newline at end of file +diff-type: added, source: default/unicorn[Deployment], destination: default/redis-cart[Deployment], ref1: No Connections, ref2: All Connections, workloads-diff-info: workload default/unicorn[Deployment] added diff --git a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-different-topologies-policy-b.txt b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-different-topologies-policy-b.txt index cf802b96..0e3380df 100644 --- a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-different-topologies-policy-b.txt +++ b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-different-topologies-policy-b.txt @@ -34,4 +34,4 @@ diff-type: removed, source: default/cog-agents-5[DaemonSet], destination: defaul diff-type: removed, source: default/cog-agents-6[DaemonSet], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-agents-6[DaemonSet] removed diff-type: removed, source: default/cog-agents-6[DaemonSet], destination: default/cog-agents-0[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-agents-6[DaemonSet] removed diff-type: removed, source: default/cog-agents-6[DaemonSet], destination: default/cog-agents-1[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-agents-6[DaemonSet] removed -diff-type: removed, source: default/cog-agents-6[DaemonSet], destination: default/cog-agents-5[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-agents-6[DaemonSet] and default/cog-agents-5[DaemonSet] removed \ No newline at end of file +diff-type: removed, source: default/cog-agents-6[DaemonSet], destination: default/cog-agents-5[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-agents-6[DaemonSet] and default/cog-agents-5[DaemonSet] removed diff --git a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-same-topologies-old1.txt b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-same-topologies-old1.txt index 9603d16b..769a0f65 100644 --- a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-same-topologies-old1.txt +++ b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-a_and_semanticDiff-same-topologies-old1.txt @@ -33,4 +33,4 @@ diff-type: removed, source: demo/cog-agents-account-command[DaemonSet], destinat diff-type: removed, source: demo/cog-agents-account-query[DaemonSet], destination: demo/cog-agents-bank-ui[DaemonSet], ref1: TCP 8080, ref2: No Connections, workloads-diff-info: workload demo/cog-agents-account-query[DaemonSet] and demo/cog-agents-bank-ui[DaemonSet] removed diff-type: removed, source: demo/cog-agents-bank-ui[DaemonSet], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections, workloads-diff-info: workload demo/cog-agents-bank-ui[DaemonSet] removed diff-type: removed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload demo/cog-agents-bank-ui[DaemonSet] and demo/cog-agents-account-command[DaemonSet] removed -diff-type: removed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-query[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload demo/cog-agents-bank-ui[DaemonSet] and demo/cog-agents-account-query[DaemonSet] removed \ No newline at end of file +diff-type: removed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-query[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload demo/cog-agents-bank-ui[DaemonSet] and demo/cog-agents-account-query[DaemonSet] removed diff --git a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b-with-ipblock_and_semanticDiff-different-topologies-policy-a-with-ipblock.txt b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b-with-ipblock_and_semanticDiff-different-topologies-policy-a-with-ipblock.txt index f8b2e5ee..a2682c3b 100644 --- a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b-with-ipblock_and_semanticDiff-different-topologies-policy-a-with-ipblock.txt +++ b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b-with-ipblock_and_semanticDiff-different-topologies-policy-a-with-ipblock.txt @@ -40,4 +40,4 @@ diff-type: removed, source: default/cog-agents-3[DaemonSet], destination: defaul diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] removed diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-0[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] removed diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-2[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] removed -diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-3[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] and default/cog-agents-3[DaemonSet] removed \ No newline at end of file +diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-3[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] and default/cog-agents-3[DaemonSet] removed diff --git a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b_and_semanticDiff-different-topologies-policy-a.txt b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b_and_semanticDiff-different-topologies-policy-a.txt index 9c77d981..548a2035 100644 --- a/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b_and_semanticDiff-different-topologies-policy-a.txt +++ b/test_outputs/diff/diff_between_semanticDiff-different-topologies-policy-b_and_semanticDiff-different-topologies-policy-a.txt @@ -34,4 +34,4 @@ diff-type: removed, source: default/cog-agents-3[DaemonSet], destination: defaul diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: 0.0.0.0-255.255.255.255, ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] removed diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-0[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] removed diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-2[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] removed -diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-3[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] and default/cog-agents-3[DaemonSet] removed \ No newline at end of file +diff-type: removed, source: default/cog-local-analyzer-7d77fb55cc[ReplicaSet], destination: default/cog-agents-3[DaemonSet], ref1: All Connections, ref2: No Connections, workloads-diff-info: workload default/cog-local-analyzer-7d77fb55cc[ReplicaSet] and default/cog-agents-3[DaemonSet] removed diff --git a/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1_and_semanticDiff-same-topologies-old1.txt b/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1_and_semanticDiff-same-topologies-old1.txt index 90a4ec6d..29d9b4f7 100644 --- a/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1_and_semanticDiff-same-topologies-old1.txt +++ b/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1_and_semanticDiff-same-topologies-old1.txt @@ -1,3 +1,3 @@ Connectivity diff: diff-type: changed, source: demo/cog-agents-account-query[DaemonSet], destination: demo/cog-agents-bank-ui[DaemonSet], ref1: TCP 8080, ref2: All Connections -diff-type: changed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: TCP 8080,9090,UDP 8080 \ No newline at end of file +diff-type: changed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: TCP 8080,9090,UDP 8080 diff --git a/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1a_and_semanticDiff-same-topologies-old1.txt b/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1a_and_semanticDiff-same-topologies-old1.txt index 1efa7675..f2d45079 100644 --- a/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1a_and_semanticDiff-same-topologies-old1.txt +++ b/test_outputs/diff/diff_between_semanticDiff-same-topologies-new1a_and_semanticDiff-same-topologies-old1.txt @@ -1,3 +1,3 @@ Connectivity diff: diff-type: changed, source: demo/cog-agents-account-query[DaemonSet], destination: demo/cog-agents-bank-ui[DaemonSet], ref1: TCP 8080, ref2: UDP 8080 -diff-type: removed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: No Connections \ No newline at end of file +diff-type: removed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: All Connections, ref2: No Connections diff --git a/test_outputs/diff/diff_between_semanticDiff-same-topologies-new2_and_semanticDiff-same-topologies-old2.txt b/test_outputs/diff/diff_between_semanticDiff-same-topologies-new2_and_semanticDiff-same-topologies-old2.txt index 01288aec..d618c7a9 100644 --- a/test_outputs/diff/diff_between_semanticDiff-same-topologies-new2_and_semanticDiff-same-topologies-old2.txt +++ b/test_outputs/diff/diff_between_semanticDiff-same-topologies-new2_and_semanticDiff-same-topologies-old2.txt @@ -1,2 +1,2 @@ Connectivity diff: -diff-type: changed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: SCTP 7070,TCP 8080-8081,UDP 9090, ref2: TCP 8081-8082,UDP 9091 \ No newline at end of file +diff-type: changed, source: demo/cog-agents-bank-ui[DaemonSet], destination: demo/cog-agents-account-command[DaemonSet], ref1: SCTP 7070,TCP 8080-8081,UDP 9090, ref2: TCP 8081-8082,UDP 9091 diff --git a/test_outputs/diff/diff_between_test_with_named_ports_changed_netpol_and_test_with_named_ports.txt b/test_outputs/diff/diff_between_test_with_named_ports_changed_netpol_and_test_with_named_ports.txt index 57ad60b7..04bc3fbc 100644 --- a/test_outputs/diff/diff_between_test_with_named_ports_changed_netpol_and_test_with_named_ports.txt +++ b/test_outputs/diff/diff_between_test_with_named_ports_changed_netpol_and_test_with_named_ports.txt @@ -19,4 +19,4 @@ diff-type: changed, source: kube-system/storage-watcher-8494b4b8bb[ReplicaSet], diff-type: changed, source: kube-system/tiller-deploy-5c45c9966b[ReplicaSet], destination: kube-system-dummy-to-ignore/kube-dns-amd64-d66bf76db[ReplicaSet], ref1: TCP 10053,UDP 10053, ref2: TCP 10053-10054,UDP 10053 diff-type: changed, source: kube-system/vpn-858f6d9777[ReplicaSet], destination: kube-system-dummy-to-ignore/kube-dns-amd64-d66bf76db[ReplicaSet], ref1: TCP 10053,UDP 10053, ref2: TCP 10053-10054,UDP 10053 diff-type: changed, source: vendor-system/barbar-app[ReplicaSet], destination: kube-system-dummy-to-ignore/kube-dns-amd64-d66bf76db[ReplicaSet], ref1: TCP 10053,UDP 10053, ref2: TCP 10053-10054,UDP 10053 -diff-type: changed, source: vendor-system/foofoo-app[ReplicaSet], destination: kube-system-dummy-to-ignore/kube-dns-amd64-d66bf76db[ReplicaSet], ref1: TCP 10053,UDP 10053, ref2: TCP 10053-10054,UDP 10053 \ No newline at end of file +diff-type: changed, source: vendor-system/foofoo-app[ReplicaSet], destination: kube-system-dummy-to-ignore/kube-dns-amd64-d66bf76db[ReplicaSet], ref1: TCP 10053,UDP 10053, ref2: TCP 10053-10054,UDP 10053 From c9e0d2882a296e33c01a8ad51b7d49231c6ccad6 Mon Sep 17 00:00:00 2001 From: shireenf-ibm Date: Wed, 23 Oct 2024 12:20:47 +0300 Subject: [PATCH 2/5] add new line if the test was running with --exposure but its result is empty --- pkg/netpol/connlist/conns_formatter_txt.go | 3 +++ ...ty-demos_focus_workload_backend_catalog_exposure_output.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/netpol/connlist/conns_formatter_txt.go b/pkg/netpol/connlist/conns_formatter_txt.go index 78653c56..6042e187 100644 --- a/pkg/netpol/connlist/conns_formatter_txt.go +++ b/pkg/netpol/connlist/conns_formatter_txt.go @@ -60,6 +60,9 @@ func (t *formatText) writeExposureOutput(exposureResults []ExposedPeer) string { sort.Strings(unprotectedLines) // writing results of exposure for all peers res := exposureAnalysisHeader + if len(egressExpLines) == 0 && len(ingressExpLines) == 0 { + return res + newLineChar + } res += writeExposureSubSection(writeStrings(egressExpLines, false, maxPeerStrLen), newLineChar+egressExposureHeader+newLineChar) res += writeExposureSubSection(writeStrings(ingressExpLines, true, maxPeerStrLen), newLineChar+ingressExposureHeader+newLineChar) res += writeExposureSubSection(unprotectedLines, unprotectedHeader) diff --git a/test_outputs/connlist/acs-security-demos_focus_workload_backend_catalog_exposure_output.txt b/test_outputs/connlist/acs-security-demos_focus_workload_backend_catalog_exposure_output.txt index df42f4b4..8c7d0d58 100644 --- a/test_outputs/connlist/acs-security-demos_focus_workload_backend_catalog_exposure_output.txt +++ b/test_outputs/connlist/acs-security-demos_focus_workload_backend_catalog_exposure_output.txt @@ -1,4 +1,4 @@ backend/recommendation[Deployment] => backend/catalog[Deployment] : TCP 8080 backend/reports[Deployment] => backend/catalog[Deployment] : TCP 8080 -Exposure Analysis Result: \ No newline at end of file +Exposure Analysis Result: From d0ae0f8bdd5d82e4b5c7e6f868414c0fd0ea08a8 Mon Sep 17 00:00:00 2001 From: shireenf-ibm Date: Mon, 28 Oct 2024 15:02:09 +0200 Subject: [PATCH 3/5] fix1 --- pkg/netpol/connlist/conns_formatter_txt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/netpol/connlist/conns_formatter_txt.go b/pkg/netpol/connlist/conns_formatter_txt.go index 6042e187..352c7f50 100644 --- a/pkg/netpol/connlist/conns_formatter_txt.go +++ b/pkg/netpol/connlist/conns_formatter_txt.go @@ -22,11 +22,11 @@ type formatText struct { func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool) (string, error) { res := t.writeConnlistOutput(conns, exposureFlag) if !exposureFlag { - return res + newLineChar, nil + return res, nil } // else append exposure analysis results: if res != "" { - res += "\n\n" + res += newLineChar } res += t.writeExposureOutput(exposureConns) return res, nil @@ -44,7 +44,7 @@ func (t *formatText) writeConnlistOutput(conns []Peer2PeerConnection, saveIPConn } } sort.Strings(connLines) - return strings.Join(connLines, newLineChar) + return strings.Join(connLines, newLineChar) + newLineChar } const ( From 935161cb17e2b0bea6b4a0fa4415221c691cc224 Mon Sep 17 00:00:00 2001 From: shireenf-ibm Date: Mon, 28 Oct 2024 15:13:51 +0200 Subject: [PATCH 4/5] fix2 --- pkg/netpol/connlist/conns_formatter_txt.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/netpol/connlist/conns_formatter_txt.go b/pkg/netpol/connlist/conns_formatter_txt.go index 352c7f50..01737f55 100644 --- a/pkg/netpol/connlist/conns_formatter_txt.go +++ b/pkg/netpol/connlist/conns_formatter_txt.go @@ -59,12 +59,9 @@ func (t *formatText) writeExposureOutput(exposureResults []ExposedPeer) string { ingressExpLines, egressExpLines, unprotectedLines := getExposureConnsAsSortedSingleConnFieldsArray(exposureResults, t.ipMaps) sort.Strings(unprotectedLines) // writing results of exposure for all peers - res := exposureAnalysisHeader - if len(egressExpLines) == 0 && len(ingressExpLines) == 0 { - return res + newLineChar - } - res += writeExposureSubSection(writeStrings(egressExpLines, false, maxPeerStrLen), newLineChar+egressExposureHeader+newLineChar) - res += writeExposureSubSection(writeStrings(ingressExpLines, true, maxPeerStrLen), newLineChar+ingressExposureHeader+newLineChar) + res := exposureAnalysisHeader + newLineChar + res += writeExposureSubSection(writeStrings(egressExpLines, false, maxPeerStrLen), egressExposureHeader+newLineChar) + res += writeExposureSubSection(writeStrings(ingressExpLines, true, maxPeerStrLen), ingressExposureHeader+newLineChar) res += writeExposureSubSection(unprotectedLines, unprotectedHeader) return res } From da47b22e25877e05d80b5159e3facf5a73113113 Mon Sep 17 00:00:00 2001 From: shireenf-ibm Date: Mon, 28 Oct 2024 16:25:46 +0200 Subject: [PATCH 5/5] md + fixes --- pkg/netpol/connlist/conns_formatter_md.go | 6 ++++-- pkg/netpol/connlist/conns_formatter_txt.go | 9 +++++++-- ...kloads_focus_workload_emailservice_connlist_output.md | 2 +- .../connlist/acs-security-demos_connlist_output.md | 2 +- .../acs_security_frontend_demos_connlist_output.md | 2 +- .../demo_app_with_routes_and_ingress_connlist_output.md | 2 +- ...xposure_allow_all_in_cluster_test_exposure_output.txt | 1 + ...tire_cluster_with_empty_selectors_exposure_output.txt | 1 + ...test_conn_to_all_pods_in_a_new_ns_exposure_output.txt | 1 + ...re_test_different_but_equiv_rules_exposure_output.txt | 1 + ...osure_test_egress_with_named_port_exposure_output.txt | 1 + ...t_real_namespace_without_real_pod_exposure_output.txt | 1 + ..._unmatched_rule_in_ingress_egress_exposure_output.txt | 1 + ...ure_test_with_multiple_policies_1_exposure_output.txt | 1 + .../connlist/k8s_ingress_test_connlist_output.md | 2 +- ...gress_objects_with_different_ports_connlist_output.md | 2 +- .../netpol-analysis-example-minimal_connlist_output.md | 2 +- .../one_ingress_multiple_ports_connlist_output.md | 2 +- .../one_ingress_multiple_services_connlist_output.md | 2 +- test_outputs/connlist/onlineboutique_connlist_output.md | 2 +- 20 files changed, 29 insertions(+), 14 deletions(-) diff --git a/pkg/netpol/connlist/conns_formatter_md.go b/pkg/netpol/connlist/conns_formatter_md.go index ca63ff50..888dc92d 100644 --- a/pkg/netpol/connlist/conns_formatter_md.go +++ b/pkg/netpol/connlist/conns_formatter_md.go @@ -48,9 +48,11 @@ func getMDLine(c singleConnFields, srcFirst bool) string { func (md *formatMD) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool) (string, error) { // first write connlist lines allLines := md.writeMdConnlistLines(conns, exposureFlag) - if exposureFlag { - allLines = append(allLines, md.writeMdExposureLines(exposureConns)...) + if !exposureFlag { + return strings.Join(allLines, newLineChar) + newLineChar, nil } + // add exposure lines + allLines = append(allLines, md.writeMdExposureLines(exposureConns)...) return strings.Join(allLines, newLineChar), nil } diff --git a/pkg/netpol/connlist/conns_formatter_txt.go b/pkg/netpol/connlist/conns_formatter_txt.go index 01737f55..2168419f 100644 --- a/pkg/netpol/connlist/conns_formatter_txt.go +++ b/pkg/netpol/connlist/conns_formatter_txt.go @@ -25,7 +25,7 @@ func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []Ex return res, nil } // else append exposure analysis results: - if res != "" { + if res != "" && res != newLineChar { res += newLineChar } res += t.writeExposureOutput(exposureConns) @@ -61,7 +61,12 @@ func (t *formatText) writeExposureOutput(exposureResults []ExposedPeer) string { // writing results of exposure for all peers res := exposureAnalysisHeader + newLineChar res += writeExposureSubSection(writeStrings(egressExpLines, false, maxPeerStrLen), egressExposureHeader+newLineChar) - res += writeExposureSubSection(writeStrings(ingressExpLines, true, maxPeerStrLen), ingressExposureHeader+newLineChar) + ingressHead := ingressExposureHeader + newLineChar + if len(egressExpLines) > 0 { + // add empty line between the sections if both are not empty + ingressHead = newLineChar + ingressHead + } + res += writeExposureSubSection(writeStrings(ingressExpLines, true, maxPeerStrLen), ingressHead) res += writeExposureSubSection(unprotectedLines, unprotectedHeader) return res } diff --git a/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.md b/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.md index 97330fc8..07aba53f 100644 --- a/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.md +++ b/test_outputs/cli/onlineboutique_workloads_focus_workload_emailservice_connlist_output.md @@ -1,3 +1,3 @@ | src | dst | conn | |-----|-----|------| -| default/checkoutservice[Deployment] | default/emailservice[Deployment] | TCP 8080 | \ No newline at end of file +| default/checkoutservice[Deployment] | default/emailservice[Deployment] | TCP 8080 | diff --git a/test_outputs/connlist/acs-security-demos_connlist_output.md b/test_outputs/connlist/acs-security-demos_connlist_output.md index 9ec870d7..9e392f0e 100644 --- a/test_outputs/connlist/acs-security-demos_connlist_output.md +++ b/test_outputs/connlist/acs-security-demos_connlist_output.md @@ -13,4 +13,4 @@ | payments/gateway[Deployment] | payments/mastercard-processor[Deployment] | TCP 8080 | | payments/gateway[Deployment] | payments/visa-processor[Deployment] | TCP 8080 | | {ingress-controller} | frontend/asset-cache[Deployment] | TCP 8080 | -| {ingress-controller} | frontend/webapp[Deployment] | TCP 8080 | \ No newline at end of file +| {ingress-controller} | frontend/webapp[Deployment] | TCP 8080 | diff --git a/test_outputs/connlist/acs_security_frontend_demos_connlist_output.md b/test_outputs/connlist/acs_security_frontend_demos_connlist_output.md index 6a8c719f..fb735dec 100644 --- a/test_outputs/connlist/acs_security_frontend_demos_connlist_output.md +++ b/test_outputs/connlist/acs_security_frontend_demos_connlist_output.md @@ -1,2 +1,2 @@ | src | dst | conn | -|-----|-----|------| \ No newline at end of file +|-----|-----|------| diff --git a/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.md b/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.md index cdfadcf9..1e125afb 100644 --- a/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.md +++ b/test_outputs/connlist/demo_app_with_routes_and_ingress_connlist_output.md @@ -14,4 +14,4 @@ | routeworld/route-world[Deployment] | ingressworld/ingress-world[Deployment] | All Connections | | {ingress-controller} | helloworld/hello-world[Deployment] | TCP 8000 | | {ingress-controller} | ingressworld/ingress-world[Deployment] | TCP 8090 | -| {ingress-controller} | routeworld/route-world[Deployment] | TCP 8060 | \ No newline at end of file +| {ingress-controller} | routeworld/route-world[Deployment] | TCP 8060 | diff --git a/test_outputs/connlist/exposure_allow_all_in_cluster_test_exposure_output.txt b/test_outputs/connlist/exposure_allow_all_in_cluster_test_exposure_output.txt index 7d8326ae..be2ee86e 100644 --- a/test_outputs/connlist/exposure_allow_all_in_cluster_test_exposure_output.txt +++ b/test_outputs/connlist/exposure_allow_all_in_cluster_test_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Egress Exposure: hello-world/workload-a[Deployment] => entire-cluster : All Connections diff --git a/test_outputs/connlist/exposure_test_conn_entire_cluster_with_empty_selectors_exposure_output.txt b/test_outputs/connlist/exposure_test_conn_entire_cluster_with_empty_selectors_exposure_output.txt index 7d8326ae..be2ee86e 100644 --- a/test_outputs/connlist/exposure_test_conn_entire_cluster_with_empty_selectors_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_conn_entire_cluster_with_empty_selectors_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Egress Exposure: hello-world/workload-a[Deployment] => entire-cluster : All Connections diff --git a/test_outputs/connlist/exposure_test_conn_to_all_pods_in_a_new_ns_exposure_output.txt b/test_outputs/connlist/exposure_test_conn_to_all_pods_in_a_new_ns_exposure_output.txt index 777caec2..1f314f83 100644 --- a/test_outputs/connlist/exposure_test_conn_to_all_pods_in_a_new_ns_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_conn_to_all_pods_in_a_new_ns_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Egress Exposure: hello-world/workload-a[Deployment] => entire-cluster : All Connections diff --git a/test_outputs/connlist/exposure_test_different_but_equiv_rules_exposure_output.txt b/test_outputs/connlist/exposure_test_different_but_equiv_rules_exposure_output.txt index 039e68ff..5e582df9 100644 --- a/test_outputs/connlist/exposure_test_different_but_equiv_rules_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_different_but_equiv_rules_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Egress Exposure: hello-world/workload-a[Deployment] => hello-world/[pod with {role=monitoring}] : All Connections diff --git a/test_outputs/connlist/exposure_test_egress_with_named_port_exposure_output.txt b/test_outputs/connlist/exposure_test_egress_with_named_port_exposure_output.txt index 5a95249d..b55c2635 100644 --- a/test_outputs/connlist/exposure_test_egress_with_named_port_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_egress_with_named_port_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Egress Exposure: hello-world/workload-a[Deployment] => [namespace with {{Key:foo.com/managed-state,Operator:In,Values:[managed],}}]/[all pods] : TCP http diff --git a/test_outputs/connlist/exposure_test_real_namespace_without_real_pod_exposure_output.txt b/test_outputs/connlist/exposure_test_real_namespace_without_real_pod_exposure_output.txt index 348f2da8..83d3cabf 100644 --- a/test_outputs/connlist/exposure_test_real_namespace_without_real_pod_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_real_namespace_without_real_pod_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Ingress Exposure: ns1/pod-in-ns1[Deployment] <= [namespace with {x=xval}]/[pod with {app=foo}] : TCP 8080 diff --git a/test_outputs/connlist/exposure_test_same_unmatched_rule_in_ingress_egress_exposure_output.txt b/test_outputs/connlist/exposure_test_same_unmatched_rule_in_ingress_egress_exposure_output.txt index b7aead22..ad4369d5 100644 --- a/test_outputs/connlist/exposure_test_same_unmatched_rule_in_ingress_egress_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_same_unmatched_rule_in_ingress_egress_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Egress Exposure: hello-world/workload-a[Deployment] => [namespace with {{Key:foo.com/managed-state,Operator:In,Values:[managed],}}]/[all pods] : TCP 8050 diff --git a/test_outputs/connlist/exposure_test_with_multiple_policies_1_exposure_output.txt b/test_outputs/connlist/exposure_test_with_multiple_policies_1_exposure_output.txt index c323dfeb..9409c4ea 100644 --- a/test_outputs/connlist/exposure_test_with_multiple_policies_1_exposure_output.txt +++ b/test_outputs/connlist/exposure_test_with_multiple_policies_1_exposure_output.txt @@ -1,3 +1,4 @@ + Exposure Analysis Result: Ingress Exposure: hello-world/workload-a[Deployment] <= [namespace with {{Key:env,Operator:In,Values:[env-1 env-2],},{Key:tier,Operator:Exists,Values:[],}}]/[all pods] : All Connections diff --git a/test_outputs/connlist/k8s_ingress_test_connlist_output.md b/test_outputs/connlist/k8s_ingress_test_connlist_output.md index 605aa37a..1866702e 100644 --- a/test_outputs/connlist/k8s_ingress_test_connlist_output.md +++ b/test_outputs/connlist/k8s_ingress_test_connlist_output.md @@ -42,4 +42,4 @@ | default/reviews-v3-84779c7bbc[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | | default/reviews-v3-84779c7bbc[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | | default/reviews-v3-84779c7bbc[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | -| {ingress-controller} | default/details-v1-79f774bdb9[ReplicaSet] | TCP 9080 | \ No newline at end of file +| {ingress-controller} | default/details-v1-79f774bdb9[ReplicaSet] | TCP 9080 | diff --git a/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.md b/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.md index 5ec5053d..e0f3477d 100644 --- a/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.md +++ b/test_outputs/connlist/multiple_ingress_objects_with_different_ports_connlist_output.md @@ -2,4 +2,4 @@ |-----|-----|------| | 0.0.0.0-255.255.255.255 | ingressworld/ingress-world-multiple-ports[Deployment] | All Connections | | ingressworld/ingress-world-multiple-ports[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | -| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8050,8090 | \ No newline at end of file +| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8050,8090 | diff --git a/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.md b/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.md index 62be449d..d5add927 100644 --- a/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.md +++ b/test_outputs/connlist/netpol-analysis-example-minimal_connlist_output.md @@ -2,4 +2,4 @@ |-----|-----|------| | 0.0.0.0-255.255.255.255 | default/frontend[Deployment] | TCP 8080 | | default/frontend[Deployment] | 0.0.0.0-255.255.255.255 | UDP 53 | -| default/frontend[Deployment] | default/backend[Deployment] | TCP 9090 | \ No newline at end of file +| default/frontend[Deployment] | default/backend[Deployment] | TCP 9090 | diff --git a/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.md b/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.md index 847bae56..a4c88def 100644 --- a/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.md +++ b/test_outputs/connlist/one_ingress_multiple_ports_connlist_output.md @@ -2,4 +2,4 @@ |-----|-----|------| | 0.0.0.0-255.255.255.255 | ingressworld/ingress-world-multiple-ports[Deployment] | All Connections | | ingressworld/ingress-world-multiple-ports[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | -| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8000,8090 | \ No newline at end of file +| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8000,8090 | diff --git a/test_outputs/connlist/one_ingress_multiple_services_connlist_output.md b/test_outputs/connlist/one_ingress_multiple_services_connlist_output.md index 847bae56..a4c88def 100644 --- a/test_outputs/connlist/one_ingress_multiple_services_connlist_output.md +++ b/test_outputs/connlist/one_ingress_multiple_services_connlist_output.md @@ -2,4 +2,4 @@ |-----|-----|------| | 0.0.0.0-255.255.255.255 | ingressworld/ingress-world-multiple-ports[Deployment] | All Connections | | ingressworld/ingress-world-multiple-ports[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | -| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8000,8090 | \ No newline at end of file +| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8000,8090 | diff --git a/test_outputs/connlist/onlineboutique_connlist_output.md b/test_outputs/connlist/onlineboutique_connlist_output.md index 71c215f8..b8bf7dfb 100644 --- a/test_outputs/connlist/onlineboutique_connlist_output.md +++ b/test_outputs/connlist/onlineboutique_connlist_output.md @@ -16,4 +16,4 @@ | default/frontend-99684f7f8[ReplicaSet] | default/shippingservice-5bd985c46d[ReplicaSet] | TCP 50051 | | default/loadgenerator-555fbdc87d[ReplicaSet] | default/frontend-99684f7f8[ReplicaSet] | TCP 8080 | | default/recommendationservice-5f8c456796[ReplicaSet] | default/productcatalogservice-68765d49b6[ReplicaSet] | TCP 3550 | -| default/redis-cart-78746d49dc[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | \ No newline at end of file +| default/redis-cart-78746d49dc[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections |