Commit graph

2878 commits

Author SHA1 Message Date
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