Skip to content

Commit

Permalink
added http block
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Jan 15, 2025
1 parent bd737d2 commit ea10427
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions sdk/config_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ea10427

Please sign in to comment.