Commit graph

6028 commits

Author SHA1 Message Date
Miah Johnson
12c94e1e97 Revert "Use ignore_deprecations helper to silence warnings for cli.ui"
This reverts commit 144c482a24.
2019-04-24 13:17:52 -07:00
Miah Johnson
5a51e06186 Change file_resource_be_mounted_matchers from warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-24 12:24:48 -07:00
Miah Johnson
144c482a24 Use ignore_deprecations helper to silence warnings for cli.ui
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-24 02:28:28 -07:00
Miah Johnson
225b167ea3 Change host_resource_proto_usage from warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 22:31:49 -07:00
Miah Johnson
656406b8f6 Change inspec_ui_methods from ignore -> warn
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 21:59:14 -07:00
Miah Johnson
fe8a591d6d Change mssql_session_pass_option from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 21:28:20 -07:00
Miah Johnson
2a3e8e15a8 Change oracledb_session_pass_option from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 21:17:45 -07:00
Miah Johnson
cd10086481 Change property_filesystem_size from ignore -> warn
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 21:16:25 -07:00
Miah Johnson
c4979ced6e Change property_process_list from warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 20:33:02 -07:00
Miah Johnson
585ce3b26f Change properties_aws_iam_user from warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 20:26:31 -07:00
Miah Johnson
7f00e54495 Change properties_shadow from warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 19:30:21 -07:00
Miah Johnson
a00520d8b3 Change rename_attributes_to_inputs from ignore to warn.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 19:18:55 -07:00
Miah Johnson
a8c2544e72 Change resource_apache from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 18:47:12 -07:00
Miah Johnson
1c9cccb1e3 Change resource_iis_website from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 18:09:18 -07:00
Miah Johnson
b508cb7aa5 Change resource_linux_kernel_parameter from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 17:37:46 -07:00
Miah Johnson
d9d7e351a3 Change resource_ppa from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 17:08:52 -07:00
Miah Johnson
82b705aa9f Change resource_script from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 16:36:09 -07:00
Miah Johnson
080c882322 Change resource_user_serverspec_compat from warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 16:13:13 -07:00
Miah Johnson
620bd44976 Change resource_windows_registry_key from warn -> exit
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 15:51:04 -07:00
Miah Johnson
a10a62a505 mount_parser_serverspec_compat warn -> fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 15:30:51 -07:00
Miah Johnson
5b3a24407f Change wmi_non_hash_usage from warn to fail_control
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-23 15:11:12 -07:00
Clinton Wolfe
f7b01093a4 Warn on using default with attributes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-23 11:46:13 -04:00
Clinton Wolfe
aa19b6e99d Add helper to filter out deprecations on stderr
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-23 11:46:13 -04:00
Chef Expeditor
f1cc0b0477
Bump version to 4.1.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-22 16:50:02 +00:00
Clinton Wolfe
330d504722
Use the upstream unf_ext again (#3963)
Use the upstream unf_ext again
2019-04-22 12:49:43 -04:00
Tim Smith
6c3abc36ef Use the upstream unf_ext again
The new version was released that includes our Solaris patch as well as Ruby 2.6 support.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-19 20:18:11 -07:00
Chef Expeditor
50a8fd7370
Bump version to 4.1.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-17 21:12:41 +00:00
Clinton Wolfe
3d0b8dff2e
Merge pull request #3956 from inspec/cw/use-deprecation-everywhere-4-port
Use deprecation facility everywhere - v4 port
2019-04-17 17:12:24 -04:00
Clinton Wolfe
6a580ade70 Add missing group argument in deprecator
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-17 15:58:18 -04:00
Chef Expeditor
e3999a0814
Bump version to 4.1.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-17 17:41:26 +00:00
Clinton Wolfe
23e77155a8
Merge pull request #3953 from inspec/tas50/ruby_24_plus
Require Ruby 2.4 or later
2019-04-17 13:41:12 -04:00
Clinton Wolfe
dca2f069ba Disable Performance/RegexpMatch rule to avoid breaking soooo many tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-17 12:40:53 -04:00
Chef Expeditor
bf15cffcc4
Bump version to 4.1.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-17 15:57:48 +00:00
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
Tim Smith
590dcc6d60 Bump the main inspec gem as well
I missed this one

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:21:46 -07:00
Tim Smith
00ce6c02df Require Ruby 2.4 or later
Ruby 2.3 is no longer supported. Drop this release from InSpec and
instead support the 3 latest Ruby releases.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:19:40 -07: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
201c52594d Correct deprecation message on shadows property
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-16 17:32:29 -04:00
Clinton Wolfe
a3a2699e8d Update unit tests to expect deprecations
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-16 17:28:39 -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
Miah Johnson
e76978cd67
Merge pull request #3948 from inspec/snappj/improve-omnibus-test-scripts
Improve omnibus test scripts
2019-04-16 12:25:26 -07: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
Jeremiah Snapp
265ce834ad Do not add inspec's bin path to the PATH env var
By not adding inspec's bin path to the PATH env var
we can properly test that inspec's install scripts
created the appropriate symlinks.

Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2019-04-15 17:04:30 -04:00
Jeremiah Snapp
8533998fb8 Reload Env:PATH to get changes from inspec installation
Reloading Env:PATH does a better job of testing if
the installation properly configured the system's
PATH.

Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2019-04-15 17:02:34 -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
c1660e8568 Helper script to check for typos in deprecation group names
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-12 10:57:30 -04: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
Clinton Wolfe
ce9fe22955
Merge pull request #3939 from inspec/new_webmock
Test with webmock 3+
2019-04-12 10:08:37 -04:00