mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +02:00
New switch for QuotedStrings allows retainer of quotes but my test fails
This commit is contained in:
@@ -119,10 +119,13 @@ class TestRawNginxParser(unittest.TestCase):
|
|||||||
[['listen', '*:443'],
|
[['listen', '*:443'],
|
||||||
[['location', '/'],
|
[['location', '/'],
|
||||||
[['body_filter_by_lua',
|
[['body_filter_by_lua',
|
||||||
'ngx.ctx.buffered = (ngx.ctx.buffered or "") .. string.sub(ngx.arg[1], 1, 1000)\n'
|
'\'ngx.ctx.buffered = (ngx.ctx.buffered or "")'
|
||||||
' if ngx.arg[2] then\n'
|
' .. string.sub(ngx.arg[1], 1, 1000)\n'
|
||||||
' ngx.var.resp_body = ngx.ctx.buffered\n'
|
' '
|
||||||
' end']]]]]]]])
|
'if ngx.arg[2] then\n'
|
||||||
|
' '
|
||||||
|
'ngx.var.resp_body = ngx.ctx.buffered\n'
|
||||||
|
' end\'']]]]]]]])
|
||||||
|
|
||||||
def test_abort_on_parse_failure(self):
|
def test_abort_on_parse_failure(self):
|
||||||
with open(util.get_data_filename('broken.conf')) as handle:
|
with open(util.get_data_filename('broken.conf')) as handle:
|
||||||
|
|||||||
Reference in New Issue
Block a user