Commit graph

5948 commits

Author SHA1 Message Date
Clinton Wolfe
2d40181f35
Merge pull request #3890 from inspec/cw/fix-glossary-links
Repair anchor links to use dashes instead of underscores
2019-03-20 11:06:51 -04:00
Lynn Frank
6018a6959d Fixes indentation of kernal_module example
Signed-off-by: Franklin Webber <franklin.webber@gmail.com>
2019-03-19 12:05:15 -05:00
Lynn Frank
23eff3df24 Fixes rubocop violation on indention
Signed-off-by: Franklin Webber <franklin.webber@gmail.com>
2019-03-19 11:32:07 -05:00
Lynn Frank
2857d07151 Fixes resource examples
The opening and closing mechanic varied between all the various
resources. This changes them all to use a HEREDOC with a tilde
to remove leading whitespace. This removes the need for the
special method to trim the `#print_example` method from shell.

Signed-off-by: Franklin Webber <franklin.webber@gmail.com>
2019-03-19 11:25:41 -05:00
devoptimist
2d49f39adc moved example tests into their own sub dir, and reused examples_path variable
Signed-off-by: devoptimist <sbrown@chef.io>
2019-03-18 15:15:32 +00:00
Chef Expeditor
7887d25251
Bump version to 3.7.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-18 14:43:45 +00:00
Clinton Wolfe
67d9d62ccf
Merge pull request #3509 from cattywampus/max_redirects
Allow http resource to follow redirects
2019-03-18 10:43:26 -04:00
Keith Walters
c2bd0616fe Allow http resource to follow redirects
By specifying a `max_redirects` attribute, the `http` resource worker
will follow any HTTP Redirect response (301, 302, etc...) up to the
limit defined by this attribute. For a local worker, exceeding that
limit will raise a `FaradayMiddleware::RedirectLimitReached` exception.
For a remote worker, the curl command will exit without populating the
`status` and `body` properties.

Signed-off-by: Keith Walters <keith.walters@cattywamp.us>
2019-03-16 20:54:52 -04:00
Clinton Wolfe
0d299e9b1d Repair anchor links to use dashes instead of underscores
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-14 10:57:48 -04:00
devoptimist
94d80f6c8f Decoupling test profiles from example profiles
Signed-off-by: devoptimist <sbrown@chef.io>
2019-03-14 00:32:13 +00:00
Chef Expeditor
9c67fe89a5
Bump version to 3.7.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-13 23:14:38 +00:00
Clinton Wolfe
b3ab615465
Merge pull request #3860 from inspec/lcg/remove-omnibus-software-gems
Move all gem installation to Gemfile/bundle install
2019-03-13 19:14:20 -04:00
Chef Expeditor
8e3aabc2e4
Bump version to 3.7.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-11 17:56:40 +00:00
Clinton Wolfe
c580b695c7
Merge pull request #3842 from inspec/ja/fix-iis-app-pool-resource
iis_app_pool: Fix PowerShell JSON parsing error
2019-03-11 13:52:07 -04:00
Chef Expeditor
488a1ebe52
Bump version to 3.7.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-11 17:51:51 +00:00
Clinton Wolfe
e7ee82a12a
Merge pull request #3843 from inspec/ja/http-to-s
http resource: Add fallback to `#to_s`
2019-03-11 13:51:34 -04:00
Clinton Wolfe
3cce8ba705 Replace attrs with input-files in remaining tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-08 12:40:33 -05:00
Clinton Wolfe
709a5dbdd9 Implement renaming --attrs -> --input-file
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-08 11:38:03 -05:00
Clinton Wolfe
04b26dd417 Add failing functional tests for --attrs -> --input-file
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-08 11:37:38 -05:00
Chef Expeditor
95196838ef
Bump version to 3.7.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-08 15:12:54 +00:00
Clinton Wolfe
c0e462ca5f
Merge pull request #3816 from inspec/cw/add-expeditor-v4-to-v3
Adds a v4 release to the expeditor config
2019-03-08 10:12:35 -05:00
Chef Expeditor
fd59635cc3
Bump version to 3.7.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-08 14:52:03 +00:00
Clinton Wolfe
74e2f72ed5
Merge pull request #3818 from inspec/ja/rewrite-habitat-plugin
Rewrite inspec-habitat plugin
2019-03-08 09:51:46 -05:00
Chef Expeditor
929b46b554
Bump version to 3.7.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-07 19:14:17 +00:00
Clinton Wolfe
2a8e89511a
Merge pull request #3861 from inspec/sp/inspec-init-profile-azure
Add InSpec init profile for Azure.
2019-03-07 14:14:01 -05:00
Clinton Wolfe
f7202c229b Add caching to Inspec::Config
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-06 14:59:06 -05:00
Stuart Paterson
54e7428e75
Set minimal inspec version in line with inspec-zure resource pack guidelines.
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-03-04 15:47:39 +00:00
Stuart Paterson
a337ca1d23
Add InSpec init profile folder for Azure.
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-03-04 15:33:37 +00:00
Stuart Paterson
dcb141da79
Add InSpec init profile for Azure.
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-03-04 15:32:31 +00:00
Lamont Granquist
e16206f1d0 Move all gem installation to Gemfile/bundle install
Do not use omnibus-software gem definitions for installing gems,
and use the Gemfile in the inspec project as the source of truth.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
2019-03-01 17:45:37 -08:00
Chef Expeditor
8cdd7cfe03
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-02 01:12:20 +00:00
Chef Expeditor
94f69c4cfc
Bump version to 3.7.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-02 00:12:07 +00:00
Clinton Wolfe
ba4fdc50a3
Merge pull request #3858 from inspec/cw/override-omnibus-train
Force omnibus to link to train 1.7.4
2019-03-01 19:11:49 -05:00
Clinton Wolfe
6e141a5511 Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-01 18:48:35 -05:00
Clinton Wolfe
04bfe5cc4c Force omnibus to link to train 1.7.4
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-01 13:25:17 -05:00
Chef Expeditor
988eee728f
Bump version to 3.7.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-01 03:35:59 +00:00
Clinton Wolfe
6779e6bc80
Merge pull request #3713 from inspec/cw/cred-set-support-03
Config file formalization and credential sets: part 3, credential sets
2019-02-28 22:35:42 -05:00
Jerry Aldrich
22c20b7989 Add comment explaining -Compress
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-28 12:04:59 -08:00
Jerry Aldrich
66a343555b iis_app_pool: Fix PowerShell JSON parsing error
This works around a current bug in PowerShell where the output cannot be
parsed as JSON.

The `-Compress` flag does not affect the validity of the data but only
the appearance of the string.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-28 12:04:59 -08:00
Jerry Aldrich
7168c41c09 Prevent stack trace from being set to the user
This also verifies Habitat setup during create as well

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-28 11:55:59 -08:00
Jerry Aldrich
1ac435bceb Modify output to be a bit better for the user
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-28 10:42:42 -08:00
Jerry Aldrich
af5d6e9285 http resource: Add fallback to #to_s
This prevents a stack trace from being shown to the user if the `http`
resource is used on an unsupported platform.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-28 09:08:49 -05:00
Clinton Wolfe
55ab0ead32 Fix linting on master
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-28 09:07:20 -05:00
Clinton Wolfe
a4018029fb Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00
Mary Jinglewski
222a13d75a Definition list format
Signed-off-by: Mary Jinglewski <mjinglewski@chef.io>
2019-02-27 15:14:27 -05:00
Clinton Wolfe
c28e48afa2 Docs feedback
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00
Clinton Wolfe
52f6351f84 Adjust regexes for credset name and add tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00
Jerry Aldrich
a1a6497989 Update docs/config.md
Co-Authored-By: clintoncwolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00
Clinton Wolfe
59de0c3c8a Clarify fallback behavior
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00
Clinton Wolfe
20ffbffb01 Document teh credential sets features and config file format
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00