From 8b2a2d1b0948ce26c77e71c785875896dcbfb5a9 Mon Sep 17 00:00:00 2001 From: Andrei Zhozhin Date: Mon, 30 Jan 2023 14:14:01 +0000 Subject: [PATCH] test ssl-conf-command with multiple options --- test/e2e/settings/ssl_conf_command.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/settings/ssl_conf_command.go b/test/e2e/settings/ssl_conf_command.go index 72e4bdd66..3a8a07a21 100644 --- a/test/e2e/settings/ssl_conf_command.go +++ b/test/e2e/settings/ssl_conf_command.go @@ -30,12 +30,13 @@ var _ = framework.DescribeSetting("ssl-conf-command", func() { ginkgo.It("Add ssl conf command", func() { wlKey := "ssl-conf-command" - wlValue := "Ciphersuites TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256" + wlValue := "Options PrioritizeChaCha,Ciphersuites TLS_CHACHA20_POLY1305_SHA256" f.UpdateNginxConfigMapData(wlKey, wlValue) f.WaitForNginxConfiguration(func(cfg string) bool { - return strings.Contains(cfg, fmt.Sprintf("ssl-conf-command '%s';", wlValue)) + return strings.Contains(cfg, "ssl-conf-command 'Options PrioritizeChaCha';") && + strings.Contains(cfg, "ssl-conf-command 'Ciphersuites TLS_CHACHA20_POLY1305_SHA256';") }) }) })