mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
SMTP example for the ini resource was incorrect and did not work (#2461)
* SMTP example for the ini resource was incorrect and did not work Obvious fix. * Fixed documentation and removed semicolons as the ini parser includes those semicolons Obvious fix.
This commit is contained in:
parent
a36d65bdee
commit
2cfc0acaae
1 changed files with 5 additions and 4 deletions
|
@ -52,13 +52,14 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
For example, a PHP INI file located at contains the following settings:
|
||||
|
||||
; SMTP = smtp.gmail.com
|
||||
; smtp_port = 465
|
||||
[mail function]
|
||||
SMTP = smtp.gmail.com
|
||||
smtp_port = 465
|
||||
|
||||
and can be tested like this:
|
||||
|
||||
describe ini(/etc/php5/apache2/php.ini) do
|
||||
its('smtp_port') { should eq('465') }
|
||||
describe ini('/etc/php5/apache2/php.ini') do
|
||||
its('mail function.smtp_port') { should eq('465') }
|
||||
end
|
||||
|
||||
<br>
|
||||
|
|
Loading…
Add table
Reference in a new issue