mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
FIX: file(hba_config_file) test in documentation, it is not working and rubocop detect some issues
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
This commit is contained in:
parent
174bbe89fb
commit
216a6aeac1
1 changed files with 3 additions and 3 deletions
|
@ -1239,9 +1239,9 @@ The following complete example tests the ``pg_hba.conf`` file in |postgresql| fo
|
|||
.. code-block:: bash
|
||||
|
||||
describe file(hba_config_file) do
|
||||
its('content') { should match /local\s.*?all\s.*?all\s.*?md5/ }
|
||||
its('content') { should match %r{/host\s.*?all\s.*?all\s.*?127.0.0.1\/32\s.*?md5/} }
|
||||
its('content') { should match %r{/host\s.*?all\s.*?all\s.*?::1\/128\s.*?md5/} }
|
||||
its('content') { should match(%r{local\s.*?all\s.*?all\s.*?md5}) }
|
||||
its('content') { should match(%r{host\s.*?all\s.*?all\s.*?127.0.0.1\/32\s.*?md5}) }
|
||||
its('content') { should match(%r{host\s.*?all\s.*?all\s.*?::1\/128\s.*?md5}) }
|
||||
end
|
||||
|
||||
exist
|
||||
|
|
Loading…
Reference in a new issue