Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for AdminNetworkPolicy #388

Merged
merged 43 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0d03b9a
Added some ANP tests from policy-assistant.
tanyaveksler Jul 23, 2024
82364f6
fixing lint errors
tanyaveksler Jul 23, 2024
b9230c4
Fixing lint error
tanyaveksler Jul 28, 2024
a38ec50
Reorganized testing infrastructure from for tests fro parsed resource…
tanyaveksler Jul 28, 2024
53259a5
Merge branch 'support_admin_netpolicy' into tests_for_admin_netpolicy
tanyaveksler Jul 28, 2024
45a7181
fixing lint errors
tanyaveksler Jul 28, 2024
1805549
return error if ANPs are without name or not unique names
shireenf-ibm Jul 30, 2024
6e77b96
Revert "return error if ANPs are without name or not unique names"
shireenf-ibm Jul 30, 2024
dd0a3b4
Added ANP/BANP names in tests.
tanyaveksler Jul 30, 2024
0861c19
:Merge branch 'tests_for_admin_netpolicy' of github.com:np-guard/netp…
tanyaveksler Jul 30, 2024
87a0ba6
Fixed lint errors.
tanyaveksler Jul 30, 2024
a060dd8
Fixed lint errors
tanyaveksler Jul 30, 2024
dedbf4b
Added eval parsed resources tests (along with connlist tests).
tanyaveksler Aug 4, 2024
2dabef1
fixing lint errors
tanyaveksler Aug 4, 2024
1f97afc
fixing lint errors
tanyaveksler Aug 4, 2024
1f1a67c
Added testing of CheckIfAllowed and CheckIfAllowedNew
tanyaveksler Aug 6, 2024
28f746d
fixing lint errors
tanyaveksler Aug 6, 2024
8ad121a
making linter happy
tanyaveksler Aug 6, 2024
63aa720
Reorganized eval ANP tests, to not depend on connlist.
tanyaveksler Aug 13, 2024
e9efb41
Small fixes.
tanyaveksler Aug 13, 2024
735eb73
Merge branch 'support_admin_netpolicy' into tests_for_admin_netpolicy
tanyaveksler Aug 13, 2024
e4c3277
small fixes
tanyaveksler Aug 13, 2024
5081036
Changed expected results to not use "all but" expressions.
tanyaveksler Aug 13, 2024
82248ba
making linter happy
tanyaveksler Aug 13, 2024
821f67e
making linter happy
tanyaveksler Aug 13, 2024
6c20baa
making lint happy
tanyaveksler Aug 13, 2024
9f2c3ac
making linter happy
tanyaveksler Aug 13, 2024
1eb9520
make linter happy
tanyaveksler Aug 13, 2024
476d4de
Creating k8sObjects during a test run, rather then in a test creation.
tanyaveksler Aug 13, 2024
9bf8e68
making lint happy
tanyaveksler Aug 13, 2024
08c713a
make lint happy
tanyaveksler Aug 13, 2024
d4cebea
linter
tanyaveksler Aug 13, 2024
c37634c
shutting up linter
tanyaveksler Aug 13, 2024
63190a7
Moved to parsed_resources_tests some functions used only there.
tanyaveksler Aug 20, 2024
58f973c
Added fake pod status IP fields
tanyaveksler Aug 20, 2024
d6b85d8
Avoiding unnecessary exports;
tanyaveksler Aug 20, 2024
73fabd3
Merge branch 'support_admin_netpolicy' into tests_for_admin_netpolicy
tanyaveksler Aug 20, 2024
b922829
Merge branch 'support_admin_netpolicy' into tests_for_admin_netpolicy
tanyaveksler Aug 25, 2024
cece146
Making linter happy
tanyaveksler Aug 25, 2024
7f90b7b
Update pkg/internal/testutils/parsed_resources_tests.go
tanyaveksler Sep 3, 2024
a3d0a43
Update pkg/internal/testutils/parsed_resources_tests.go
tanyaveksler Sep 3, 2024
9bc0047
Fixed typos;
tanyaveksler Sep 3, 2024
55a6680
Merge branch 'support_admin_netpolicy' into tests_for_admin_netpolicy
tanyaveksler Sep 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,158 changes: 1,158 additions & 0 deletions pkg/internal/testutils/parsed_resources_tests.go

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions pkg/netpol/connlist/connlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,3 +1236,30 @@ var goodPathTests = []struct {
outputFormats: []string{output.TextFormat},
},
}

func runParsedResourcesConnlistTests(t *testing.T, testList []testutils.ParsedResourcesTest) {
t.Helper()
for i := 0; i < len(testList); i++ {
test := &testList[i]
t.Run(test.Name, func(t *testing.T) {
t.Parallel()
analyzer := NewConnlistAnalyzer(WithOutputFormat(test.OutputFormat))
res, _, err := analyzer.connsListFromParsedResources(test.Getk8sObjects())
require.Nil(t, err, test.TestInfo)
out, err := analyzer.ConnectionsListToString(res)
require.Nil(t, err, test.TestInfo)
if test.Banp == nil { // Tanya - remove this 'if' whenever BaselineAdminNetworkPolicy is implemented
testutils.CheckActualVsExpectedOutputMatch(t, test.ExpectedOutputFileName, out,
test.TestInfo, currentPkg)
}
})
}
}

func TestAllParsedResourcesConnlistTests(t *testing.T) {
runParsedResourcesConnlistTests(t, testutils.ANPConnectivityFromParsedResourcesTest)
runParsedResourcesConnlistTests(t, testutils.BANPConnectivityFromParsedResourcesTest)
runParsedResourcesConnlistTests(t, testutils.ANPWithNetPolV1FromParsedResourcesTest)
runParsedResourcesConnlistTests(t, testutils.BANPWithNetPolV1FromParsedResourcesTest)
runParsedResourcesConnlistTests(t, testutils.ANPWithBANPFromParsedResourcesTest)
}
84 changes: 83 additions & 1 deletion pkg/netpol/eval/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"
"sigs.k8s.io/yaml"

"github.com/stretchr/testify/require"

"github.com/np-guard/netpol-analyzer/pkg/internal/output"
"github.com/np-guard/netpol-analyzer/pkg/internal/testutils"
"github.com/np-guard/netpol-analyzer/pkg/logger"
Expand Down Expand Up @@ -1090,7 +1092,7 @@ func TestGeneralPerformance(t *testing.T) {
t.Skip("skipping TestGeneralPerformance")
}
path := testutils.GetTestDirPath("onlineboutique")
// list of connections to test with, for CheckIfAllowed / CheckIfAllowedNew
// list of connections to test with, for CheckIfAllowed / checkIfAllowedNew
connectionsListForTest := []TestEntry{
{protocol: "tcp", port: "5050"},
{protocol: "tcp", port: "3550"},
Expand Down Expand Up @@ -1792,3 +1794,83 @@ func TestPolicyEngineWithWorkloads(t *testing.T) {
t.Fatalf("TestPolicyEngineWithWorkloads: unexpected podsMap len: %d ", len(pe.podsMap))
}
}

const defaultPort = "80"

func pickContainedConn(conn *common.ConnectionSet) (resProtocol, resPort string) {
if conn.IsEmpty() {
return "", ""
}
if conn.AllowAll {
return string(v1.ProtocolTCP), defaultPort
}
for protocol, portSet := range conn.AllowedProtocols {
resProtocol = string(protocol)
if portSet.IsAll() {
resPort = defaultPort
} else {
resPort = fmt.Sprintf("%d", portSet.Ports.Min())
}
break
}
return resProtocol, resPort
}

func pickUncontainedConn(conn *common.ConnectionSet) (resProtocol, resPort string) {
complementSet := common.MakeConnectionSet(true)
complementSet.Subtract(conn)
return pickContainedConn(complementSet)
}

func runParsedResourcesEvalTests(t *testing.T, testList []testutils.ParsedResourcesTest) {
t.Helper()
for i := 0; i < len(testList); i++ {
test := &testList[i]
t.Run(test.Name, func(t *testing.T) {
t.Parallel()
if test.Banp != nil { // Tanya - remove this 'if' whenever BaselineAdminNetworkPolicy is implemented
return // Skip tests with BANP, until implemented
}
pe, err := NewPolicyEngineWithObjects(test.Getk8sObjects())
require.Nil(t, err, test.TestInfo)
for _, evalTest := range test.EvalTests {
src := evalTest.Src
dst := evalTest.Dst
allowedConns, err := pe.allAllowedConnections(src, dst)
require.Nil(t, err, test.TestInfo)
require.Equal(t, evalTest.ExpResult, allowedConns.String())

contProtocol, contPort := pickContainedConn(allowedConns)
if contPort != "" {
var res bool
// Tanya: uncomment whenever CheckIfAllowed supports ANPs
// res, err := pe.CheckIfAllowed(srcForEval, dstForEval, contProtocol, contPort)
// require.Nil(t, err, test.TestInfo)
// require.Equal(t, true, res, test.TestInfo)
res, err = pe.checkIfAllowedNew(src, dst, contProtocol, contPort)
require.Nil(t, err, test.TestInfo)
require.Equal(t, true, res, test.TestInfo)
}
uncontProtocol, uncontPort := pickUncontainedConn(allowedConns)
if uncontPort != "" {
var res bool
// Tanya: uncomment whenever CheckIfAllowed supports ANPs
// res, err := pe.CheckIfAllowed(srcForEval, dstForEval, uncontProtocol, uncontPort)
// require.Nil(t, err, test.TestInfo)
// require.Equal(t, false, res, test.TestInfo)
res, err = pe.checkIfAllowedNew(src, dst, uncontProtocol, uncontPort)
require.Nil(t, err, test.TestInfo)
require.Equal(t, false, res, test.TestInfo)
}
}
})
}
}

func TestAllParsedResourcesEvalTests(t *testing.T) {
runParsedResourcesEvalTests(t, testutils.ANPConnectivityFromParsedResourcesTest)
runParsedResourcesEvalTests(t, testutils.BANPConnectivityFromParsedResourcesTest)
runParsedResourcesEvalTests(t, testutils.ANPWithNetPolV1FromParsedResourcesTest)
runParsedResourcesEvalTests(t, testutils.BANPWithNetPolV1FromParsedResourcesTest)
runParsedResourcesEvalTests(t, testutils.ANPWithBANPFromParsedResourcesTest)
}
20 changes: 20 additions & 0 deletions test_outputs/connlist/test10_anp_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
x/a[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
x/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
x/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
x/b[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
y/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
y/a[Pod] => y/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
y/b[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
y/b[Pod] => y/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-79,82-65535
20 changes: 20 additions & 0 deletions test_outputs/connlist/test1_anp_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : All Connections
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : All Connections
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : All Connections
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
20 changes: 20 additions & 0 deletions test_outputs/connlist/test1_anp_npv1_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : UDP 80
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : All Connections
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : TCP 80-81,UDP 80-81
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : TCP 80-81,UDP 80-81
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : TCP 80-81,UDP 80-81
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
20 changes: 20 additions & 0 deletions test_outputs/connlist/test2_anp_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : All Connections
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : All Connections
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : All Connections
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
20 changes: 20 additions & 0 deletions test_outputs/connlist/test2_anp_npv1_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : UDP 80
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : All Connections
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : TCP 80-81,UDP 80-81
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : UDP 80
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : UDP 80
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
20 changes: 20 additions & 0 deletions test_outputs/connlist/test3_anp_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : All Connections
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,81-65535,UDP 1-65535
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : All Connections
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : All Connections
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
90 changes: 90 additions & 0 deletions test_outputs/connlist/test4_anp_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/c[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/c[Pod] : All Connections
0.0.0.0-255.255.255.255 => z/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => z/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => z/c[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : All Connections
x/a[Pod] => x/c[Pod] : All Connections
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/a[Pod] => y/c[Pod] : All Connections
x/a[Pod] => z/a[Pod] : All Connections
x/a[Pod] => z/b[Pod] : All Connections
x/a[Pod] => z/c[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-65535
x/b[Pod] => x/c[Pod] : All Connections
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
x/b[Pod] => y/c[Pod] : All Connections
x/b[Pod] => z/a[Pod] : All Connections
x/b[Pod] => z/b[Pod] : All Connections
x/b[Pod] => z/c[Pod] : All Connections
x/c[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/c[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-79,82-65535,UDP 1-65535
x/c[Pod] => x/b[Pod] : All Connections
x/c[Pod] => y/a[Pod] : All Connections
x/c[Pod] => y/b[Pod] : All Connections
x/c[Pod] => y/c[Pod] : All Connections
x/c[Pod] => z/a[Pod] : All Connections
x/c[Pod] => z/b[Pod] : All Connections
x/c[Pod] => z/c[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : All Connections
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => x/c[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/a[Pod] => y/c[Pod] : All Connections
y/a[Pod] => z/a[Pod] : All Connections
y/a[Pod] => z/b[Pod] : All Connections
y/a[Pod] => z/c[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : All Connections
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => x/c[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
y/b[Pod] => y/c[Pod] : All Connections
y/b[Pod] => z/a[Pod] : All Connections
y/b[Pod] => z/b[Pod] : All Connections
y/b[Pod] => z/c[Pod] : All Connections
y/c[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/c[Pod] => x/a[Pod] : All Connections
y/c[Pod] => x/b[Pod] : All Connections
y/c[Pod] => x/c[Pod] : All Connections
y/c[Pod] => y/a[Pod] : All Connections
y/c[Pod] => y/b[Pod] : All Connections
y/c[Pod] => z/a[Pod] : All Connections
y/c[Pod] => z/b[Pod] : All Connections
y/c[Pod] => z/c[Pod] : All Connections
z/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
z/a[Pod] => x/a[Pod] : All Connections
z/a[Pod] => x/b[Pod] : All Connections
z/a[Pod] => x/c[Pod] : All Connections
z/a[Pod] => y/a[Pod] : All Connections
z/a[Pod] => y/b[Pod] : All Connections
z/a[Pod] => y/c[Pod] : All Connections
z/a[Pod] => z/b[Pod] : All Connections
z/a[Pod] => z/c[Pod] : All Connections
z/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
z/b[Pod] => x/a[Pod] : All Connections
z/b[Pod] => x/b[Pod] : All Connections
z/b[Pod] => x/c[Pod] : All Connections
z/b[Pod] => y/a[Pod] : All Connections
z/b[Pod] => y/b[Pod] : All Connections
z/b[Pod] => y/c[Pod] : All Connections
z/b[Pod] => z/a[Pod] : All Connections
z/b[Pod] => z/c[Pod] : All Connections
z/c[Pod] => 0.0.0.0-255.255.255.255 : All Connections
z/c[Pod] => x/a[Pod] : All Connections
z/c[Pod] => x/b[Pod] : All Connections
z/c[Pod] => x/c[Pod] : All Connections
z/c[Pod] => y/a[Pod] : All Connections
z/c[Pod] => y/b[Pod] : All Connections
z/c[Pod] => y/c[Pod] : All Connections
z/c[Pod] => z/a[Pod] : All Connections
z/c[Pod] => z/b[Pod] : All Connections
20 changes: 20 additions & 0 deletions test_outputs/connlist/test5_anp_conn_from_parsed_res.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0.0.0-255.255.255.255 => x/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => x/b[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/a[Pod] : All Connections
0.0.0.0-255.255.255.255 => y/b[Pod] : All Connections
x/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/a[Pod] => x/b[Pod] : All Connections
x/a[Pod] => y/a[Pod] : All Connections
x/a[Pod] => y/b[Pod] : All Connections
x/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
x/b[Pod] => x/a[Pod] : All Connections
x/b[Pod] => y/a[Pod] : All Connections
x/b[Pod] => y/b[Pod] : All Connections
y/a[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/a[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535
y/a[Pod] => x/b[Pod] : All Connections
y/a[Pod] => y/b[Pod] : All Connections
y/b[Pod] => 0.0.0.0-255.255.255.255 : All Connections
y/b[Pod] => x/a[Pod] : SCTP 1-65535,TCP 1-65535,UDP 1-79,81-65535
y/b[Pod] => x/b[Pod] : All Connections
y/b[Pod] => y/a[Pod] : All Connections
Loading