add negative test for log_format
This commit is contained in:
parent
2e221a7e0f
commit
9647d1278f
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,12 @@ describe 'nginx::config' do
|
|||
' log_format format2 \'FORMAT2\';',
|
||||
],
|
||||
},
|
||||
{
|
||||
:title => 'should not set log formats',
|
||||
:attr => 'log_format',
|
||||
:value => {},
|
||||
:notmatch => /log_format/,
|
||||
},
|
||||
{
|
||||
:title => 'should set access_log',
|
||||
:attr => 'http_access_log',
|
||||
|
|
Loading…
Reference in a new issue