mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Refactore json docs (#2551)
* Refactore json docs Signed-off-by: kagarmoe <kgarmoe@chef.io>
This commit is contained in:
parent
2ed473dcbb
commit
a0db14485a
1 changed files with 6 additions and 5 deletions
|
@ -43,6 +43,12 @@ where
|
|||
|
||||
The following examples show how to use this InSpec audit resource.
|
||||
|
||||
### name
|
||||
|
||||
The `name` matcher tests the value of the filename as read from a JSON file versus the value declared in the test:
|
||||
|
||||
its('name') { should eq '/tmp/example.json' }
|
||||
|
||||
### Test a cookbook version in a policyfile.lock.json file
|
||||
|
||||
describe json('policyfile.lock.json') do
|
||||
|
@ -55,8 +61,3 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
For a full list of available matchers, please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).
|
||||
|
||||
### name
|
||||
|
||||
The `name` matcher tests the value of `name` as read from a JSON file versus the value declared in the test:
|
||||
|
||||
its('name') { should eq 'foo' }
|
||||
|
|
Loading…
Reference in a new issue