Skip to content

Commit

Permalink
fixup! fix node-to-node encryption tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Aug 2, 2023
1 parent 58b7b18 commit e9833c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions connectivity/tests/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
"sync"
"time"

"github.com/cilium/cilium-cli/connectivity/check"
"github.com/cilium/cilium/pkg/defaults"

"github.com/cilium/cilium-cli/connectivity/check"
)

type requestType int
Expand Down Expand Up @@ -56,7 +57,7 @@ func getInterNodeIface(ctx context.Context, t *check.Test, clientHost *check.Pod

// getSourceAddress determines the source IP address we want to use for
// capturing packet. If direct routing is used, the source IP is the client IP.
func getSourceAddress(ctx context.Context, t *check.Test, iface string, client,
func getSourceAddress(ctx context.Context, t *check.Test, client,
clientHost *check.Pod, ipFam check.IPFamily, dstIP string,
) string {
if tunnelStatus, ok := t.Context().Feature(check.FeatureTunnel); ok &&
Expand Down Expand Up @@ -123,7 +124,7 @@ func testNoTrafficLeak(ctx context.Context, t *check.Test, s check.Scenario,
) {
dstAddr := server.Address(ipFam)
iface := getInterNodeIface(ctx, t, clientHost, dstAddr)
srcAddr := getSourceAddress(ctx, t, iface, client, clientHost, ipFam, dstAddr)
srcAddr := getSourceAddress(ctx, t, client, clientHost, ipFam, dstAddr)

bgStdout := &safeBuffer{}
bgStderr := &safeBuffer{}
Expand Down

0 comments on commit e9833c2

Please sign in to comment.