Skip to content

Commit

Permalink
connectivity: don't run encryption tests on single node
Browse files Browse the repository at this point in the history
Disable the encryption tests when running the connectivity tests on a
single node cluster, as they require that source and destination are
hosted on different nodes.

Signed-off-by: Marco Iorio <[email protected]>
  • Loading branch information
giorio94 committed Oct 16, 2023
1 parent 369851d commit 98147cf
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions connectivity/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,19 +745,21 @@ func Run(ctx context.Context, ct *check.ConnectivityTest, addExtraTests func(*ch
tests.OutsideToNodePort(),
)

// Encryption checks are always executed as a sanity check, asserting whether
// unencrypted packets shall, or shall not, be observed based on the feature set.
ct.NewTest("pod-to-pod-encryption").
WithScenarios(
tests.PodToPodEncryption(features.RequireEnabled(features.EncryptionPod)),
)
ct.NewTest("node-to-node-encryption").
WithScenarios(
tests.NodeToNodeEncryption(
features.RequireEnabled(features.EncryptionPod),
features.RequireEnabled(features.EncryptionNode),
),
)
if !ct.Params().SingleNode {
// Encryption checks are always executed as a sanity check, asserting whether
// unencrypted packets shall, or shall not, be observed based on the feature set.
ct.NewTest("pod-to-pod-encryption").
WithScenarios(
tests.PodToPodEncryption(features.RequireEnabled(features.EncryptionPod)),
)
ct.NewTest("node-to-node-encryption").
WithScenarios(
tests.NodeToNodeEncryption(
features.RequireEnabled(features.EncryptionPod),
features.RequireEnabled(features.EncryptionNode),
),
)
}

if ct.Params().IncludeUnsafeTests {
ct.NewTest("egress-gateway").
Expand Down

0 comments on commit 98147cf

Please sign in to comment.