From d8f179f4f708d455e2fae6648affbc702cbb4c72 Mon Sep 17 00:00:00 2001 From: shireenf-ibm <82180114+shireenf-ibm@users.noreply.github.com> Date: Sun, 13 Aug 2023 13:18:07 +0300 Subject: [PATCH] diff output updates (#214) * diff output updates * Update tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.csv Co-authored-by: Adi Sosnovich <82078442+adisos@users.noreply.github.com> * fixes * fix --------- Co-authored-by: Adi Sosnovich <82078442+adisos@users.noreply.github.com> --- cmd/netpolicy/cmd/command_test.go | 75 +++++++++------ pkg/netpol/diff/diff_formatter.go | 51 +++++----- pkg/netpol/diff/diff_test.go | 1 - .../diff_output_from_acs-security-demos.csv | 8 +- .../diff_output_from_acs-security-demos.md | 10 +- .../diff_output_from_acs-security-demos.txt | 6 +- .../diff_output_from_acs-security-demos.csv | 26 ++--- .../diff_output_from_acs-security-demos.md | 28 +++--- .../diff_output_from_acs-security-demos.txt | 24 ++--- .../diff_output_from_acs-security-demos.txt | 4 +- ...put_from_deny_all_to_from_a_deployment.txt | 2 +- .../diff_output_from_k8s_ingress_test.csv | 94 +++++++++--------- .../diff_output_from_k8s_ingress_test.md | 96 +++++++++---------- .../diff_output_from_k8s_ingress_test.txt | 92 +++++++++--------- ...e_ingress_objects_with_different_ports.csv | 4 +- ...le_ingress_objects_with_different_ports.md | 6 +- ...e_ingress_objects_with_different_ports.txt | 2 +- ...t_from_netpol-analysis-example-minimal.csv | 6 +- ...ut_from_netpol-analysis-example-minimal.md | 8 +- ...t_from_netpol-analysis-example-minimal.txt | 4 +- ...f_output_from_onlineboutique_workloads.csv | 18 ++-- ...ff_output_from_onlineboutique_workloads.md | 20 ++-- ...f_output_from_onlineboutique_workloads.txt | 16 ++-- ...f_output_from_onlineboutique_workloads.csv | 22 ++--- ...ff_output_from_onlineboutique_workloads.md | 24 ++--- ...f_output_from_onlineboutique_workloads.txt | 20 ++-- ...f_output_from_onlineboutique_workloads.csv | 10 +- ...ff_output_from_onlineboutique_workloads.md | 12 +-- ...f_output_from_onlineboutique_workloads.txt | 8 +- ...f_output_from_onlineboutique_workloads.csv | 6 +- 30 files changed, 360 insertions(+), 343 deletions(-) diff --git a/cmd/netpolicy/cmd/command_test.go b/cmd/netpolicy/cmd/command_test.go index ba92a7bd..ab5d463a 100644 --- a/cmd/netpolicy/cmd/command_test.go +++ b/cmd/netpolicy/cmd/command_test.go @@ -382,14 +382,17 @@ func TestCommands(t *testing.T) { "--output", "txt", }, - // expected first 3 rows expectedOutput: "Connectivity diff:\n" + - "source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], " + - "dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added)\n" + - "source: default/redis-cart[Deployment], destination: default/unicorn[Deployment], " + - "dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added)", - containment: true, - isErr: false, + "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\n" + + "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\n" + + "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\n" + + "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", + exact: true, + isErr: false, }, { name: "test_legal_diff_txt_output_with_file", @@ -404,15 +407,18 @@ func TestCommands(t *testing.T) { "-f", outFileName, }, - // expected first 3 rows expectedOutput: "Connectivity diff:\n" + - "source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], " + - "dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added)\n" + - "source: default/redis-cart[Deployment], destination: default/unicorn[Deployment], " + - "dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added)", - containment: true, - isErr: false, - hasFile: true, + "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\n" + + "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\n" + + "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\n" + + "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", + exact: true, + isErr: false, + hasFile: true, }, { name: "test_legal_diff_csv_output", @@ -425,14 +431,18 @@ func TestCommands(t *testing.T) { "--output", "csv", }, - // expected first 3 rows - expectedOutput: "source,destination,dir1,dir2,diff-type\n" + - "0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections," + - "All Connections,added (workload default/unicorn[Deployment] added)\n" + - "default/redis-cart[Deployment],default/unicorn[Deployment],No Connections,All Connections," + - "added (workload default/unicorn[Deployment] added)", - containment: true, - isErr: false, + expectedOutput: "diff-type,source,destination,dir1,dir2,workloads-diff-info\n" + + "added,0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections," + + "workload default/unicorn[Deployment] added\n" + + "added,default/redis-cart[Deployment],default/unicorn[Deployment],No Connections,All Connections," + + "workload default/unicorn[Deployment] added\n" + + "added,default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections," + + "workload default/unicorn[Deployment] added\n" + + "added,default/unicorn[Deployment],default/redis-cart[Deployment],No Connections,All Connections," + + "workload default/unicorn[Deployment] added\n" + + "", + exact: true, + isErr: false, }, { name: "test_legal_diff_md_output", @@ -445,13 +455,18 @@ func TestCommands(t *testing.T) { "--output", "md", }, - // expected first 3 rows - expectedOutput: "| source | destination | dir1 | dir2 | diff-type |\n" + - "|--------|-------------|------|------|-----------|\n" + - "| 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections |" + - " added (workload default/unicorn[Deployment] added) |", - containment: true, - isErr: false, + expectedOutput: "| diff-type | source | destination | dir1 | dir2 | workloads-diff-info |\n" + + "|-----------|--------|-------------|------|------|---------------------|\n" + + "| added | 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections " + + "| All Connections | workload default/unicorn[Deployment] added |\n" + + "| added | default/redis-cart[Deployment] | default/unicorn[Deployment] | No Connections " + + "| All Connections | workload default/unicorn[Deployment] added |\n" + + "| added | default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections " + + "| All Connections | workload default/unicorn[Deployment] added |\n" + + "| added | default/unicorn[Deployment] | default/redis-cart[Deployment] | No Connections " + + "| All Connections | workload default/unicorn[Deployment] added |", + exact: true, + isErr: false, }, } diff --git a/pkg/netpol/diff/diff_formatter.go b/pkg/netpol/diff/diff_formatter.go index a2e7b90e..f58b242d 100644 --- a/pkg/netpol/diff/diff_formatter.go +++ b/pkg/netpol/diff/diff_formatter.go @@ -18,8 +18,7 @@ type diffFormatter interface { const ( noConns = "No Connections" - infoPrefix = " (workload " - infoSuffix = ")" + infoPrefix = "workload " space = " " and = " and " ) @@ -27,11 +26,12 @@ const ( var newLine = fmt.Sprintln("") type singleDiffFields struct { - src string - dst string - dir1Conn string - dir2Conn string - diffType string + diffType string + src string + dst string + dir1Conn string + dir2Conn string + workloadDiffInfo string } func formDiffFieldsDataOfDiffConns(diffConns []*ConnsPair) (netpolsDiff, ingressDiff []*singleDiffFields) { @@ -41,11 +41,12 @@ func formDiffFieldsDataOfDiffConns(diffConns []*ConnsPair) (netpolsDiff, ingress firstDirConn, secondDirConn := getDirsConnsStrings(d) srcStr, dstStr, isSrcIngress := getConnPeersStrings(d) diffData := &singleDiffFields{ - src: srcStr, - dst: dstStr, - dir1Conn: firstDirConn, - dir2Conn: secondDirConn, - diffType: getDiffInfo(d), + diffType: d.diffType, + src: srcStr, + dst: dstStr, + dir1Conn: firstDirConn, + dir2Conn: secondDirConn, + workloadDiffInfo: getDiffInfo(d), } if isSrcIngress { ingressRes = append(ingressRes, diffData) @@ -81,12 +82,9 @@ func getDirsConnsStrings(c *ConnsPair) (dir1Str, dir2Str string) { // computes the diff string (if to include added/removed workloads) func getDiffInfo(c *ConnsPair) string { - if c.diffType == changedType { - return changedType - } srcStr, dstStr, _ := getConnPeersStrings(c) + diffInfo := "" // handling added or removed diff data - diffInfo := c.diffType includedSrcFlag := false if c.newOrLostSrc || c.newOrLostDst { diffInfo += infoPrefix @@ -100,7 +98,7 @@ func getDiffInfo(c *ConnsPair) string { } diffInfo += dstStr } - diffInfo += space + c.diffType + infoSuffix + diffInfo += space + c.diffType } return diffInfo } @@ -160,8 +158,12 @@ func (t *diffFormatText) writeDiffOutput(connsDiff ConnectivityDiff) (string, er } func (t *diffFormatText) singleDiffLine(d *singleDiffFields) string { - return fmt.Sprintf("source: %s, destination: %s, dir1: %s, dir2: %s, diff-type: %s", - d.src, d.dst, d.dir1Conn, d.dir2Conn, d.diffType) + diffLine := fmt.Sprintf("diff-type: %s, source: %s, destination: %s, dir1: %s, dir2: %s", d.diffType, + d.src, d.dst, d.dir1Conn, d.dir2Conn) + if d.workloadDiffInfo != "" { + return diffLine + ", workloads-diff-info: " + d.workloadDiffInfo + } + return diffLine } // ///////////////////////// @@ -169,7 +171,8 @@ func (t *diffFormatText) singleDiffLine(d *singleDiffFields) string { type diffFormatMD struct { } -var mdHeader = "| source | destination | dir1 | dir2 | diff-type |\n|--------|-------------|------|------|-----------|" +var mdHeader = "| diff-type | source | destination | dir1 | dir2 | workloads-diff-info |\n" + + "|-----------|--------|-------------|------|------|---------------------|" // returns md string format of connections diff from connectivityDiff object func (md *diffFormatMD) writeDiffOutput(connsDiff ConnectivityDiff) (string, error) { @@ -180,8 +183,8 @@ func (md *diffFormatMD) writeDiffOutput(connsDiff ConnectivityDiff) (string, err } func (md *diffFormatMD) singleDiffLine(d *singleDiffFields) string { - return fmt.Sprintf("| %s | %s | %s | %s | %s |", - d.src, d.dst, d.dir1Conn, d.dir2Conn, d.diffType) + return fmt.Sprintf("| %s | %s | %s | %s | %s | %s |", + d.diffType, d.src, d.dst, d.dir1Conn, d.dir2Conn, d.workloadDiffInfo) } // ///////////////////////// @@ -189,7 +192,7 @@ func (md *diffFormatMD) singleDiffLine(d *singleDiffFields) string { type diffFormatCSV struct { } -var csvHeader = []string{"source", "destination", "dir1", "dir2", "diff-type"} +var csvHeader = []string{"diff-type", "source", "destination", "dir1", "dir2", "workloads-diff-info"} func (cs *diffFormatCSV) writeDiffOutput(connsDiff ConnectivityDiff) (string, error) { changesSortedByCategory := writeDiffLinesOrderedByCategory(connsDiff, cs) @@ -210,5 +213,5 @@ func (cs *diffFormatCSV) writeDiffOutput(connsDiff ConnectivityDiff) (string, er } func (cs *diffFormatCSV) singleDiffLine(d *singleDiffFields) string { - return fmt.Sprintf("%s;%s;%s;%s;%s", d.src, d.dst, d.dir1Conn, d.dir2Conn, d.diffType) + return fmt.Sprintf("%s;%s;%s;%s;%s;%s", d.diffType, d.src, d.dst, d.dir1Conn, d.dir2Conn, d.workloadDiffInfo) } diff --git a/pkg/netpol/diff/diff_test.go b/pkg/netpol/diff/diff_test.go index ef02fec8..3eabd134 100644 --- a/pkg/netpol/diff/diff_test.go +++ b/pkg/netpol/diff/diff_test.go @@ -50,7 +50,6 @@ func TestDiff(t *testing.T) { secondDirName: "onlineboutique_workloads_changed_workloads", formats: allFormats, }, - { // description: // **changed netpols: default/frontend-netpol diff --git a/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.csv b/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.csv index af82d056..6eae7838 100644 --- a/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.csv +++ b/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.csv @@ -1,4 +1,4 @@ -source,destination,dir1,dir2,diff-type -payments/gateway[Deployment],payments/visa-processor-v2[Deployment],No Connections,TCP 8080,added (workload payments/visa-processor-v2[Deployment] added) -{ingress-controller},frontend/blog[Deployment],No Connections,TCP 8080,added (workload frontend/blog[Deployment] added) -{ingress-controller},zeroday/zeroday[Deployment],No Connections,TCP 8080,added (workload zeroday/zeroday[Deployment] added) +diff-type,source,destination,dir1,dir2,workloads-diff-info +added,payments/gateway[Deployment],payments/visa-processor-v2[Deployment],No Connections,TCP 8080,workload payments/visa-processor-v2[Deployment] added +added,{ingress-controller},frontend/blog[Deployment],No Connections,TCP 8080,workload frontend/blog[Deployment] added +added,{ingress-controller},zeroday/zeroday[Deployment],No Connections,TCP 8080,workload zeroday/zeroday[Deployment] added diff --git a/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.md b/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.md index 4ecdd5ba..f046449b 100644 --- a/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.md +++ b/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.md @@ -1,5 +1,5 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| payments/gateway[Deployment] | payments/visa-processor-v2[Deployment] | No Connections | TCP 8080 | added (workload payments/visa-processor-v2[Deployment] added) | -| {ingress-controller} | frontend/blog[Deployment] | No Connections | TCP 8080 | added (workload frontend/blog[Deployment] added) | -| {ingress-controller} | zeroday/zeroday[Deployment] | No Connections | TCP 8080 | added (workload zeroday/zeroday[Deployment] added) | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| added | payments/gateway[Deployment] | payments/visa-processor-v2[Deployment] | No Connections | TCP 8080 | workload payments/visa-processor-v2[Deployment] added | +| added | {ingress-controller} | frontend/blog[Deployment] | No Connections | TCP 8080 | workload frontend/blog[Deployment] added | +| added | {ingress-controller} | zeroday/zeroday[Deployment] | No Connections | TCP 8080 | workload zeroday/zeroday[Deployment] added | \ No newline at end of file diff --git a/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.txt b/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.txt index efbe43f5..5d13533e 100644 --- a/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.txt +++ b/tests/acs-security-demos-added-workloads/diff_output_from_acs-security-demos.txt @@ -1,4 +1,4 @@ Connectivity diff: -source: payments/gateway[Deployment], destination: payments/visa-processor-v2[Deployment], dir1: No Connections, dir2: TCP 8080, diff-type: added (workload payments/visa-processor-v2[Deployment] added) -source: {ingress-controller}, destination: frontend/blog[Deployment], dir1: No Connections, dir2: TCP 8080, diff-type: added (workload frontend/blog[Deployment] added) -source: {ingress-controller}, destination: zeroday/zeroday[Deployment], dir1: No Connections, dir2: TCP 8080, diff-type: added (workload zeroday/zeroday[Deployment] added) \ No newline at end of file +diff-type: added, source: payments/gateway[Deployment], destination: payments/visa-processor-v2[Deployment], dir1: No Connections, dir2: TCP 8080, workloads-diff-info: workload payments/visa-processor-v2[Deployment] added +diff-type: added, source: {ingress-controller}, destination: frontend/blog[Deployment], dir1: No Connections, dir2: TCP 8080, workloads-diff-info: workload frontend/blog[Deployment] added +diff-type: added, source: {ingress-controller}, destination: zeroday/zeroday[Deployment], dir1: No Connections, dir2: TCP 8080, workloads-diff-info: workload zeroday/zeroday[Deployment] added \ No newline at end of file diff --git a/tests/acs-security-demos-new/diff_output_from_acs-security-demos.csv b/tests/acs-security-demos-new/diff_output_from_acs-security-demos.csv index 70993e8f..b57398a8 100644 --- a/tests/acs-security-demos-new/diff_output_from_acs-security-demos.csv +++ b/tests/acs-security-demos-new/diff_output_from_acs-security-demos.csv @@ -1,13 +1,13 @@ -source,destination,dir1,dir2,diff-type -backend/reports[Deployment],backend/catalog[Deployment],TCP 8080,TCP 9080,changed -0.0.0.0-255.255.255.255,external/unicorn[Deployment],No Connections,All Connections,added (workload external/unicorn[Deployment] added) -backend/checkout[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,added (workload external/unicorn[Deployment] added) -backend/recommendation[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,added (workload external/unicorn[Deployment] added) -backend/reports[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,added (workload external/unicorn[Deployment] added) -external/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,added (workload external/unicorn[Deployment] added) -external/unicorn[Deployment],frontend/webapp[Deployment],No Connections,TCP 8080,added (workload external/unicorn[Deployment] added) -frontend/webapp[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,added (workload external/unicorn[Deployment] added) -payments/gateway[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,added (workload external/unicorn[Deployment] added) -frontend/webapp[Deployment],backend/shipping[Deployment],TCP 8080,No Connections,removed -payments/gateway[Deployment],payments/mastercard-processor[Deployment],TCP 8080,No Connections,removed (workload payments/mastercard-processor[Deployment] removed) -{ingress-controller},frontend/asset-cache[Deployment],TCP 8080,No Connections,removed +diff-type,source,destination,dir1,dir2,workloads-diff-info +changed,backend/reports[Deployment],backend/catalog[Deployment],TCP 8080,TCP 9080, +added,0.0.0.0-255.255.255.255,external/unicorn[Deployment],No Connections,All Connections,workload external/unicorn[Deployment] added +added,backend/checkout[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,workload external/unicorn[Deployment] added +added,backend/recommendation[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,workload external/unicorn[Deployment] added +added,backend/reports[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,workload external/unicorn[Deployment] added +added,external/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,workload external/unicorn[Deployment] added +added,external/unicorn[Deployment],frontend/webapp[Deployment],No Connections,TCP 8080,workload external/unicorn[Deployment] added +added,frontend/webapp[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,workload external/unicorn[Deployment] added +added,payments/gateway[Deployment],external/unicorn[Deployment],No Connections,UDP 5353,workload external/unicorn[Deployment] added +removed,frontend/webapp[Deployment],backend/shipping[Deployment],TCP 8080,No Connections, +removed,payments/gateway[Deployment],payments/mastercard-processor[Deployment],TCP 8080,No Connections,workload payments/mastercard-processor[Deployment] removed +removed,{ingress-controller},frontend/asset-cache[Deployment],TCP 8080,No Connections, diff --git a/tests/acs-security-demos-new/diff_output_from_acs-security-demos.md b/tests/acs-security-demos-new/diff_output_from_acs-security-demos.md index 1452cf60..e5fd4fba 100644 --- a/tests/acs-security-demos-new/diff_output_from_acs-security-demos.md +++ b/tests/acs-security-demos-new/diff_output_from_acs-security-demos.md @@ -1,14 +1,14 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| backend/reports[Deployment] | backend/catalog[Deployment] | TCP 8080 | TCP 9080 | changed | -| 0.0.0.0-255.255.255.255 | external/unicorn[Deployment] | No Connections | All Connections | added (workload external/unicorn[Deployment] added) | -| backend/checkout[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | added (workload external/unicorn[Deployment] added) | -| backend/recommendation[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | added (workload external/unicorn[Deployment] added) | -| backend/reports[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | added (workload external/unicorn[Deployment] added) | -| external/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | added (workload external/unicorn[Deployment] added) | -| external/unicorn[Deployment] | frontend/webapp[Deployment] | No Connections | TCP 8080 | added (workload external/unicorn[Deployment] added) | -| frontend/webapp[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | added (workload external/unicorn[Deployment] added) | -| payments/gateway[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | added (workload external/unicorn[Deployment] added) | -| frontend/webapp[Deployment] | backend/shipping[Deployment] | TCP 8080 | No Connections | removed | -| payments/gateway[Deployment] | payments/mastercard-processor[Deployment] | TCP 8080 | No Connections | removed (workload payments/mastercard-processor[Deployment] removed) | -| {ingress-controller} | frontend/asset-cache[Deployment] | TCP 8080 | No Connections | removed | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| changed | backend/reports[Deployment] | backend/catalog[Deployment] | TCP 8080 | TCP 9080 | | +| added | 0.0.0.0-255.255.255.255 | external/unicorn[Deployment] | No Connections | All Connections | workload external/unicorn[Deployment] added | +| added | backend/checkout[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | workload external/unicorn[Deployment] added | +| added | backend/recommendation[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | workload external/unicorn[Deployment] added | +| added | backend/reports[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | workload external/unicorn[Deployment] added | +| added | external/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | workload external/unicorn[Deployment] added | +| added | external/unicorn[Deployment] | frontend/webapp[Deployment] | No Connections | TCP 8080 | workload external/unicorn[Deployment] added | +| added | frontend/webapp[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | workload external/unicorn[Deployment] added | +| added | payments/gateway[Deployment] | external/unicorn[Deployment] | No Connections | UDP 5353 | workload external/unicorn[Deployment] added | +| removed | frontend/webapp[Deployment] | backend/shipping[Deployment] | TCP 8080 | No Connections | | +| removed | payments/gateway[Deployment] | payments/mastercard-processor[Deployment] | TCP 8080 | No Connections | workload payments/mastercard-processor[Deployment] removed | +| removed | {ingress-controller} | frontend/asset-cache[Deployment] | TCP 8080 | No Connections | | \ No newline at end of file diff --git a/tests/acs-security-demos-new/diff_output_from_acs-security-demos.txt b/tests/acs-security-demos-new/diff_output_from_acs-security-demos.txt index cf81761c..c74dbdac 100644 --- a/tests/acs-security-demos-new/diff_output_from_acs-security-demos.txt +++ b/tests/acs-security-demos-new/diff_output_from_acs-security-demos.txt @@ -1,13 +1,13 @@ Connectivity diff: -source: backend/reports[Deployment], destination: backend/catalog[Deployment], dir1: TCP 8080, dir2: TCP 9080, diff-type: changed -source: 0.0.0.0-255.255.255.255, destination: external/unicorn[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added (workload external/unicorn[Deployment] added) -source: backend/checkout[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, diff-type: added (workload external/unicorn[Deployment] added) -source: backend/recommendation[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, diff-type: added (workload external/unicorn[Deployment] added) -source: backend/reports[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, diff-type: added (workload external/unicorn[Deployment] added) -source: external/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: No Connections, dir2: All Connections, diff-type: added (workload external/unicorn[Deployment] added) -source: external/unicorn[Deployment], destination: frontend/webapp[Deployment], dir1: No Connections, dir2: TCP 8080, diff-type: added (workload external/unicorn[Deployment] added) -source: frontend/webapp[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, diff-type: added (workload external/unicorn[Deployment] added) -source: payments/gateway[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, diff-type: added (workload external/unicorn[Deployment] added) -source: frontend/webapp[Deployment], destination: backend/shipping[Deployment], dir1: TCP 8080, dir2: No Connections, diff-type: removed -source: payments/gateway[Deployment], destination: payments/mastercard-processor[Deployment], dir1: TCP 8080, dir2: No Connections, diff-type: removed (workload payments/mastercard-processor[Deployment] removed) -source: {ingress-controller}, destination: frontend/asset-cache[Deployment], dir1: TCP 8080, dir2: No Connections, diff-type: removed \ No newline at end of file +diff-type: changed, source: backend/reports[Deployment], destination: backend/catalog[Deployment], dir1: TCP 8080, dir2: TCP 9080 +diff-type: added, source: 0.0.0.0-255.255.255.255, destination: external/unicorn[Deployment], dir1: No Connections, dir2: All Connections, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: backend/checkout[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: backend/recommendation[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: backend/reports[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: external/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: No Connections, dir2: All Connections, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: external/unicorn[Deployment], destination: frontend/webapp[Deployment], dir1: No Connections, dir2: TCP 8080, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: frontend/webapp[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: added, source: payments/gateway[Deployment], destination: external/unicorn[Deployment], dir1: No Connections, dir2: UDP 5353, workloads-diff-info: workload external/unicorn[Deployment] added +diff-type: removed, source: frontend/webapp[Deployment], destination: backend/shipping[Deployment], dir1: TCP 8080, dir2: No Connections +diff-type: removed, source: payments/gateway[Deployment], destination: payments/mastercard-processor[Deployment], dir1: TCP 8080, dir2: No Connections, workloads-diff-info: workload payments/mastercard-processor[Deployment] removed +diff-type: removed, source: {ingress-controller}, destination: frontend/asset-cache[Deployment], dir1: TCP 8080, dir2: No Connections \ No newline at end of file diff --git a/tests/acs-security-demos-no-routes/diff_output_from_acs-security-demos.txt b/tests/acs-security-demos-no-routes/diff_output_from_acs-security-demos.txt index d141904e..6b00a6c8 100644 --- a/tests/acs-security-demos-no-routes/diff_output_from_acs-security-demos.txt +++ b/tests/acs-security-demos-no-routes/diff_output_from_acs-security-demos.txt @@ -1,3 +1,3 @@ Connectivity diff: -source: {ingress-controller}, destination: frontend/asset-cache[Deployment], dir1: TCP 8080, dir2: No Connections, diff-type: removed -source: {ingress-controller}, destination: frontend/webapp[Deployment], dir1: TCP 8080, dir2: No Connections, diff-type: removed \ No newline at end of file +diff-type: removed, source: {ingress-controller}, destination: frontend/asset-cache[Deployment], dir1: TCP 8080, dir2: No Connections +diff-type: removed, source: {ingress-controller}, destination: frontend/webapp[Deployment], dir1: TCP 8080, dir2: No Connections \ No newline at end of file diff --git a/tests/deny_all_to_from_a_deployment_changed_netpol/diff_output_from_deny_all_to_from_a_deployment.txt b/tests/deny_all_to_from_a_deployment_changed_netpol/diff_output_from_deny_all_to_from_a_deployment.txt index 7e449528..f094cef4 100644 --- a/tests/deny_all_to_from_a_deployment_changed_netpol/diff_output_from_deny_all_to_from_a_deployment.txt +++ b/tests/deny_all_to_from_a_deployment_changed_netpol/diff_output_from_deny_all_to_from_a_deployment.txt @@ -1,2 +1,2 @@ Connectivity diff: -source: default/deployment2[Deployment], destination: default/deployment1[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added \ No newline at end of file +diff-type: added, source: default/deployment2[Deployment], destination: default/deployment1[Deployment], dir1: No Connections, dir2: All Connections \ No newline at end of file diff --git a/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.csv b/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.csv index 5e39ca5b..9bdd2504 100644 --- a/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.csv +++ b/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.csv @@ -1,47 +1,47 @@ -source,destination,dir1,dir2,diff-type -default/reviews-v1-545db77b95[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,TCP 9080,changed -default/reviews-v1-545db77b95[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,TCP 9080,changed -default/reviews-v2-7bf8c9648f[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,TCP 9080,changed -default/reviews-v2-7bf8c9648f[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,TCP 9080,changed -default/reviews-v3-84779c7bbc[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,TCP 9080,changed -default/reviews-v3-84779c7bbc[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,TCP 9080,changed -0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections,added (workload default/unicorn[Deployment] added) -default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,added (workload default/unicorn[Deployment] added) -default/unicorn[Deployment],default/details-v1-79f774bdb9[ReplicaSet],No Connections,TCP 9080,added (workload default/unicorn[Deployment] added) -0.0.0.0-255.255.255.255,default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections,removed -0.0.0.0-255.255.255.255,default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,No Connections,removed -0.0.0.0-255.255.255.255,default/ratings-v1-b6994bb9[ReplicaSet],All Connections,No Connections,removed -0.0.0.0-255.255.255.255,default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections,removed -0.0.0.0-255.255.255.255,default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections,removed -0.0.0.0-255.255.255.255,default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections,removed -default/details-v1-79f774bdb9[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections,removed -default/details-v1-79f774bdb9[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,No Connections,removed -default/details-v1-79f774bdb9[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,No Connections,removed -default/details-v1-79f774bdb9[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections,removed -default/details-v1-79f774bdb9[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections,removed -default/details-v1-79f774bdb9[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections,removed -default/productpage-v1-6b746f74dc[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections,removed -default/productpage-v1-6b746f74dc[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections,removed -default/productpage-v1-6b746f74dc[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,No Connections,removed -default/productpage-v1-6b746f74dc[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections,removed -default/productpage-v1-6b746f74dc[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections,removed -default/productpage-v1-6b746f74dc[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections,removed -default/ratings-v1-b6994bb9[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections,removed -default/ratings-v1-b6994bb9[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections,removed -default/ratings-v1-b6994bb9[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,No Connections,removed -default/ratings-v1-b6994bb9[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections,removed -default/ratings-v1-b6994bb9[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections,removed -default/ratings-v1-b6994bb9[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections,removed -default/reviews-v1-545db77b95[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections,removed -default/reviews-v1-545db77b95[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections,removed -default/reviews-v1-545db77b95[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections,removed -default/reviews-v1-545db77b95[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections,removed -default/reviews-v2-7bf8c9648f[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections,removed -default/reviews-v2-7bf8c9648f[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections,removed -default/reviews-v2-7bf8c9648f[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections,removed -default/reviews-v2-7bf8c9648f[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections,removed -default/reviews-v3-84779c7bbc[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections,removed -default/reviews-v3-84779c7bbc[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections,removed -default/reviews-v3-84779c7bbc[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections,removed -default/reviews-v3-84779c7bbc[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections,removed -{ingress-controller},default/unicorn[Deployment],No Connections,TCP 8080,added (workload default/unicorn[Deployment] added) +diff-type,source,destination,dir1,dir2,workloads-diff-info +changed,default/reviews-v1-545db77b95[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,TCP 9080, +changed,default/reviews-v1-545db77b95[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,TCP 9080, +changed,default/reviews-v2-7bf8c9648f[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,TCP 9080, +changed,default/reviews-v2-7bf8c9648f[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,TCP 9080, +changed,default/reviews-v3-84779c7bbc[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,TCP 9080, +changed,default/reviews-v3-84779c7bbc[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,TCP 9080, +added,0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections,workload default/unicorn[Deployment] added +added,default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,workload default/unicorn[Deployment] added +added,default/unicorn[Deployment],default/details-v1-79f774bdb9[ReplicaSet],No Connections,TCP 9080,workload default/unicorn[Deployment] added +removed,0.0.0.0-255.255.255.255,default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections, +removed,0.0.0.0-255.255.255.255,default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,No Connections, +removed,0.0.0.0-255.255.255.255,default/ratings-v1-b6994bb9[ReplicaSet],All Connections,No Connections, +removed,0.0.0.0-255.255.255.255,default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections, +removed,0.0.0.0-255.255.255.255,default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections, +removed,0.0.0.0-255.255.255.255,default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections, +removed,default/details-v1-79f774bdb9[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections, +removed,default/details-v1-79f774bdb9[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,No Connections, +removed,default/details-v1-79f774bdb9[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,No Connections, +removed,default/details-v1-79f774bdb9[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections, +removed,default/details-v1-79f774bdb9[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections, +removed,default/details-v1-79f774bdb9[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections, +removed,default/productpage-v1-6b746f74dc[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections, +removed,default/productpage-v1-6b746f74dc[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections, +removed,default/productpage-v1-6b746f74dc[ReplicaSet],default/ratings-v1-b6994bb9[ReplicaSet],All Connections,No Connections, +removed,default/productpage-v1-6b746f74dc[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections, +removed,default/productpage-v1-6b746f74dc[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections, +removed,default/productpage-v1-6b746f74dc[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections, +removed,default/ratings-v1-b6994bb9[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections, +removed,default/ratings-v1-b6994bb9[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections, +removed,default/ratings-v1-b6994bb9[ReplicaSet],default/productpage-v1-6b746f74dc[ReplicaSet],All Connections,No Connections, +removed,default/ratings-v1-b6994bb9[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections, +removed,default/ratings-v1-b6994bb9[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections, +removed,default/ratings-v1-b6994bb9[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v1-545db77b95[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections, +removed,default/reviews-v1-545db77b95[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v1-545db77b95[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v1-545db77b95[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v2-7bf8c9648f[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections, +removed,default/reviews-v2-7bf8c9648f[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v2-7bf8c9648f[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v2-7bf8c9648f[ReplicaSet],default/reviews-v3-84779c7bbc[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v3-84779c7bbc[ReplicaSet],0.0.0.0-255.255.255.255,All Connections,No Connections, +removed,default/reviews-v3-84779c7bbc[ReplicaSet],default/details-v1-79f774bdb9[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v3-84779c7bbc[ReplicaSet],default/reviews-v1-545db77b95[ReplicaSet],All Connections,No Connections, +removed,default/reviews-v3-84779c7bbc[ReplicaSet],default/reviews-v2-7bf8c9648f[ReplicaSet],All Connections,No Connections, +added,{ingress-controller},default/unicorn[Deployment],No Connections,TCP 8080,workload default/unicorn[Deployment] added diff --git a/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.md b/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.md index 16892cce..22702624 100644 --- a/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.md +++ b/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.md @@ -1,48 +1,48 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| default/reviews-v1-545db77b95[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | TCP 9080 | changed | -| default/reviews-v1-545db77b95[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | TCP 9080 | changed | -| default/reviews-v2-7bf8c9648f[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | TCP 9080 | changed | -| default/reviews-v2-7bf8c9648f[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | TCP 9080 | changed | -| default/reviews-v3-84779c7bbc[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | TCP 9080 | changed | -| default/reviews-v3-84779c7bbc[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | TCP 9080 | changed | -| 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| default/unicorn[Deployment] | default/details-v1-79f774bdb9[ReplicaSet] | No Connections | TCP 9080 | added (workload default/unicorn[Deployment] added) | -| 0.0.0.0-255.255.255.255 | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | removed | -| 0.0.0.0-255.255.255.255 | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | No Connections | removed | -| 0.0.0.0-255.255.255.255 | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | No Connections | removed | -| 0.0.0.0-255.255.255.255 | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | removed | -| 0.0.0.0-255.255.255.255 | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | removed | -| 0.0.0.0-255.255.255.255 | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | removed | -| default/details-v1-79f774bdb9[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | -| default/details-v1-79f774bdb9[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | No Connections | removed | -| default/details-v1-79f774bdb9[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | No Connections | removed | -| default/details-v1-79f774bdb9[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | removed | -| default/details-v1-79f774bdb9[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | removed | -| default/details-v1-79f774bdb9[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | removed | -| default/productpage-v1-6b746f74dc[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | -| default/productpage-v1-6b746f74dc[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | removed | -| default/productpage-v1-6b746f74dc[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | No Connections | removed | -| default/productpage-v1-6b746f74dc[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | removed | -| default/productpage-v1-6b746f74dc[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | removed | -| default/productpage-v1-6b746f74dc[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | removed | -| default/ratings-v1-b6994bb9[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | -| default/ratings-v1-b6994bb9[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | removed | -| default/ratings-v1-b6994bb9[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | No Connections | removed | -| default/ratings-v1-b6994bb9[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | removed | -| default/ratings-v1-b6994bb9[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | removed | -| default/ratings-v1-b6994bb9[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v1-545db77b95[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | -| default/reviews-v1-545db77b95[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v1-545db77b95[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v1-545db77b95[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v2-7bf8c9648f[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | -| default/reviews-v2-7bf8c9648f[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v2-7bf8c9648f[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v2-7bf8c9648f[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v3-84779c7bbc[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | -| default/reviews-v3-84779c7bbc[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v3-84779c7bbc[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | removed | -| default/reviews-v3-84779c7bbc[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | removed | -| {ingress-controller} | default/unicorn[Deployment] | No Connections | TCP 8080 | added (workload default/unicorn[Deployment] added) | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| changed | default/reviews-v1-545db77b95[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | TCP 9080 | | +| changed | default/reviews-v1-545db77b95[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | TCP 9080 | | +| changed | default/reviews-v2-7bf8c9648f[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | TCP 9080 | | +| changed | default/reviews-v2-7bf8c9648f[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | TCP 9080 | | +| changed | default/reviews-v3-84779c7bbc[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | TCP 9080 | | +| changed | default/reviews-v3-84779c7bbc[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | TCP 9080 | | +| added | 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections | workload default/unicorn[Deployment] added | +| added | default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | workload default/unicorn[Deployment] added | +| added | default/unicorn[Deployment] | default/details-v1-79f774bdb9[ReplicaSet] | No Connections | TCP 9080 | workload default/unicorn[Deployment] added | +| removed | 0.0.0.0-255.255.255.255 | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | | +| removed | 0.0.0.0-255.255.255.255 | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | No Connections | | +| removed | 0.0.0.0-255.255.255.255 | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | No Connections | | +| removed | 0.0.0.0-255.255.255.255 | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | | +| removed | 0.0.0.0-255.255.255.255 | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | | +| removed | 0.0.0.0-255.255.255.255 | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | | +| removed | default/details-v1-79f774bdb9[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | +| removed | default/details-v1-79f774bdb9[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | No Connections | | +| removed | default/details-v1-79f774bdb9[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/details-v1-79f774bdb9[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | | +| removed | default/details-v1-79f774bdb9[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | | +| removed | default/details-v1-79f774bdb9[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | | +| removed | default/productpage-v1-6b746f74dc[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | +| removed | default/productpage-v1-6b746f74dc[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/productpage-v1-6b746f74dc[ReplicaSet] | default/ratings-v1-b6994bb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/productpage-v1-6b746f74dc[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | | +| removed | default/productpage-v1-6b746f74dc[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | | +| removed | default/productpage-v1-6b746f74dc[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | | +| removed | default/ratings-v1-b6994bb9[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | +| removed | default/ratings-v1-b6994bb9[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/ratings-v1-b6994bb9[ReplicaSet] | default/productpage-v1-6b746f74dc[ReplicaSet] | All Connections | No Connections | | +| removed | default/ratings-v1-b6994bb9[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | | +| removed | default/ratings-v1-b6994bb9[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | | +| removed | default/ratings-v1-b6994bb9[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v1-545db77b95[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | +| removed | default/reviews-v1-545db77b95[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v1-545db77b95[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v1-545db77b95[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v2-7bf8c9648f[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | +| removed | default/reviews-v2-7bf8c9648f[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v2-7bf8c9648f[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v2-7bf8c9648f[ReplicaSet] | default/reviews-v3-84779c7bbc[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v3-84779c7bbc[ReplicaSet] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | +| removed | default/reviews-v3-84779c7bbc[ReplicaSet] | default/details-v1-79f774bdb9[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v3-84779c7bbc[ReplicaSet] | default/reviews-v1-545db77b95[ReplicaSet] | All Connections | No Connections | | +| removed | default/reviews-v3-84779c7bbc[ReplicaSet] | default/reviews-v2-7bf8c9648f[ReplicaSet] | All Connections | No Connections | | +| added | {ingress-controller} | default/unicorn[Deployment] | No Connections | TCP 8080 | workload default/unicorn[Deployment] added | \ No newline at end of file diff --git a/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.txt b/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.txt index 76bbeea0..81b5afd0 100644 --- a/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.txt +++ b/tests/k8s_ingress_test_new/diff_output_from_k8s_ingress_test.txt @@ -1,47 +1,47 @@ Connectivity diff: -source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: TCP 9080, diff-type: changed -source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: TCP 9080, diff-type: changed -source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: TCP 9080, diff-type: changed -source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: TCP 9080, diff-type: changed -source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: TCP 9080, diff-type: changed -source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: TCP 9080, diff-type: changed -source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: default/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: default/unicorn[Deployment], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: No Connections, dir2: TCP 9080, diff-type: added (workload default/unicorn[Deployment] added) -source: 0.0.0.0-255.255.255.255, destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: 0.0.0.0-255.255.255.255, destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: 0.0.0.0-255.255.255.255, destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: 0.0.0.0-255.255.255.255, destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: 0.0.0.0-255.255.255.255, destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: 0.0.0.0-255.255.255.255, destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/details-v1-79f774bdb9[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/ratings-v1-b6994bb9[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v1-545db77b95[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections, diff-type: removed -source: {ingress-controller}, destination: default/unicorn[Deployment], dir1: No Connections, dir2: TCP 8080, diff-type: added (workload default/unicorn[Deployment] added) \ No newline at end of file +diff-type: changed, source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: TCP 9080 +diff-type: changed, source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: TCP 9080 +diff-type: changed, source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: TCP 9080 +diff-type: changed, source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: TCP 9080 +diff-type: changed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: TCP 9080 +diff-type: changed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: TCP 9080 +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/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/details-v1-79f774bdb9[ReplicaSet], dir1: No Connections, dir2: TCP 9080, workloads-diff-info: workload default/unicorn[Deployment] added +diff-type: removed, source: 0.0.0.0-255.255.255.255, destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: 0.0.0.0-255.255.255.255, destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: 0.0.0.0-255.255.255.255, destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: 0.0.0.0-255.255.255.255, destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: 0.0.0.0-255.255.255.255, destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: 0.0.0.0-255.255.255.255, destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/details-v1-79f774bdb9[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/details-v1-79f774bdb9[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/ratings-v1-b6994bb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/productpage-v1-6b746f74dc[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/ratings-v1-b6994bb9[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/productpage-v1-6b746f74dc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/ratings-v1-b6994bb9[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v1-545db77b95[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v1-545db77b95[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v2-7bf8c9648f[ReplicaSet], destination: default/reviews-v3-84779c7bbc[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/details-v1-79f774bdb9[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/reviews-v1-545db77b95[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/reviews-v3-84779c7bbc[ReplicaSet], destination: default/reviews-v2-7bf8c9648f[ReplicaSet], dir1: All Connections, dir2: No Connections +diff-type: added, source: {ingress-controller}, destination: default/unicorn[Deployment], dir1: No Connections, dir2: TCP 8080, workloads-diff-info: workload default/unicorn[Deployment] added \ No newline at end of file diff --git a/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.csv b/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.csv index 34b361c3..654271b1 100644 --- a/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.csv +++ b/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.csv @@ -1,2 +1,2 @@ -source,destination,dir1,dir2,diff-type -{ingress-controller},ingressworld/ingress-world-multiple-ports[Deployment],"TCP 8050,8090","TCP 8000,8090",changed +diff-type,source,destination,dir1,dir2,workloads-diff-info +changed,{ingress-controller},ingressworld/ingress-world-multiple-ports[Deployment],"TCP 8050,8090","TCP 8000,8090", diff --git a/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.md b/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.md index a89e198f..278caf28 100644 --- a/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.md +++ b/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.md @@ -1,3 +1,3 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8050,8090 | TCP 8000,8090 | changed | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| changed | {ingress-controller} | ingressworld/ingress-world-multiple-ports[Deployment] | TCP 8050,8090 | TCP 8000,8090 | | \ No newline at end of file diff --git a/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.txt b/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.txt index e43bdec5..b5530a43 100644 --- a/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.txt +++ b/tests/multiple_ingress_objects_with_different_ports_new/diff_output_from_multiple_ingress_objects_with_different_ports.txt @@ -1,2 +1,2 @@ Connectivity diff: -source: {ingress-controller}, destination: ingressworld/ingress-world-multiple-ports[Deployment], dir1: TCP 8050,8090, dir2: TCP 8000,8090, diff-type: changed \ No newline at end of file +diff-type: changed, source: {ingress-controller}, destination: ingressworld/ingress-world-multiple-ports[Deployment], dir1: TCP 8050,8090, dir2: TCP 8000,8090 \ No newline at end of file diff --git a/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.csv b/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.csv index 3c605f96..7810f19b 100644 --- a/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.csv +++ b/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.csv @@ -1,3 +1,3 @@ -source,destination,dir1,dir2,diff-type -default/frontend[Deployment],default/backend[Deployment],TCP 9090,"TCP 9090,UDP 53",changed -0.0.0.0-255.255.255.255,default/backend[Deployment],No Connections,TCP 9090,added +diff-type,source,destination,dir1,dir2,workloads-diff-info +changed,default/frontend[Deployment],default/backend[Deployment],TCP 9090,"TCP 9090,UDP 53", +added,0.0.0.0-255.255.255.255,default/backend[Deployment],No Connections,TCP 9090, diff --git a/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.md b/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.md index 5df09bde..50ffb40b 100644 --- a/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.md +++ b/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.md @@ -1,4 +1,4 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| default/frontend[Deployment] | default/backend[Deployment] | TCP 9090 | TCP 9090,UDP 53 | changed | -| 0.0.0.0-255.255.255.255 | default/backend[Deployment] | No Connections | TCP 9090 | added | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| changed | default/frontend[Deployment] | default/backend[Deployment] | TCP 9090 | TCP 9090,UDP 53 | | +| added | 0.0.0.0-255.255.255.255 | default/backend[Deployment] | No Connections | TCP 9090 | | \ No newline at end of file diff --git a/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.txt b/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.txt index 597a6f05..0e6a905f 100644 --- a/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.txt +++ b/tests/netpol-diff-example-minimal/diff_output_from_netpol-analysis-example-minimal.txt @@ -1,3 +1,3 @@ Connectivity diff: -source: default/frontend[Deployment], destination: default/backend[Deployment], dir1: TCP 9090, dir2: TCP 9090,UDP 53, diff-type: changed -source: 0.0.0.0-255.255.255.255, destination: default/backend[Deployment], dir1: No Connections, dir2: TCP 9090, diff-type: added \ No newline at end of file +diff-type: changed, source: default/frontend[Deployment], destination: default/backend[Deployment], dir1: TCP 9090, dir2: TCP 9090,UDP 53 +diff-type: added, source: 0.0.0.0-255.255.255.255, destination: default/backend[Deployment], dir1: No Connections, dir2: TCP 9090 \ No newline at end of file diff --git a/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.csv b/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.csv index e298d34f..5e8905ab 100644 --- a/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.csv +++ b/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.csv @@ -1,9 +1,9 @@ -source,destination,dir1,dir2,diff-type -default/checkoutservice[Deployment],default/cartservice[Deployment],TCP 7070,TCP 8000,changed -default/checkoutservice[Deployment],default/emailservice[Deployment],TCP 8080,"TCP 8080,9555",changed -default/cartservice[Deployment],default/emailservice[Deployment],No Connections,TCP 9555,added -default/checkoutservice[Deployment],default/adservice[Deployment],No Connections,TCP 9555,added -128.0.0.0-255.255.255.255,default/redis-cart[Deployment],All Connections,No Connections,removed -default/checkoutservice[Deployment],default/currencyservice[Deployment],TCP 7000,No Connections,removed -default/frontend[Deployment],default/adservice[Deployment],TCP 9555,No Connections,removed -default/redis-cart[Deployment],0.0.0.0-255.255.255.255,All Connections,No Connections,removed +diff-type,source,destination,dir1,dir2,workloads-diff-info +changed,default/checkoutservice[Deployment],default/cartservice[Deployment],TCP 7070,TCP 8000, +changed,default/checkoutservice[Deployment],default/emailservice[Deployment],TCP 8080,"TCP 8080,9555", +added,default/cartservice[Deployment],default/emailservice[Deployment],No Connections,TCP 9555, +added,default/checkoutservice[Deployment],default/adservice[Deployment],No Connections,TCP 9555, +removed,128.0.0.0-255.255.255.255,default/redis-cart[Deployment],All Connections,No Connections, +removed,default/checkoutservice[Deployment],default/currencyservice[Deployment],TCP 7000,No Connections, +removed,default/frontend[Deployment],default/adservice[Deployment],TCP 9555,No Connections, +removed,default/redis-cart[Deployment],0.0.0.0-255.255.255.255,All Connections,No Connections, diff --git a/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.md b/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.md index 1f4b93ad..0b2ea78c 100644 --- a/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.md +++ b/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.md @@ -1,10 +1,10 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| default/checkoutservice[Deployment] | default/cartservice[Deployment] | TCP 7070 | TCP 8000 | changed | -| default/checkoutservice[Deployment] | default/emailservice[Deployment] | TCP 8080 | TCP 8080,9555 | changed | -| default/cartservice[Deployment] | default/emailservice[Deployment] | No Connections | TCP 9555 | added | -| default/checkoutservice[Deployment] | default/adservice[Deployment] | No Connections | TCP 9555 | added | -| 128.0.0.0-255.255.255.255 | default/redis-cart[Deployment] | All Connections | No Connections | removed | -| default/checkoutservice[Deployment] | default/currencyservice[Deployment] | TCP 7000 | No Connections | removed | -| default/frontend[Deployment] | default/adservice[Deployment] | TCP 9555 | No Connections | removed | -| default/redis-cart[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| changed | default/checkoutservice[Deployment] | default/cartservice[Deployment] | TCP 7070 | TCP 8000 | | +| changed | default/checkoutservice[Deployment] | default/emailservice[Deployment] | TCP 8080 | TCP 8080,9555 | | +| added | default/cartservice[Deployment] | default/emailservice[Deployment] | No Connections | TCP 9555 | | +| added | default/checkoutservice[Deployment] | default/adservice[Deployment] | No Connections | TCP 9555 | | +| removed | 128.0.0.0-255.255.255.255 | default/redis-cart[Deployment] | All Connections | No Connections | | +| removed | default/checkoutservice[Deployment] | default/currencyservice[Deployment] | TCP 7000 | No Connections | | +| removed | default/frontend[Deployment] | default/adservice[Deployment] | TCP 9555 | No Connections | | +| removed | default/redis-cart[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | \ No newline at end of file diff --git a/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.txt b/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.txt index 136c98b7..45485e09 100644 --- a/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.txt +++ b/tests/onlineboutique_workloads_changed_netpols/diff_output_from_onlineboutique_workloads.txt @@ -1,9 +1,9 @@ Connectivity diff: -source: default/checkoutservice[Deployment], destination: default/cartservice[Deployment], dir1: TCP 7070, dir2: TCP 8000, diff-type: changed -source: default/checkoutservice[Deployment], destination: default/emailservice[Deployment], dir1: TCP 8080, dir2: TCP 8080,9555, diff-type: changed -source: default/cartservice[Deployment], destination: default/emailservice[Deployment], dir1: No Connections, dir2: TCP 9555, diff-type: added -source: default/checkoutservice[Deployment], destination: default/adservice[Deployment], dir1: No Connections, dir2: TCP 9555, diff-type: added -source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], dir1: TCP 7000, dir2: No Connections, diff-type: removed -source: default/frontend[Deployment], destination: default/adservice[Deployment], dir1: TCP 9555, dir2: No Connections, diff-type: removed -source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed \ No newline at end of file +diff-type: changed, source: default/checkoutservice[Deployment], destination: default/cartservice[Deployment], dir1: TCP 7070, dir2: TCP 8000 +diff-type: changed, source: default/checkoutservice[Deployment], destination: default/emailservice[Deployment], dir1: TCP 8080, dir2: TCP 8080,9555 +diff-type: added, source: default/cartservice[Deployment], destination: default/emailservice[Deployment], dir1: No Connections, dir2: TCP 9555 +diff-type: added, source: default/checkoutservice[Deployment], destination: default/adservice[Deployment], dir1: No Connections, dir2: TCP 9555 +diff-type: removed, source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], dir1: TCP 7000, dir2: No Connections +diff-type: removed, source: default/frontend[Deployment], destination: default/adservice[Deployment], dir1: TCP 9555, dir2: No Connections +diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections \ No newline at end of file diff --git a/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.csv b/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.csv index 8436e407..8a20cee1 100644 --- a/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.csv +++ b/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.csv @@ -1,11 +1,11 @@ -source,destination,dir1,dir2,diff-type -default/checkoutservice[Deployment],default/cartservice[Deployment],TCP 7070,TCP 8000,changed -default/checkoutservice[Deployment],default/emailservice[Deployment],TCP 8080,"TCP 8080,9555",changed -0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections,added (workload default/unicorn[Deployment] added) -default/cartservice[Deployment],default/emailservice[Deployment],No Connections,TCP 9555,added -default/checkoutservice[Deployment],default/adservice[Deployment],No Connections,TCP 9555,added -default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,added (workload default/unicorn[Deployment] added) -128.0.0.0-255.255.255.255,default/redis-cart[Deployment],All Connections,No Connections,removed -default/checkoutservice[Deployment],default/currencyservice[Deployment],TCP 7000,No Connections,removed -default/frontend[Deployment],default/adservice[Deployment],TCP 9555,No Connections,removed -default/redis-cart[Deployment],0.0.0.0-255.255.255.255,All Connections,No Connections,removed +diff-type,source,destination,dir1,dir2,workloads-diff-info +changed,default/checkoutservice[Deployment],default/cartservice[Deployment],TCP 7070,TCP 8000, +changed,default/checkoutservice[Deployment],default/emailservice[Deployment],TCP 8080,"TCP 8080,9555", +added,0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections,workload default/unicorn[Deployment] added +added,default/cartservice[Deployment],default/emailservice[Deployment],No Connections,TCP 9555, +added,default/checkoutservice[Deployment],default/adservice[Deployment],No Connections,TCP 9555, +added,default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,workload default/unicorn[Deployment] added +removed,128.0.0.0-255.255.255.255,default/redis-cart[Deployment],All Connections,No Connections, +removed,default/checkoutservice[Deployment],default/currencyservice[Deployment],TCP 7000,No Connections, +removed,default/frontend[Deployment],default/adservice[Deployment],TCP 9555,No Connections, +removed,default/redis-cart[Deployment],0.0.0.0-255.255.255.255,All Connections,No Connections, diff --git a/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.md b/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.md index da9d9dd1..8bb7e4cd 100644 --- a/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.md +++ b/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.md @@ -1,12 +1,12 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| default/checkoutservice[Deployment] | default/cartservice[Deployment] | TCP 7070 | TCP 8000 | changed | -| default/checkoutservice[Deployment] | default/emailservice[Deployment] | TCP 8080 | TCP 8080,9555 | changed | -| 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| default/cartservice[Deployment] | default/emailservice[Deployment] | No Connections | TCP 9555 | added | -| default/checkoutservice[Deployment] | default/adservice[Deployment] | No Connections | TCP 9555 | added | -| default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| 128.0.0.0-255.255.255.255 | default/redis-cart[Deployment] | All Connections | No Connections | removed | -| default/checkoutservice[Deployment] | default/currencyservice[Deployment] | TCP 7000 | No Connections | removed | -| default/frontend[Deployment] | default/adservice[Deployment] | TCP 9555 | No Connections | removed | -| default/redis-cart[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | removed | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| changed | default/checkoutservice[Deployment] | default/cartservice[Deployment] | TCP 7070 | TCP 8000 | | +| changed | default/checkoutservice[Deployment] | default/emailservice[Deployment] | TCP 8080 | TCP 8080,9555 | | +| added | 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections | workload default/unicorn[Deployment] added | +| added | default/cartservice[Deployment] | default/emailservice[Deployment] | No Connections | TCP 9555 | | +| added | default/checkoutservice[Deployment] | default/adservice[Deployment] | No Connections | TCP 9555 | | +| added | default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | workload default/unicorn[Deployment] added | +| removed | 128.0.0.0-255.255.255.255 | default/redis-cart[Deployment] | All Connections | No Connections | | +| removed | default/checkoutservice[Deployment] | default/currencyservice[Deployment] | TCP 7000 | No Connections | | +| removed | default/frontend[Deployment] | default/adservice[Deployment] | TCP 9555 | No Connections | | +| removed | default/redis-cart[Deployment] | 0.0.0.0-255.255.255.255 | All Connections | No Connections | | \ No newline at end of file diff --git a/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.txt b/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.txt index 0d94c4ec..1a901584 100644 --- a/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.txt +++ b/tests/onlineboutique_workloads_changed_netpols_and_workloads/diff_output_from_onlineboutique_workloads.txt @@ -1,11 +1,11 @@ Connectivity diff: -source: default/checkoutservice[Deployment], destination: default/cartservice[Deployment], dir1: TCP 7070, dir2: TCP 8000, diff-type: changed -source: default/checkoutservice[Deployment], destination: default/emailservice[Deployment], dir1: TCP 8080, dir2: TCP 8080,9555, diff-type: changed -source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: default/cartservice[Deployment], destination: default/emailservice[Deployment], dir1: No Connections, dir2: TCP 9555, diff-type: added -source: default/checkoutservice[Deployment], destination: default/adservice[Deployment], dir1: No Connections, dir2: TCP 9555, diff-type: added -source: default/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], dir1: All Connections, dir2: No Connections, diff-type: removed -source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], dir1: TCP 7000, dir2: No Connections, diff-type: removed -source: default/frontend[Deployment], destination: default/adservice[Deployment], dir1: TCP 9555, dir2: No Connections, diff-type: removed -source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections, diff-type: removed \ No newline at end of file +diff-type: changed, source: default/checkoutservice[Deployment], destination: default/cartservice[Deployment], dir1: TCP 7070, dir2: TCP 8000 +diff-type: changed, source: default/checkoutservice[Deployment], destination: default/emailservice[Deployment], dir1: TCP 8080, dir2: TCP 8080,9555 +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/cartservice[Deployment], destination: default/emailservice[Deployment], dir1: No Connections, dir2: TCP 9555 +diff-type: added, source: default/checkoutservice[Deployment], destination: default/adservice[Deployment], dir1: No Connections, dir2: TCP 9555 +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: removed, source: 128.0.0.0-255.255.255.255, destination: default/redis-cart[Deployment], dir1: All Connections, dir2: No Connections +diff-type: removed, source: default/checkoutservice[Deployment], destination: default/currencyservice[Deployment], dir1: TCP 7000, dir2: No Connections +diff-type: removed, source: default/frontend[Deployment], destination: default/adservice[Deployment], dir1: TCP 9555, dir2: No Connections +diff-type: removed, source: default/redis-cart[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: All Connections, dir2: No Connections \ No newline at end of file diff --git a/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.csv b/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.csv index 56ba2e55..85628423 100644 --- a/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.csv +++ b/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.csv @@ -1,5 +1,5 @@ -source,destination,dir1,dir2,diff-type -0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections,added (workload default/unicorn[Deployment] added) -default/redis-cart[Deployment],default/unicorn[Deployment],No Connections,All Connections,added (workload default/unicorn[Deployment] added) -default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,added (workload default/unicorn[Deployment] added) -default/unicorn[Deployment],default/redis-cart[Deployment],No Connections,All Connections,added (workload default/unicorn[Deployment] added) +diff-type,source,destination,dir1,dir2,workloads-diff-info +added,0.0.0.0-255.255.255.255,default/unicorn[Deployment],No Connections,All Connections,workload default/unicorn[Deployment] added +added,default/redis-cart[Deployment],default/unicorn[Deployment],No Connections,All Connections,workload default/unicorn[Deployment] added +added,default/unicorn[Deployment],0.0.0.0-255.255.255.255,No Connections,All Connections,workload default/unicorn[Deployment] added +added,default/unicorn[Deployment],default/redis-cart[Deployment],No Connections,All Connections,workload default/unicorn[Deployment] added diff --git a/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.md b/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.md index d8ed7c54..0252fe15 100644 --- a/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.md +++ b/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.md @@ -1,6 +1,6 @@ -| source | destination | dir1 | dir2 | diff-type | -|--------|-------------|------|------|-----------| -| 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| default/redis-cart[Deployment] | default/unicorn[Deployment] | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | -| default/unicorn[Deployment] | default/redis-cart[Deployment] | No Connections | All Connections | added (workload default/unicorn[Deployment] added) | \ No newline at end of file +| diff-type | source | destination | dir1 | dir2 | workloads-diff-info | +|-----------|--------|-------------|------|------|---------------------| +| added | 0.0.0.0-255.255.255.255 | default/unicorn[Deployment] | No Connections | All Connections | workload default/unicorn[Deployment] added | +| added | default/redis-cart[Deployment] | default/unicorn[Deployment] | No Connections | All Connections | workload default/unicorn[Deployment] added | +| added | default/unicorn[Deployment] | 0.0.0.0-255.255.255.255 | No Connections | All Connections | workload default/unicorn[Deployment] added | +| added | default/unicorn[Deployment] | default/redis-cart[Deployment] | No Connections | All Connections | workload default/unicorn[Deployment] added | \ No newline at end of file diff --git a/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.txt b/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.txt index 93be51aa..76f16f69 100644 --- a/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.txt +++ b/tests/onlineboutique_workloads_changed_workloads/diff_output_from_onlineboutique_workloads.txt @@ -1,5 +1,5 @@ Connectivity diff: -source: 0.0.0.0-255.255.255.255, destination: default/unicorn[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: default/redis-cart[Deployment], destination: default/unicorn[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: default/unicorn[Deployment], destination: 0.0.0.0-255.255.255.255, dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) -source: default/unicorn[Deployment], destination: default/redis-cart[Deployment], dir1: No Connections, dir2: All Connections, diff-type: added (workload default/unicorn[Deployment] added) \ No newline at end of file +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 --git a/tests/onlineboutique_workloads_with_ingress/diff_output_from_onlineboutique_workloads.csv b/tests/onlineboutique_workloads_with_ingress/diff_output_from_onlineboutique_workloads.csv index ae5b8656..59a0513c 100644 --- a/tests/onlineboutique_workloads_with_ingress/diff_output_from_onlineboutique_workloads.csv +++ b/tests/onlineboutique_workloads_with_ingress/diff_output_from_onlineboutique_workloads.csv @@ -1,3 +1,3 @@ -source,destination,dir1,dir2,diff-type -default/redis-cart[Deployment],default/frontend[Deployment],No Connections,TCP 8080,added -{ingress-controller},default/frontend[Deployment],No Connections,TCP 8080,added +diff-type,source,destination,dir1,dir2,workloads-diff-info +added,default/redis-cart[Deployment],default/frontend[Deployment],No Connections,TCP 8080, +added,{ingress-controller},default/frontend[Deployment],No Connections,TCP 8080,