From 4ba93fd347fc33fa52f6c421b5778654dd1366e9 Mon Sep 17 00:00:00 2001 From: sgayangi Date: Tue, 2 Jan 2024 18:50:34 +0530 Subject: [PATCH] Fix test case failures --- adapter/internal/operator/synchronizer/synchronizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/internal/operator/synchronizer/synchronizer.go b/adapter/internal/operator/synchronizer/synchronizer.go index 1d137fba7f..d446e40657 100644 --- a/adapter/internal/operator/synchronizer/synchronizer.go +++ b/adapter/internal/operator/synchronizer/synchronizer.go @@ -163,7 +163,7 @@ func GenerateAdapterInternalAPI(apiState APIState, httpRoute *HTTPRouteState, en adapterInternalAPI.SetMutualSSL(apiState.MutualSSL.Required) adapterInternalAPI.SetClientCerts(apiState.APIDefinition.Name, apiState.MutualSSL.ClientCertificates) } - if adapterInternalAPI.IsSystemAPI || apiState.MutualSSL == nil { + if adapterInternalAPI.IsSystemAPI || apiState.MutualSSL == nil || apiState.MutualSSL.Required == "" { adapterInternalAPI.SetDisableMtls(true) }