Clinton Wolfe
7aeb1763a9
Merge pull request #3897 from mattlqx/interface-addresses
...
Support address matchers on interface resource
2019-04-17 11:57:29 -04:00
Clinton Wolfe
1552dc0210
Merge branch 'cw/use-deprecation-everywhere-3-port' of github.com:inspec/inspec into cw/use-deprecation-everywhere-4-port
2019-04-16 17:42:45 -04:00
Clinton Wolfe
ba6d59dc66
Deprecation handler in unit test helper
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-16 16:27:56 -04:00
Chef Expeditor
92a132ef18
Bump version to 4.1.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-16 18:42:03 +00:00
Clinton Wolfe
0c884b1415
Merge pull request #3895 from mitre/al-mitre/more-permissive-than
...
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2019-04-16 14:41:43 -04:00
Matt Kulka
633cea6673
support address matchers on interface resource
...
Adds missing functionality to `interface`. Fixes #1830
```
describe interface("eth0") do
its(ipv4_addresses) { should include 1.2.3.4 }
end
```
And so on... see diff/docs for additional matchers.
Signed-off-by: Matt Kulka <mkulka@parchment.com>
2019-04-12 08:24:13 -07:00
Clinton Wolfe
fc1bc75358
Adjust deprecations somewhat
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-12 10:55:36 -04:00
Chef Expeditor
5de39cb325
Bump version to 4.0.8 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-12 14:09:02 +00:00
Chef Expeditor
e456a1786d
Bump version to 4.0.7 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-12 14:08:18 +00:00
Jerry Aldrich
40031a9b83
Use deprecation facility throughout code
...
This converts all current deprecation warnings/TODOs to use the
`Inspec.deprecate()` deprecation facility.
This also modifies `Inspec.deprecate()` to only require 1 argument.
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-04-11 19:15:01 -04:00
Chef Expeditor
414268eccc
Bump version to 4.0.6 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-11 22:56:25 +00:00
Clinton Wolfe
4348e8fa07
Merge pull request #3935 from inspec/cw/add-license-gating
...
Add license acceptance to InSpec v4
2019-04-11 18:56:11 -04:00
Chef Expeditor
afe936ead1
Bump version to 4.0.5 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-11 20:23:32 +00:00
Clinton Wolfe
03385b98ba
Merge pull request #3928 from inspec/mj/tmr
...
Telemetry Object Model
2019-04-11 16:23:17 -04:00
Clinton Wolfe
0ce122ff21
Linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:37:43 -04:00
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