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
b057b0dc01
Correct formatting test
...
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
e054be7d0d
Comment on doubt of truthiness
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
6c20f312fd
Add bang to validate_reporters in tests, too
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
06399fbc0f
Add clarifying comments to unit test for malformed json test
...
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
2f16146bce
Fix a unit test
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
bb6a73d7d4
Create config object and units tests
...
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
2e0af3575f
TEMPORARY - point to train from a github branch
...
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
caf920796d
Executed '.expeditor/update_dockerfile.sh'
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-01 04:56:48 +00: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
3612a217a6
Merge pull request #3751 from inspec/cw/plugins-add-no-user-plugins-option
...
Add CLI options to disable loading plugins
2019-01-31 23:18:16 -05: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
36ce34be98
Passing functional tests for using plugin disable options
...
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
Clinton Wolfe
cbaeeff304
Merge pull request #3775 from inspec/cw/temporarily-pin-train
...
Temporarily pin train to 1.7.1
2019-01-31 22:50:23 -05:00
Clinton Wolfe
304a1b9873
Temporarily pin train to 1.7.1
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:24:18 -05: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
ee2249c4b0
Merge pull request #3773 from inspec/james-stocks/attribute_to_ruby
...
Fix Inspec::Attribute.to_ruby and add unit test
2019-01-30 23:03:09 -05:00
Clinton Wolfe
a1af115e26
Add eval to unit tests; break up codegen test into individual elements
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-30 14:29:18 -05: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
Jerry Aldrich
94d8d11120
Respond to feedback
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-30 09:26:04 -08: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
0fcbf0b155
Executed '.expeditor/update_dockerfile.sh'
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-29 21:20:38 +00: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
Clinton Wolfe
df4d4da431
Merge pull request #3766 from inspec/cw/plan-rebuild
...
Update Ruby requirement in README
2019-01-29 15:45:45 -05:00
Clinton Wolfe
635cc58b77
Update Ruby requirement in README
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-29 15:44:48 -05: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
ce15ee9fe3
Merge pull request #3759 from inspec/cw/attrs-deprecate-default
...
Allow :value in addition to :default for setting attribute values
2019-01-28 17:40:50 -05: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
6b5a951ccf
Update value/default usage in test files
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-28 00:42:27 -05:00
Clinton Wolfe
8760c48dbd
Update docs
...
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
b801bbca1c
Consolidate tests and verify output contents
...
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-01-27 17:46:42 -08:00