Skip to content

Commit

Permalink
Add e2e tests for node and cidr peers
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Seetharaman <[email protected]>
  • Loading branch information
tssurya committed Apr 19, 2024
1 parent c838def commit e1b717c
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions test/conformance/network_policy_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
)

const (
showDebug = true
shouldCleanup = true
NetworkPolicyAPIRepoURL = "https://raw.githubusercontent.com/kubernetes-sigs/network-policy-api/v0.1.3"
showDebug = true
shouldCleanup = true
NetworkPolicyAPIRepoURL = "https://raw.githubusercontent.com/kubernetes-sigs/network-policy-api/v0.1.3"
)

var conformanceTestsBaseManifests = fmt.Sprintf("%s/conformance/base/manifests.yaml", NetworkPolicyAPIRepoURL)
Expand Down Expand Up @@ -59,13 +59,19 @@ func TestNetworkPolicyV2Conformance(t *testing.T) {
cSuite, err := suite.NewConformanceProfileTestSuite(
suite.ConformanceProfileOptions{
Options: suite.Options{
Client: client,
ClientSet: clientset,
KubeConfig: *cfg,
Debug: showDebug,
CleanupBaseResources: shouldCleanup,
BaseManifests: conformanceTestsBaseManifests,
TimeoutConfig: netpolv1config.TimeoutConfig{GetTimeout: 300 * time.Second},
Client: client,
ClientSet: clientset,
KubeConfig: *cfg,
Debug: showDebug,
CleanupBaseResources: shouldCleanup,
SupportedFeatures: sets.New(
suite.SupportAdminNetworkPolicyEgressNodePeers,
suite.SupportBaselineAdminNetworkPolicyEgressNodePeers,
suite.SupportAdminNetworkPolicyEgressInlineCIDRPeers,
suite.SupportBaselineAdminNetworkPolicyEgressInlineCIDRPeers,
),
BaseManifests: conformanceTestsBaseManifests,
TimeoutConfig: netpolv1config.TimeoutConfig{GetTimeout: 300 * time.Second},
},
Implementation: confv1a1.Implementation{
Organization: "ovn-org",
Expand Down

0 comments on commit e1b717c

Please sign in to comment.