From ea10427b6410eedab333ac3fb2822886612aad32 Mon Sep 17 00:00:00 2001 From: Oliver O'Mahony Date: Wed, 15 Jan 2025 15:35:40 +0000 Subject: [PATCH] added http block --- sdk/config_helpers_test.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/sdk/config_helpers_test.go b/sdk/config_helpers_test.go index cdff764d8..ac6c1ce74 100644 --- a/sdk/config_helpers_test.go +++ b/sdk/config_helpers_test.go @@ -801,19 +801,21 @@ var tests = []struct { }, { fileName: "/tmp/testdata/nginx/lua.conf", - config: `server { - listen 443 ssl; - server_name lua.example.com; - - ssl_certificate /etc/nginx/ssl/server.cert; - ssl_certificate_key /etc/nginx/ssl/server.key; - - ssl_certificate_by_lua_block { - print("Test lua ssl certificate!") - } -} + config: `http { + server { + listen 443 ssl; + server_name lua.example.com; + + ssl_certificate /etc/nginx/ssl/server.cert; + ssl_certificate_key /etc/nginx/ssl/server.key; -server { + ssl_certificate_by_lua_block { + print("Test lua ssl certificate!") + } + } + + server { + } }`, plusApi: "", expected: &proto.NginxConfig{