Commit graph

2998 commits

Author SHA1 Message Date
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
Alex Pop
5bca878ecc Merge pull request #1220 from chef/chris-rock/extend-attribute-object
extend the attributes object with helper methods
2016-10-18 16:27:38 +01:00
Christoph Hartmann
c67ff8b4a2 extend the attributes object with helper methods
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-18 17:17:00 +02:00
Alex Pop
41d31163ac Merge pull request #1225 from alexpop/ag-ap/processes-user-comm
Fix processes resource user and command truncation
2016-10-18 10:12:59 +01:00
victoria jeffrey
b8e2ccfc55 Merge pull request #1224 from chef/chris-rock/dco
Document new DCO process
2016-10-17 12:26:50 -04:00
Alex Pop
70416a35b4 use command instead of comm and set user column width on linux
Signed-off-by: Alex Pop <apop@chef.io>
2016-10-17 15:39:13 +01:00
Christoph Hartmann
774386047f update contributing.md to reflect new DCO process and remove content available at our website
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2016-10-17 13:33:46 +02:00
Anirudh Gupta
8efec7ac6c fix processes resource for os's where username is long to avoid truncation 2016-10-17 11:46:16 +01:00
Dominik Richter
0ac1467ac1 1.2.1 2016-10-15 11:42:55 -07:00
Dominik Richter
c3a3c57dcd Merge pull request #1221 from chef/dr/train-update
update train to fix empty target URIs
2016-10-15 08:17:49 -07:00
Dominik Richter
46d9d39e8d update train to fix empty target URIs 2016-10-15 07:12:01 -07:00
Dominik Richter
ac24bbaa3d Merge pull request #1211 from chef/ap/cmp-inspect
Show actual value for cmp octal comparisons in string to match expected
2016-10-13 08:27:58 -07:00
Alex Pop
5d51b7a0aa dot inspect actual value to match the expected string one 2016-10-13 07:13:51 -07:00
Dominik Richter
7168e3ac99 Merge pull request #1213 from chef/vj/fix-1187
fix kitchen-inspec integration-1187
2016-10-13 07:13:28 -07:00
Victoria Jeffrey
ae8ba9ca9f fix kitchen-inspec integration-1187 2016-10-13 06:45:24 -07:00
Dominik Richter
c4cc971e5d Merge pull request #1216 from chef/dp/habitat-843
move Inspec Habitat package to chef/inspec.
2016-10-13 06:24:57 -07:00
Dave Parfitt
5231a0dc43 move Inspec Habitat package to chef/inspec.
NOTE: The existing `core/inspec` package (version 0.27.0) cannot be removed
from the public Habitat depot.
2016-10-12 15:03:24 -04:00
Maggie Walker
213da500c7 Merge pull request #1210 from chef/mw/fix-image
Website: Fix typo in homepage code image
2016-10-10 09:44:27 -07:00
Maggie Walker
37a7f3d35f Website: Fix typo in homepage code image 2016-10-10 09:33:04 -07:00
Dominik Richter
11b58efa2f 1.2.0 2016-10-10 06:56:09 -07:00
Dominik Richter
6e1ffb4890 Merge pull request #1204 from chef/ap/cmp-desc
cmp code_desc missing operation and expected valid
2016-10-10 06:12:37 -07:00
Alex Pop
de58a2588d fix cmp code description 2016-10-10 05:40:22 -07:00
Alex Pop
6719cf544d add tests for cmp output 2016-10-10 05:40:22 -07:00
Dominik Richter
2631b3f7a9 Merge pull request #1209 from artem-sidorenko/linuxmint
Support of Linux Mint
2016-10-10 05:38:58 -07:00
Artem Sidorenko
77738dd895 Some further tests for Mint 2016-10-08 23:34:56 +02:00
Artem Sidorenko
aa725fe2df Linux Mint support for service resource 2016-10-08 23:34:56 +02:00
Dominik Richter
4ee32ebac4 Merge pull request #1159 from chef/chris-rock/tutorial-response-filename-length
tutorial response filename length
2016-10-06 13:40:52 +02:00
Victoria Jeffrey
4f1d085bf2 re-generate responses 2016-10-06 13:32:53 +02:00
Christoph Hartmann
95bad32c92 limit length of simulator files 2016-10-06 13:32:53 +02:00