mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Changes 'matcher' to 'property' in examples (#2499)
Signed-off-by: kagarmoe <kgarmoe@chef.io>
This commit is contained in:
parent
7dc72c7491
commit
010ca42b2d
5 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ A `command` resource block declares a command to be run, one (or more) expected
|
||||||
|
|
||||||
describe bash('command') do
|
describe bash('command') do
|
||||||
it { should exist }
|
it { should exist }
|
||||||
its('matcher') { should eq 'output' }
|
its('property') { should eq 'output' }
|
||||||
end
|
end
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|
|
@ -14,7 +14,7 @@ A `command` resource block declares a command to be run, one (or more) expected
|
||||||
|
|
||||||
describe command('command') do
|
describe command('command') do
|
||||||
it { should exist }
|
it { should exist }
|
||||||
its('matcher') { should eq 'output' }
|
its('property') { should eq 'output' }
|
||||||
end
|
end
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|
|
@ -13,7 +13,7 @@ Use the `etc_group` InSpec audit resource to test groups that are defined on Lin
|
||||||
A `etc_group` resource block declares a collection of properties to be tested:
|
A `etc_group` resource block declares a collection of properties to be tested:
|
||||||
|
|
||||||
describe etc_group('path') do
|
describe etc_group('path') do
|
||||||
its('matcher') { should eq 'some_value' }
|
its('property') { should eq 'some_value' }
|
||||||
end
|
end
|
||||||
|
|
||||||
or:
|
or:
|
||||||
|
|
|
@ -13,7 +13,7 @@ Use the `os_env` InSpec audit resource to test the environment variables for the
|
||||||
A `os_env` resource block declares an environment variable, and then declares its value:
|
A `os_env` resource block declares an environment variable, and then declares its value:
|
||||||
|
|
||||||
describe os_env('VARIABLE') do
|
describe os_env('VARIABLE') do
|
||||||
its('matcher') { should eq 1 }
|
its('property') { should eq 1 }
|
||||||
end
|
end
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|
|
@ -17,7 +17,7 @@ A `powershell` resource block declares a Powershell script to be tested, and the
|
||||||
EOH
|
EOH
|
||||||
|
|
||||||
describe powershell(script) do
|
describe powershell(script) do
|
||||||
its('matcher') { should eq 'output' }
|
its('property') { should eq 'output' }
|
||||||
end
|
end
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in a new issue