Commit graph

3026 commits

Author SHA1 Message Date
Artem Sidorenko
9d766252f7 Contain matcher maps to include matcher with warning
to allow easier migration from serverspec, where contain
matcher is used often

Signed-off-by: Artem Sidorenko <artem@posteo.de>
2016-11-03 20:58:34 +01:00
Alex Pop
5624579441 Merge pull request #1272 from chef/chris-rock/1226
fix #1226
2016-11-03 10:52:36 +00:00
Christoph Hartmann
a95f0cf116 fix #1226
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-11-03 00:32:31 +01:00
Christoph Hartmann
408a180514 Merge pull request #1271 from jerearista/feature-json-content
Enable the json resource to accept command output or JSON content
2016-11-02 21:30:21 +01:00
Jere Julian
f8a9eab443 Change path to opts
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 16:04:59 -04:00
Jere Julian
0565d9084b Update example
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 14:44:13 -04:00
Jere Julian
a2dd8fe791 Add examples
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 13:21:46 -04:00
Jere Julian
d855b5e7a7 Add support for JSON blobs and commands that produce JSON output.
Signed-off-by: Jere Julian <jere@arista.com>
2016-11-02 12:25:26 -04:00
Christoph Hartmann
8067eca5b9 Merge pull request #1263 from anniehedgpeth/anniesnewtutorials
Added tutorials for Days 8 & 9
2016-11-02 11:49:57 +01:00
anniehedgpeth
69167cf173 fixed wrong dates
Signed-off-by: anniehedgpeth <annie.hedgpeth@gmail.com>
2016-11-01 15:25:29 -05:00
anniehedgpeth
b688994604 added tutorials for day 8 & 9
Signed-off-by: anniehedgpeth <annie.hedgpeth@gmail.com>
2016-11-01 15:05:59 -05:00
anniehedgpeth
a98dfc93e9 merged latest master 2016-11-01 15:00:03 -05:00
anniehedgpeth
22916a8564 Added tutorials for Days 8 & 9
Signed-off-by: anniehedgpeth <annie.hedgpeth@gmail.com>
2016-11-01 14:45:25 -05:00
Christoph Hartmann
83a860c039 1.3.0 2016-10-28 15:35:36 +02:00
Alex Pop
9f7216ce26 Merge pull request #1257 from chef/chris-rock/inetd-exec
overwrite exec for inetd because respec its is executing `exec`
2016-10-28 12:19:28 +03:00
Christoph Hartmann
a25d3e8fae overwrite exec for inetd because respec its is executing exec
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-28 12:10:45 +03:00
Alex Pop
edf95efbf1 Merge pull request #1262 from chef/chris-rock/slack
Use Slack Badge instead of Gitter badge
2016-10-28 12:02:04 +03:00
Christoph Hartmann
825854d982 Use Slack Badge instead of Gitter badge
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-28 10:45:15 +02:00
Christoph Hartmann
e05155c2d7 Merge pull request #1260 from chef/chris-rock/cleanup
remove accidentally added file
2016-10-27 15:12:40 +02:00
Christoph Hartmann
642e14eff0 remove accidentally added file
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-27 14:59:15 +02:00
Christoph Hartmann
a890f1be5e Merge pull request #1228 from chef/dp_signing
Implements profile signing and verification [Experimental]
2016-10-27 14:57:06 +02:00
Dave Parfitt
51378d326b adds profile signing/verification
Signed-off-by: Dave Parfitt <dparfitt@chef.io>
2016-10-27 14:44:10 +02:00
Christoph Hartmann
0d2cd38344 Merge pull request #1259 from chef/windows-wildcard
Remove wildcard from windows package detection
2016-10-27 14:40:35 +02:00
Christoph Hartmann
9d86f7b022 Fix unit test and activate verbose mock backend to see missing command in cli output
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-27 14:33:34 +02:00
Jonathan Morley
1af7a22991 Remove wildcard from windows package detection
This allows stricter checks on windows software, and keeps it in line with the package resource on other platforms
2016-10-27 14:30:32 +02:00
Christoph Hartmann
efb90c12d2 Merge pull request #1256 from chef/ap/ssl-hang
Fix nil timeout and retries
2016-10-27 10:17:00 +02:00
Alex Pop
08427f1dec fix nil timeout and retries
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-26 20:43:46 +01:00
Jeremy J. Miller
0a042eb360 added 'by_user' example to resource
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
5494ec0c60 refactored file resource unit tests
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
3db0deefb1 putting quotes around path in PS command
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
cda492af96 file/dir permissions for os_prepare file recipe
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
c4abbed2a6 adding integration test
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
fe18e3090d implementing changes requested in review
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
1288f90247 changing module name
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Jeremy J. Miller
5cd9cec0c0 adding by_user permissions support for windows
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2016-10-26 15:57:30 +02:00
Alex Pop
d40ee684f8 supermarket tools get and filter by tool_type (#1254)
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-26 15:42:43 +02:00
Artem Sidorenko
755f24ed6f Code-block directive is not needed here (#1247)
and breaks the layout: http://inspec.io/docs/reference/resources/file/

Signed-off-by: Artem Sidorenko <artem@posteo.de>
2016-10-25 23:26:08 +02:00
Artem Sidorenko
489f314a79 Use include instead of match in the error message (#1248)
as include behaves like contain and not match

Signed-off-by: Artem Sidorenko <artem@posteo.de>
2016-10-25 22:45:57 +02:00
Seth
23456c5e86 Fix issue with registry_key example (#1243)
* Fix issue with registry_key example

* Fix issue with registry_key example

Signed-off-by: Seth Thoenen <seththoenen@gmail.com>
2016-10-25 22:34:30 +02:00
Chris Wessells
64b3461070 Accessing nested mappings in a yam file (#1242)
* While working with mongod.conf file I spent hours trying to figure out how to access nested mappings.  When I read the code it used keys.shift to traverse the yaml object.  I tried changing to an array and voila I was able to access nested mappings.  I wanted to document my findngs and suggest an update to inspec.io but couldn't find a place to contact someone for the suggestion.

* Added additional details regarding the formatting of the example.

Signed-off-by: Chris Wessells <cwessells@silvervue.com>
2016-10-25 22:33:23 +02:00
Christoph Hartmann
b4c6534e5a Merge pull request #1245 from artem-sidorenko/rvm-files
Ignore RVM files
2016-10-25 22:32:38 +02:00
Ryan Keairns
d92077c19c Set the global message to display again (#1246)
* change global message on site

Signed-off-by: Ryan Keairns <rkeairns@chef.io>

* incrementing the message id to re-enable the display

Signed-off-by: Ryan Keairns <rkeairns@chef.io>
2016-10-25 15:04:41 -05:00
Artem Sidorenko
154e23ebab Ignore RVM files
For the case somebody is using RVM for inspec development
with different environments (rubies/gemsets)
2016-10-25 21:59:04 +02:00
Ryan Keairns
2c0c627ddd change global message on site (#1244)
Signed-off-by: Ryan Keairns <rkeairns@chef.io>
2016-10-25 14:45:07 -05:00
Christoph Hartmann
d00b30f90f Merge pull request #1232 from chef/ap/fix-amend
DOCS: fix commit amend dash
2016-10-20 20:02:30 +02:00
Alex Pop
d7bbe2cac5 fix commit amend dash
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-20 19:46:28 +02:00
Christoph Hartmann
f19c87d8e0 Merge pull request #1231 from nathenharvey/nathen/fix_markdown_underscores
Headers and list elements that include more than one `_` character we…
2016-10-20 19:45:57 +02:00
Christoph Hartmann
3fbdf49b06 Merge pull request #1233 from swalberg/patch-1
Fix broken link in README.md
2016-10-20 19:41:41 +02:00
Sean Walberg
d4c887704a Fix broken link in README.md
Link pointed to the right doc but the wrong extension.

Obvious fix.

Signed-off-by: Sean Walberg <sean@ertw.com>
2016-10-20 12:42:15 -04:00
Nathen Harvey
7e4157ddf4 Headers and list elements that include more than one _ character were being rendered incorrectly. (Perhaps it is only when there are an even number but in any case I only found words with either one or two _s.)
The html rendered from markdown would look like:

`<h3>be<em>grouped</em>into</h3>`

When there is only one `_` the html rendered correctly:

`<h3>be_directory</h3>`

This change escapes the `_` when there are multiple.

* New markdown:  `### be\_grouped\_into`
* New html:      `<h3>be_grouped_into</h3>`

resource matchers fixed:
* be_block_device
* be_character_device
* be_grouped_into
* be_linked_to
* be_owned_by
* have_app_pool
* have_property_value

resource fixed:
* parse_config_file

Signed-off-by: Nathen Harvey <nharvey@chef.io>
2016-10-20 07:07:18 -04:00