Clinton Wolfe
1c13bcc35e
Change exit code to 172 when license is not accepted
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
f7c4f56670
Ensure that an empty invocation does not trigger the license check
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
e0fe3f1876
Add version to list of exempt commands
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
07a1679086
Customize behavior when the license challenge fails
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:29:27 -04:00
tyler-ball
96edf5394f
Fully leveraging latest set of license acceptance library features
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-11 10:29:27 -04:00
Clinton Wolfe
47da04f4e0
Alter require to use snakecase library name
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:27:48 -04:00
Clinton Wolfe
e3c9c019e3
Add basic integration for the acceptance lib
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:27:48 -04:00
Miah Johnson
acead4dd40
Remove doc line.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-11 00:42:26 -07:00
Miah Johnson
61e639e2fe
Move @data creation to initialize.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-11 00:41:51 -07:00
Miah Johnson
ac78feb090
Remove list_data_series_by_name
.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-11 00:41:09 -07:00
Miah Johnson
56a5c80bf5
Rebuild the core telemetry interface.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-09 16:58:40 -07:00
Clinton Wolfe
a83401c932
Freeze version to appease rubocop
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-09 14:00:46 -04:00
Clinton Wolfe
2b30646642
Merge branch 'cw/attrs-rename-cli-option' into 3-stable
2019-04-09 12:10:53 -04:00
Chef Expeditor
4648018f1d
Bump version to 4.0.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-09 15:46:50 +00:00
Clinton Wolfe
b701317616
Merge pull request #3879 from inspec/cw/attrs-rename-cli-option
...
Attribute->Input Rename: Rename cli option
2019-04-09 11:46:29 -04:00
Chef Expeditor
04242abe61
Bump version to 4.0.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-08 22:23:05 +00:00
Chef Expeditor
4a11430e4e
Bump version to 4.0.2.pre by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-08 15:14:48 -04:00
Stuart Paterson
3f1ed29af8
Address PR feedback, add a comment to inspec.yml.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-04-08 14:30:21 -04:00
Stuart Paterson
549a04bdae
Update README with the re-added security group control.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-04-08 14:30:21 -04:00
Stuart Paterson
50a7bc7862
Replace port 22 ingress control.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-04-08 14:30:21 -04:00
Stuart Paterson
41a680270e
Update AWS profile generation for InSpec 4 to depend on the new resource pack.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-04-08 14:30:21 -04:00
Chef Expeditor
36eb4459c1
Bump version to 4.0.1.pre by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-08 14:30:21 -04:00
Clinton Wolfe
0d38b65d50
Linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:28:57 -04:00
Clinton Wolfe
af4d9edd2a
Ignore resource overwrite warnings if they are aws resources
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:28:31 -04:00
Clinton Wolfe
82b8638472
Use inspec v3 internally
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:28:31 -04:00
Clinton Wolfe
4b44df8d6e
Set version to 4.0.0.pre
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:26:03 -04:00
Chef Expeditor
9ce07e7ab9
Bump version to 3.9.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-08 15:22:51 +00:00
Chef Expeditor
29bec90b1b
Bump version to 3.9.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-04 17:26:28 +00:00
Miah Johnson
8435990722
Merge pull request #3899 from inspec/sp/crontab-path-update
...
crontab: Add validation for path param
2019-04-04 17:26:13 +00:00
Chef Expeditor
1833a98730
Bump version to 3.9.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-01 20:08:08 +00:00
Chef Expeditor
dab819088c
Bump version to 3.8.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-01 19:59:26 +00:00
Chef Expeditor
90c325a196
Bump version to 3.8.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-01 19:07:28 +00:00
Clinton Wolfe
e931d277b1
Merge pull request #3906 from inspec/cw/projects-passthru
...
automate reporter: Add top-level 'passthrough' field
2019-04-01 15:07:12 -04:00
Chef Expeditor
f72241b6e6
Bump version to 3.7.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-01 18:11:12 +00:00
Aaron Lippold
1e9f8fd018
Merge branch 'master' of https://github.com/inspec/inspec into al-mitre/more-permissive-than
...
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2019-03-28 15:50:16 -04:00
Clinton Wolfe
2f5c063e08
Add 'passthrough' field
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-28 01:10:25 -04:00
Clinton Wolfe
5aeeefb3ed
Remove 'recipies' field
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-28 01:08:57 -04:00
Clinton Wolfe
973054dd81
Move existing passthru fields into json-automate
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-28 01:08:20 -04:00
Aaron Lippold
e312b44563
Addressing review items.
...
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2019-03-27 09:55:48 -04:00
Chef Expeditor
70ffa66a8e
Bump version to 3.7.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-22 05:20:54 +00:00
Chef Expeditor
51e8ac2f4f
Bump version to 3.7.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-21 17:37:27 +00:00
Miah Johnson
6ce349dcde
Merge pull request #3873 from inspec/cw/config-add-caching
...
Add caching to Inspec::Config
2019-03-21 10:37:06 -07:00
Stuart Paterson
0c0e0aa016
Remove debugging lines.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-03-21 16:20:06 +00:00
Stuart Paterson
5accfa5391
Add protection for crontab resource path and document it.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-03-21 15:49:00 +00:00
Chef Expeditor
69a3f7130c
Bump version to 3.7.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-03-20 15:10:50 +00: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
Aaron Lippold
a2a86860d6
This adds the more_permissive_than?(mode)
matcher to the file
resource.
...
Fixes #3893
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2019-03-18 18:10:13 -04: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
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
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
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
709a5dbdd9
Implement renaming --attrs -> --input-file
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-08 11:38:03 -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
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
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
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
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
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
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
Clinton Wolfe
7328e82ae6
Implement credential set loading
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-27 15:14:27 -05:00
Chef Expeditor
354e7bb5e3
Bump version to 3.6.19 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-27 19:43:39 +00:00
Chef Expeditor
36b4025b39
Bump version to 3.6.18 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-27 19:21:40 +00:00
Clinton Wolfe
c23d828ba0
Merge pull request #3833 from chris-rock/chris-rock/postgres
...
detect postgres 10 on centos properly
2019-02-27 14:20:50 -05:00
Chef Expeditor
46a46dcf9a
Bump version to 3.6.17 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-27 19:17:21 +00:00
Clinton Wolfe
ef18081dfe
Merge branch 'cw/attrs-rename-classes-methods'
...
Accidentally merged cw/attrs-rename-default-attribute into cw/attrs-rename-classes-methods, intended to go to master.
2019-02-26 15:38:20 -05:00
Chef Expeditor
d8b1e72e33
Bump version to 3.6.16 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-26 19:36:13 +00:00
Clinton Wolfe
3024c60c64
Merge pull request #3834 from skylerto/master
...
inspec compliance: Fix mocked configuration
2019-02-26 14:35:53 -05:00
Christoph Hartmann
afadc896f2
make rubocop happy
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2019-02-26 16:57:48 +01:00
Chef Expeditor
8282c36737
Bump version to 3.6.15 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-25 23:02:30 +00:00
Clinton Wolfe
ac41a6ae20
Merge pull request #3811 from inspec/cw/attrs-rename-classes-methods
...
Attribute->Input Rename: Rename Classes and Methods
2019-02-25 18:02:11 -05:00
Chef Expeditor
e8b3b30792
Bump version to 3.6.14 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-25 19:14:35 +00:00
Chef Expeditor
78bbb3f894
Bump version to 3.6.13 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-25 16:57:19 +00:00
skylerto
51cda478d2
Fix issues with inspec compliance upload
...
Issues with underlying API changes caused a break in the current `inspec compliance upload`
This diff shows the change in API:
3cc2ee63e0...85c815011a (diff-9d107f8e84fe350fa821fed1838dbda8L162)
Implementing the same change in the `inspec-compliance` plugin fixes the
following issue:
```
Traceback (most recent call last):
11: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/inspec-3.6.12/bin/inspec:12:in `<main>'
10: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
9: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
8: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
7: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
6: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor.rb:238:in `block in subcommand'
5: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor/invocation.rb:115:in `invoke'
4: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
3: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
2: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
1: from /hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/inspec-3.6.12/lib/plugins/inspec-compliance/lib/inspec-compliance/cli.rb:144:in `upload'
/hab/pkgs/chef/inspec/3.6.12/20190221172437/lib/gems/inspec-3.6.12/lib/inspec/backend.rb:45:in `create': undefined method `unpack_train_credentials' for {:target=>"mock://"}:Hash (NoMethodError)
```
Signed-off-by: skylerto <skylerclayne@gmail.com>
2019-02-25 10:24:27 -05:00
Christoph Hartmann
15c03cf8fc
detect postgres 10 on centos properly
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2019-02-25 13:39:17 +01:00
Jerry Aldrich
b533958ae6
Remove stacktrace being sent to exit_with_error
...
It is already available at the debug log level.
Thanks @clintoncwolfe for the suggestion.
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-22 10:56:28 -08:00
Clinton Wolfe
c9e8716310
Change two more mentions of DEFAULT_ATTRIBUTE
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-22 10:10:50 -05:00
Clinton Wolfe
24e8c0a6dd
Replace DEFAULT_ATTRUBUTE, unit test for it passes
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-22 10:05:31 -05:00
Jerry Aldrich
535ecdc4ac
Remove Rakefile (testing should be done in InSpec)
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-21 15:02:54 -08:00
Jerry Aldrich
3a67e1c958
Fix typos/grammer/etc in README.md
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-21 15:02:37 -08:00
Jerry Aldrich
5676bd114f
Align =
in initialize
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-21 13:16:20 -08:00
Jerry Aldrich
d2569e8da9
Make @log
and attr_reader and rename to logger
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-21 13:16:16 -08:00
Jerry Aldrich
27eab8686f
Change log message type to debug
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-21 13:06:08 -08:00
Chef Expeditor
8c37a61494
Bump version to 3.6.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-21 17:24:19 +00:00
Clinton Wolfe
83cdcad135
Fallback to attributes in test code for reporters
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 21:22:51 -05:00
Clinton Wolfe
c28c244f16
Fix a handful of functional tests
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 20:41:10 -05:00
Clinton Wolfe
08ad60796f
Linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 20:41:10 -05:00
Clinton Wolfe
e5f764c9fc
Search and replace most attribute references in lib/
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 20:41:10 -05:00
Clinton Wolfe
4f361bfc56
Replace most mentions of Attribute (titlecase) in lib and test
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 20:41:10 -05:00
Clinton Wolfe
ce99624095
Renamed AttributeRegistry->InputRegistry
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 20:41:09 -05:00
Clinton Wolfe
a1982a5f8b
First pass on renaming attribute->input, unit test passes
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 20:41:09 -05:00
Clinton Wolfe
fc7f3a65b4
Add a deprecation grouup for core AWS resources
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-20 18:02:02 -05:00
Chef Expeditor
46415dfbff
Bump version to 3.6.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-20 22:46:51 +00:00
Stuart Paterson
7ec1803adb
Moved the AWS init profile to the correct location.
...
Signed-off-by: Stuart Paterson <spaterson@chef.io>
2019-02-20 15:16:11 +00:00
Jerry Aldrich
bf748d8478
Rewrite inspec-habitat plugin
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-19 00:47:14 -08:00
Chef Expeditor
f3f50c1c66
Bump version to 3.6.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-14 21:11:27 +00:00
Chef Expeditor
492a9edde8
Bump version to 3.6.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-14 21:04:40 +00:00
Chef Expeditor
86bb48d10c
Bump version to 3.6.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-14 18:47:55 +00:00
Clinton Wolfe
fc448ed6f1
Rename attribute_registry to input_registry
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-14 12:37:27 -05:00
Clinton Wolfe
c538eae2df
Rename objects/attribute to objects/input
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-14 12:37:27 -05:00
Chef Expeditor
8843e93819
Bump version to 3.6.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-13 18:56:39 +00:00
Chef Expeditor
274b176435
Bump version to 3.6.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-12 03:26:36 +00:00
Chef Expeditor
c882fa927b
Bump version to 3.6.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-11 20:27:04 +00:00
Clinton Wolfe
9cc46c8a8a
Add logger to train generic options
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-11 14:24:33 -05:00
Chef Expeditor
9eed984015
Bump version to 3.6.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 22:49:10 +00:00
Clinton Wolfe
a6f289f1b2
Cache reads from STDIN
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 14:16:56 -05:00
Chef Expeditor
5c02be2c3d
Bump version to 3.6.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 01:58:50 +00:00
Chef Expeditor
d5dcb46085
Bump version to 3.6.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 22:22:21 +00:00
Jerry Aldrich
7134989eba
Respond to @clintoncwolfe's feedback
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 11:15:01 -08:00
Jerry Aldrich
a6f74a33b2
Fix Inspec::Config regression in Inspec::Backend
...
With the changes in PR #3750 , `Inspec::Backend.create` needs to support
both being passed a Hash and being passed an Inspec::Config. This adds
a line to convert a passed Hash to an Inspec::Config.
This also adds unit tests for Inspec::Backend because they were missing.
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 01:00:05 -08:00
Chef Expeditor
9d7ca85e7d
Bump version to 3.6.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 02:53:32 +00:00
Chef Expeditor
eca5f74154
Bump version to 3.6.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 22:43:19 +00:00
Clinton Wolfe
05a011f6ff
Merge pull request #3629 from inspec/cw/init-plugin
...
inspec-init plugin: generate inspec plugins
2019-02-06 17:40:59 -05:00
Chef Expeditor
5bed99fe36
Bump version to 3.5.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 22:40:26 +00:00
Clinton Wolfe
dd3d3cbd2f
Add deprecation hook for size()
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:02:17 -05:00
Clinton Wolfe
02cb799ee6
Rename free to free_kb
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:01:04 -05:00
Clinton Wolfe
5bbd4c16d6
Add size_kb, and correct Powershell code to return KB for both total size and free space, rather than total in GB and free space in bytes
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:01:04 -05:00
Clinton Wolfe
fef637a6c6
Add percent_free property
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:01:04 -05:00
James Massardo
497035a65b
missed rubocop error
...
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
James Massardo
49eccb09aa
removed unneeded library
...
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
James Massardo
83c0c18fca
Add free space and type to filesystem resource
...
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
Chef Expeditor
85c815011a
Bump version to 3.5.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 18:28:46 +00:00
Clinton Wolfe
5a5eb4a9a5
Merge pull request #3750 from inspec/cw/cred-set-support-02
...
Formalize Config File
2019-02-06 13:28:30 -05:00
Chef Expeditor
3cc2ee63e0
Bump version to 3.5.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 18:24:01 +00:00
Clinton Wolfe
591317e659
Remove spurious 'unless activated?' on most activation calls
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:22:51 -05:00
Clinton Wolfe
91ed6e3256
Remove quotes from symbol representation of activated?
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
927b2690cf
Update activate() calls used by DSL plugin type
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
0805e9bed3
linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
1010142139
Convenience method for the common case of finding exactly one plugin activator
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
f760c54cba
Move plugin activate() method into Activator class
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
b831083d0d
Add a UX reminder to update the license
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:08:21 -05:00
Clinton Wolfe
ffb3ee7e32
Correct functional test
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
e3070cb02f
PR feedback on product capitalization
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
4582f1f8a7
linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
247e004c8e
Add detail option, to make stripped-down plugins
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
fe7a683198
Add interactive prompting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
731b0705f5
Templatize everything for InSpec plugins
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
5343c217b0
All templates work, but need to decide on hooks
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
f95476179c
support for LICENSE
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
d553f4cbc3
Enough options to cover gemspec
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
f83ea2d7bb
Add ability to remap filenames
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
4b9fd1df79
Basic template, not parameterized
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
677542de02
Split the CLI implementation file
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
e00582f0ec
Adapt to new UI module
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
1ef8cc9916
Allow no args to plain_line
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
a349f91e52
Make UI not print emphasis by default
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
81d07cd8d9
Move templates dir outside of lib
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Chef Expeditor
0c83750dc9
Bump version to 3.5.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 15:55:00 +00:00
Clinton Wolfe
a5fbeccf68
Add deprecation hook for --json-config
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:29:34 -05:00
Clinton Wolfe
cb3e0aca60
Test for piped config, and fix to make it work
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:27:49 -05:00
Clinton Wolfe
2186179061
Allow passing opts to mock Config; and use mock config in one more place in test helper
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
4507af4c29
More things
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
42420d9ecc
Use new config file system to read config
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
7d1fd5a085
Add comment about missing values
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
e0951e9ad0
Add bang to validate_reporters
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
605eea72a5
Refactor resolve_cfg_io, add duck check
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
6ed046bb23
More things
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
102505a937
Use new config file system to read config
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
f1f5b27237
Create config object and units tests
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:23:55 -05:00
Chef Expeditor
aa51327c25
Bump version to 3.5.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-01 04:18:52 +00:00
Clinton Wolfe
5d2934cc5a
Passing help message functional tests for disabling plugins
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:52:19 -05:00
Clinton Wolfe
4203c02836
Crude implementation to watch for plugin disable options
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:52:19 -05:00
Chef Expeditor
167ada963e
Bump version to 3.4.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-01 03:50:38 +00:00
Chef Expeditor
4def2ea993
Bump version to 3.4.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-31 21:14:56 +00:00
Clinton Wolfe
761944b3ce
Merge pull request #3770 from inspec/ja/fix-bad-name-check
...
More meaningful error when including controls from a missing dependency
2019-01-31 16:14:35 -05:00
Chef Expeditor
3559ebd4c8
Bump version to 3.4.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-31 20:56:51 +00:00
Clinton Wolfe
253f7f8c72
Merge pull request #3757 from inspec/ja/fix-plugin-load-on-help
...
Add `--help` to CLI plugin activation criteria
2019-01-31 15:54:04 -05:00
Chef Expeditor
86b0ab6f26
Bump version to 3.4.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-31 20:53:41 +00:00
Clinton Wolfe
2be3063e22
Merge pull request #3758 from inspec/ja/fix-profile-context-test
...
tests: Fix profile_context_test NameError
2019-01-31 15:53:23 -05:00
Chef Expeditor
fe26709df6
Bump version to 3.4.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-31 04:03:25 +00:00
Clinton Wolfe
18011ccfec
Also issue default: option for backwards compatibility
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-30 14:05:11 -05:00
James Stocks
5868eb52e7
Fix Inspec::Attribute.to_ruby and add unit test
...
Signed-off-by: James Stocks <jstocks@chef.io>
2019-01-30 17:15:22 +00:00
Jerry Aldrich
f0c207dad9
Fix undefined method
error from inspec check
...
This changes the error message from using a bad reference in
`include_controls` from:
```
NoMethodError: undefined method `profile' for nil:NilClass
```
To one detailing that the profile cannot be loaded since it isn't listed
as a dependency.
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-29 22:36:27 -08:00
Jerry Aldrich
72c57c67f1
Move require
and fix load order issue
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-29 22:08:17 -08:00
Chef Expeditor
ec966a1de9
Bump version to 3.4.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-29 20:46:02 +00:00
Chef Expeditor
47befc8a55
Bump version to 3.4.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-28 22:41:06 +00:00
Clinton Wolfe
4d7cbc624c
Test and fix case in which both :default and :value are provided
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-28 00:42:27 -05:00
Clinton Wolfe
7ac2f6433a
Add deprecation hook for attribute 'default' option
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-28 00:42:27 -05:00
Jerry Aldrich
852085969f
Add missing require to Inspec::DSL#missing_method
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-26 14:10:14 -08:00
Jerry Aldrich
7f4560ea7c
Add --help
to CLI plugin activation criteria
...
This ensures that all the following result in the same CLI output:
- `inspec`
- `inspec help`
- `inspec --help`
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-26 12:47:27 -08:00
Chef Expeditor
8ccd2debaf
Bump version to 3.3.14 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-25 21:03:18 +00:00
Chef Expeditor
aef0cdd939
Bump version to 3.3.13 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-25 18:15:58 +00:00
Chef Expeditor
033d534b47
Bump version to 3.3.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-25 16:56:25 +00:00
Clinton Wolfe
ee76c5bb54
Merge pull request #3740 from inspec/ja/adopt-3419
...
iis_app_pool: Fixes error with 'should not exist'
2019-01-25 11:56:10 -05:00
Chef Expeditor
e1fdffe550
Bump version to 3.3.11 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-25 16:46:04 +00:00
Chef Expeditor
723b5ec898
Bump version to 3.3.10 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-25 04:38:02 +00:00
Chef Expeditor
a6495f7301
Bump version to 3.3.9 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-23 17:24:54 +00:00
David Alexander
d5dbae2efd
Updates stub for IIS App Pool unit test
...
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2019-01-22 15:08:25 -08:00
David Alexander
abd234dca6
Removes Rubocop disable rule (not needed anymore)
...
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2019-01-22 15:08:25 -08:00
David Alexander
7c29bd81a1
Cleans up human-readable strings
...
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2019-01-22 15:08:25 -08:00
David Alexander
396b05b020
Takes advantage of inspec 2.x supports
resource framework
...
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2019-01-22 15:08:25 -08:00
David Alexander
ddf024d250
Fixes #3418 ('iis_app_pool should not exist' error)
...
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2019-01-22 15:08:25 -08:00
Chef Expeditor
471396832e
Bump version to 3.3.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-22 20:54:19 +00:00
Chef Expeditor
64ce9dc841
Bump version to 3.3.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-22 20:50:56 +00:00
Clinton Wolfe
2f42803a90
inspec check: Allow 'Proprietary' as a valid license term.
...
Signed-off-by: James Stocks <jstocks@chef.io>
2019-01-22 15:50:38 -05:00
Chef Expeditor
10ef5df028
Bump version to 3.3.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-22 20:01:07 +00:00
Chef Expeditor
ef0ca0e915
Bump version to 3.3.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-22 18:29:43 +00:00
Chef Expeditor
e6abd1b23e
Bump version to 3.3.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-17 20:08:31 +00:00
Clinton Wolfe
0a131e4945
Centralized Deprecation Facility #3690
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-17 15:08:16 -05:00
Clinton Wolfe
b1140ecd10
Place backticks around cli exit codes for exec
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-17 14:22:20 -05:00
James Stocks
ad4df90912
Allow 'Proprietary' as a valid license term.
...
Currently our supported profiles output a warning for every instance of `inspec check` because our license metadata `Proprietary, All rights reserved` is not considered valid.
This commit allows for a string beginning with `Proprietary` to be considered valid, as well as any valid SPDX value.
Signed-off-by: James Stocks <jstocks@chef.io>
2019-01-16 11:19:55 +00:00
Clinton Wolfe
4601740140
Linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-16 00:42:01 -05:00
Clinton Wolfe
45c1a11ad6
Create a real GroupEntry when the group is unrecognized, simplifying logic
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-16 00:41:21 -05:00
Clinton Wolfe
b89681350e
Correct comment reference exit code
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-16 00:26:29 -05:00
Clinton Wolfe
48e2188047
Remove class var for testing, replace with tramp data
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-16 00:24:19 -05:00
Clinton Wolfe
212fe36b76
Add debug output to ignore actions
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-15 23:49:20 -05:00
Clinton Wolfe
c6e22ddb16
Refine stack heuristics to reject RSpec and the deprecation system itself
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-15 23:36:03 -05:00
Clinton Wolfe
c63f6e28a3
Clarify error message when unknown_group_action is invalid
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-15 23:22:16 -05:00
Clinton Wolfe
6fc5bd8b83
Add comment field to group entries
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-15 23:17:52 -05:00
Clinton Wolfe
fe0236cb64
Remove spurious 'ocurrences' field from GroupEntry
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-15 15:40:14 -05:00
Clinton Wolfe
267786bf81
Doc updates per PR feedback
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-15 15:37:08 -05:00
Jerry Aldrich
f5ec7c9c65
Fix style/RuboCop on cw/deprecation-facility
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-14 13:57:59 -08:00
Chef Expeditor
feefdcf9af
Bump version to 3.3.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-14 18:50:05 +00:00
Clinton Wolfe
b5e91e7dbf
Support cran packages for non-utf8 locales ( #3613 )
...
Signed-off-by: Adam Ward <adamw@subdesigns.net>
2019-01-14 10:49:50 -08:00
Clinton Wolfe
c169119895
linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-10 23:54:50 -08:00
Clinton Wolfe
c43e401dda
Fix default exit code logic to properly use value in Inspec::UI
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-10 23:54:50 -08:00
Clinton Wolfe
b2bb8c062b
Last polish on the unit tests, all pass
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-10 23:54:50 -08:00
Clinton Wolfe
642d8d61b6
Funcitonal tests pass; some unit tests fail
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-10 23:54:50 -08:00
Clinton Wolfe
f5ab0d9125
Config file validation in place
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-10 23:54:50 -08:00
Clinton Wolfe
2121667e31
Starting implementation, global method is wired up
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-10 23:54:50 -08:00
Chef Expeditor
c44726ca95
Bump version to 3.3.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-11 07:52:38 +00:00
Chef Expeditor
97614ac8d4
Bump version to 3.3.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-10 01:23:23 +00:00
T. Miller
203195e545
postgres_session: Fix postgres directory searching ( #3708 )
...
Signed-off-by: Timothy Miller <timothy.miller.27.ctr@us.af.mil>
2019-01-09 17:23:08 -08:00
Chef Expeditor
e7e147513d
Bump version to 3.3.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-10 00:07:06 +00:00
Miah Johnson
15162bf920
Add resources for aws_billing_report and aws_billing_reports. ( #2838 )
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-09 16:06:48 -08:00
Chef Expeditor
da4051837d
Bump version to 3.2.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-21 03:17:22 +00:00
Tim Smith
b5ff949059
Update Ruby versions used for testing; fix Travis CI issues ( #3678 )
...
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-20 22:17:07 -05:00
Chef Expeditor
bb3b0059d8
Bump version to 3.2.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 22:15:32 +00:00
Chef Expeditor
6e14626233
Bump version to 3.2.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 21:33:41 +00:00
Chef Expeditor
d79b6c18d6
Bump version to 3.2.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 19:41:50 +00:00
Tim Smith
a1aef8fe17
Update list of SPDX licenses ( #3677 )
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2018-12-20 14:41:11 -05:00
Chef Expeditor
c103ba550f
Bump version to 3.2.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 19:33:38 +00:00
Amit Saha
bbc07f5f11
aws_sqs_queue - new resource ( #3674 )
...
Signed-off-by: Amit Saha <amitsaha.in@gmail.com>
2018-12-20 14:33:21 -05:00
Chef Expeditor
93223f5f2f
Bump version to 3.2.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 18:30:07 +00:00
Chef Expeditor
e760c68c16
Bump version to 3.2.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 17:31:27 +00:00
Jerry Aldrich
91fe4ad03b
Fix labels
on Docker containers ( #3673 )
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-20 12:31:13 -05:00
Chef Expeditor
3984990a55
Bump version to 3.2.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 16:58:08 +00:00
Noel Georgi
f1fbd518e5
Expose additional WinRM options for transport, basic auth, and SSPI ( #3669 )
...
Signed-off-by: Noel Georgi <git@frezbo.com>
2018-12-20 11:57:53 -05:00
Chef Expeditor
e6311c4410
Bump version to 3.1.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-14 18:58:51 +00:00
Chef Expeditor
c5108b2a90
Bump version to 3.1.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 19:09:02 +00:00
Noel Georgi
5d87b8f94b
Fix git fetcher error detection logic ( #3665 )
...
Signed-off-by: Noel Georgi <git@frezbo.com>
2018-12-12 14:08:48 -05:00
Chef Expeditor
f873e60309
Bump version to 3.1.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 18:32:52 +00:00
Wiebe Verweij
233cb900ba
Fix incorrect warning about connection from mysql_session ( #3659 ) ( #3660 )
...
Signed-off-by: Wiebe Verweij <wiebe@wiebelt.nl>
2018-12-12 13:32:01 -05:00
Chef Expeditor
0aa47f4459
Bump version to 3.1.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 18:06:06 +00:00
Jerry Aldrich
8019b2c487
Modify URL fetcher to accept URI ( #3633 )
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-12 13:05:51 -05:00
Chef Expeditor
671e315d93
Bump version to 3.1.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 16:44:28 +00:00
Clinton Wolfe
c0a46cf841
UI Object for for CLI work ( #3618 )
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-12 11:44:16 -05:00
Chef Expeditor
6fbde40bb6
Bump version to 3.0.66 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 16:23:32 +00:00
Chef Expeditor
fa53ae73cd
Bump version to 3.0.65 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-11 14:00:36 +00:00
Chef Expeditor
ae0019c33b
Bump version to 3.0.64 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-06 15:19:48 +00:00
Jerry Aldrich
ffe0bd4761
Update Habitat plugin ( #3646 )
...
This updates the Habitat plugin by doing the following:
- Removing `settings.sh` in favor of Habitat config TOMLs
- Changing deprecated `--format` to `--reporter`
- Cleaning up plan.sh in several ways
- Adding handling for different exit codes
- Removing unnecessary runtime deps
- Vendoring the InSpec archive during build
- Using shebangs that reference Habitat's bash
- Adding error handling for `hab studio enter`/`build` from `habitat/`
- Making `pkg_svc_user` use default `hab` and not `root`
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-06 10:17:39 -05:00
Chef Expeditor
3e585d3717
Bump version to 3.0.63 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-06 15:17:14 +00:00
Chef Expeditor
99c9ba2429
Bump version to 3.0.62 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-04 15:54:33 +00:00
Chef Expeditor
a4362e7a07
Bump version to 3.0.61 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-29 19:14:29 +00:00
Clinton Wolfe
fefa6c2ecd
Plugin Type: DSLs ( #3557 )
...
This PR adds 5 closely related plugin types, which allow a plugin to implement new DSL methods / keywords. The mechanism to activate the plugins are all very similar - basically, in a particular location in the code, `method_missing` is implemented, and is used to activate the particular type of DSL being requested.
4 of the DSL plugin types relate to code that could appear in a profile control file.
* outer_profile_dsl plugins allow you to extend the code in profile Ruby files that appear outside `control` or `describe` blocks.
* control_dsl plugins allow you to extend the code within `control` blocks.
* describe_dsl plugins allow you to extend the code within `describe` blocks.
* test_dsl plugins allow you to extend the code within `it`/`its` blocks.
Finally, the `resource_dsl` plugin allows you to extend the code used within custom resources.
Basic unit tests are provided to prove that the plugin types are properly defined.
A simple plugin fixture defining DSL hooks (based on favorite foods) is included, and is exercised through a set of functional tests.
The plugin developer docs are updated to describe the 5 DSLs.
*Note*: Implementing a plugin using any of the DSL plugin types is experimental. The contexts that are exposed to the DSL methods are private and poorly documented. The InSpec project does not claim the APIs used by these plugin types are covered by SemVer. Plugin authors are encouraged to pin tightly to the `inspec` gem in their gemspecs.
Motivation for this plugin comes from the desire to allow passionate community members to implement things like "2 out of 3" tests, example groups, improved serverspec compatibility, "they/their" and other "fluency" changes, as well as make it possible for future work by the InSpec team to be implemented as a core plugin, rather than a direct change to the main codebase.
2018-11-29 14:14:06 -05:00
Chef Expeditor
0f1a30cb06
Bump version to 3.0.60 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-27 22:00:20 +00:00
Chef Expeditor
893e234df4
Bump version to 3.0.59 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-27 21:55:14 +00:00
Caprowni
af4253c755
Adding an AWS platform template so that it can be specified to create a template when using 'inspec init --platform' ( #3622 )
...
Signed-off-by: Liam Caproni <liamcaproni@gmail.com>
2018-11-27 16:55:03 -05:00
Clinton Wolfe
b3fafab1e6
Add aws_eks_cluster resource ( #3582 )
...
* add aws_eks_cluster
Signed-off-by: Timothy van Zadelhoff
timothy.inspec@theothersolution.nl
* disable ABC check on fetch_from_api
Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl>
* add status predicates
* Change docs for status attribute
Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl>
* Add integration tests
Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl>
* Adjust EKS build code to almost work
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* EKS only uses private subnets - integration tests pass
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Correct AWS Exception class for resource search miss in unit test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Update unit test to reflect AWS resource-standard miss behavior, returning nil for most properties
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-11-27 16:54:47 -05:00
Chef Expeditor
1c742e6eff
Bump version to 3.0.58 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-27 18:21:36 +00:00
mhackethal
b67236e485
package: fix package detection on windows ( #3607 )
...
* Update package.rb to solve issue #3361
Update the windows package search regex.
According to issue #3361
* Update package.rb
Fix trailing spaces
* Update helper.rb
update sha for get-item-package. To fix the issue #3361
Signed-off-by: markus hackethal <mh@it31.de>
2018-11-27 13:21:25 -05:00
Chef Expeditor
a419ce3aff
Bump version to 3.0.57 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-26 14:12:37 +00:00
Chef Expeditor
32ad4b9fbf
Bump version to 3.0.56 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-19 18:33:11 +00:00
mhackethal
86cf55382b
filesystem: improve Windows support ( #3606 )
...
* Improve filesystem.rb to support windows
improve filesystem.rb to support windows.
Split into 2 classes LinuxFileSystemResource / WindowsFileSystemResource
Add filesystem to verify a FS-type ( currently not for linux because missing test server )
Size on Windows is converted to GB - discussion about this welcome
update to reflect also windows os
* Create get-wmiobject-filesystem
* Delete get-wmiobject-filesystem
* Fix the testing code for filesystem.
Change its 'filesystem' to 'type' according to recommendation from @miah
Signed-off-by: Markus Hackethal <mh@it31.de>
2018-11-19 13:32:59 -05:00
Chef Expeditor
3c557eac3f
Bump version to 3.0.55 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-16 22:09:59 +00:00
Chef Expeditor
8e88bc3eb5
Bump version to 3.0.54 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-16 22:06:50 +00:00
Clinton Wolfe
e4afadfc3f
Revert setting RSpec expectation syntax to 'should' mode ( #3620 )
...
* Revert "Silence RSpec 'should' Warning (#3560 )"
This reverts commit 7c611a4c24
.
* Add comment with link to reverted fix
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-11-16 17:04:04 -05:00
Chef Expeditor
82af39e25a
Bump version to 3.0.53 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-16 22:03:23 +00:00
Clinton Wolfe
3c8697e5e2
Create a class to handle the plugins.json file ( #3575 )
...
* unit tests for plugin conf file class, all skip
* File path stuff works
* Validation works
* Add works
* Added remove_entry
* Save works - ready to refactor others
* Rework Loader to use ConfigFile
* Modify loader and installer to use the config file class
* linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-11-16 17:03:09 -05:00
Chef Expeditor
ae5986f7b9
Bump version to 3.0.52 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-15 20:15:03 +00:00
Jerry Aldrich
4a03e54b4c
Load the compliance plugin when the fetcher is needed ( #3609 )
...
* Add Compliance fetcher pending 4.0 plugin
When migrating `inspec-compliance` to a V2 plugin only the CLI functions
were migrated. This caused the fetcher portions of `inspec-compliance`
to fail.
Currently, there isn't a fetcher plugin type so this loads the fetcher
explicitly until a fetcher plugin type and corresponding Compliance
fetcher is created in InSpec 4.0.
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-11-15 15:14:49 -05:00
Adam Ward
efccf1770e
Support cran packages for non-utf8 locales
...
Signed-off-by: Adam Ward <adamw@subdesigns.net>
2018-11-15 11:04:08 +11:00
Chef Expeditor
cbd2384dd7
Bump version to 3.0.51 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-13 19:36:49 +00:00
Harold Dost
202bec7641
Adds protection against zipslip vulnerability ( #3604 )
...
- Adds associated tests to validate paths can't be used.
Relates to: #3599
Signed-off-by: Harold Dost <h.dost@criteo.com>
2018-11-13 14:33:34 -05:00
Chef Expeditor
a0fd25ba3a
Bump version to 3.0.50 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-13 19:33:22 +00:00
Fernando Alexandre
8b089ea1e1
Fixes #3546 ( #3592 )
...
* When pty is used not having --no-pager makes inspec hang during the test
* Updated tests
Signed-off-by: Jose Alexandre <jose.alexandre@worldfirst.com>
2018-11-13 14:33:08 -05:00
Chef Expeditor
1f38c1436a
Bump version to 3.0.49 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-13 18:25:45 +00:00
Timothy van Zadelhoff
5739cb2d6b
aws_security_group: Query against other security group ids in allow_* matchers ( #3576 )
...
* add security-group to security-group rules
* update docs
* Add integration tests for security-group to security-group rules
* rubocop fix
* Add one security group rule, with position.
* make control fit description
Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl
2018-11-13 13:25:33 -05:00
Chef Expeditor
3ee216b3c2
Bump version to 3.0.48 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-08 21:03:24 +00:00
Chef Expeditor
a05183cf1c
Bump version to 3.0.47 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-08 21:00:14 +00:00
Chef Expeditor
f632882a9e
Bump version to 3.0.46 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-08 20:55:29 +00:00
Jerry Aldrich
6ba4aaf630
Add Git SSH and HTTP basic auth support to inspec exec
( #3562 )
...
* Add support for `git@` and HTTP basic auth
This adds support for the following:
```
inspec exec git@github.com:private/example_profile
inspec exec https://username:token@github.com/private/example_profile
inspec exec https://username:password@webserver/private/example_profile
```
This also uses the Git fetcher when the URL ends in `.git`. Example:
```
git config credential.helper cache
git ls-remote https://github.com/private/example_profile.git
inspec exec https://github.com/private/example_profile.git
```
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* Add documentation for `inspec exec` usage
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* Add tests for Git fetcher and `inspec exec`
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* Add `opts` to branch of Git fetcher resolve logic
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* Modify Git example comments
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
* Force `parse_uri` to attempt a parse
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-11-08 15:55:15 -05:00
Chef Expeditor
167a876705
Bump version to 3.0.45 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-08 18:58:37 +00:00
Chef Expeditor
b5c8aa1d47
Bump version to 3.0.44 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-08 18:55:42 +00:00
Chef Expeditor
529cdbafc3
Bump version to 3.0.43 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-08 18:52:47 +00:00