Skip to content

Commit

Permalink
simplify check to use new internal encryption flags
Browse files Browse the repository at this point in the history
  • Loading branch information
KauzClay committed Oct 2, 2023
1 parent 9e16097 commit 3589d74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/autoscale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package e2e
import (
"context"
"strconv"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -175,8 +174,7 @@ func TestTargetBurstCapacity(t *testing.T) {
}

// TODO: Remove this when "activator always stay in path" is eliminated.
dataplaneTrustMode := cm.Data[netcfg.SystemInternalTLSKey]
if (dataplaneTrustMode != "" && !strings.EqualFold(dataplaneTrustMode, string(netcfg.EncryptionDisabled))) || strings.EqualFold(cm.Data[netcfg.InternalEncryptionKey], "true") {
if systemInternalTLS, ok := cm.Data[netcfg.SystemInternalTLSKey]; ok && (systemInternalTLS != string(netcfg.EncryptionDisabled)) {
t.Skip("Skipping TestTargetBurstCapacity as activator always stay in path.")
}

Expand Down

0 comments on commit 3589d74

Please sign in to comment.