From 3589d748554f2146733cc97efeb0505e20f61bbd Mon Sep 17 00:00:00 2001 From: Clay Kauzlaric Date: Mon, 2 Oct 2023 11:21:38 -0400 Subject: [PATCH] simplify check to use new internal encryption flags --- test/e2e/autoscale_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/e2e/autoscale_test.go b/test/e2e/autoscale_test.go index 2f82026fcf14..bfe6d5fa904f 100644 --- a/test/e2e/autoscale_test.go +++ b/test/e2e/autoscale_test.go @@ -22,7 +22,6 @@ package e2e import ( "context" "strconv" - "strings" "testing" "time" @@ -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.") }