Clinton Wolfe
b74f61e9de
Update deprecation settings for v4 ( #3973 )
...
Update deprecation settings for v4
2019-04-25 18:56:43 -04:00
Clinton Wolfe
65123b47c0
Don't use a profile with old-style attributes in vendor test
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-25 17:37:13 -04:00
Clinton Wolfe
5383ca2040
Merge branch 'cw/apply-v4-deprecations' of github.com:inspec/inspec into cw/apply-v4-deprecations
2019-04-25 14:58:35 -04:00
Clinton Wolfe
ab0282f156
Revert "Skip legacy --json-config test until CLI setup is refectored"
...
This reverts commit 81c28d5b56
.
2019-04-25 14:51:33 -04:00
Clinton Wolfe
81c28d5b56
Skip legacy --json-config test until CLI setup is refectored
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-25 14:49:47 -04:00
Clinton Wolfe
23fdecd9c3
Make sure trailing newline is preserved when ignoring deprecations in functional tests
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-25 14:48:35 -04:00
Clinton Wolfe
9e6adcc7b1
update 'low' impact value to align with CVSS 3.0 ( #3961 )
...
update 'low' impact value to align with CVSS 3.0
2019-04-25 14:43:43 -04:00
Clinton Wolfe
9833b1950b
Update plugin test fixtures for Ruby 2.6 and remove for 2.3 ( #3978 )
...
Update plugin test fixtures for Ruby 2.6 and remove for 2.3
2019-04-25 11:10:17 -04:00
Clinton Wolfe
843ba7afa2
Improve ss parsing code for IPv6 addresses ( #3962 )
...
Improve ss parsing code for IPv6 addresses
2019-04-25 11:09:31 -04:00
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
Clinton Wolfe
91c0f1e83b
Rewrite fltertable functional tests to DRY up and avoid --json-config
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-24 11:37:43 -04: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
Clinton Wolfe
77400b83b2
Also for train-test-fixture add 2.6.0 ABI and remove 2.3.0 ABI
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-23 23:45:59 -04:00
Clinton Wolfe
cf1d4f9994
Remove 2.3.0 ABI test fixture plugins
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-23 23:39:31 -04:00
Clinton Wolfe
3ec3607544
Add 2.6.0 ABI plugin test fixtures
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-23 23:37:59 -04:00
Aaron Lippold
a94fdc67d5
updated low
to align with CVSS 3.0
...
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2019-04-23 15:02:52 -04: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
Miah Johnson
2f78515164
Add a few tests for LinuxPorts class to validate ss parsing.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-19 13:45:33 -07: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
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
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
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
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
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
Clinton Wolfe
03385b98ba
Merge pull request #3928 from inspec/mj/tmr
...
Telemetry Object Model
2019-04-11 16:23:17 -04:00
Miah Johnson
5adf33469a
improve testing for DataSeries#to_h and DataSeries#to_json
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-11 12:22:29 -07:00
Miah Johnson
55ea2d984c
Not sure how to make this not dependant on list_data_series to prove its
...
functionality.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-11 12:17:59 -07:00
Clinton Wolfe
34d16553bb
Use touched license file to make re-homed config test pass
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 15:03:27 -04:00
Miah Johnson
3c6db15124
improve tests for Collector#list_data_series
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-11 11:47:42 -07:00
Clinton Wolfe
8d3e704532
Update CLI option for accepting license; licensing tests pass
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 14:20:41 -04:00
Clinton Wolfe
d94addf54a
Update functional test to remove interactive testing; impossible now with tty detection
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 13:11:11 -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
30e5c39e74
tmpdir and mktmpdir are two verry different things
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
023bfefc67
Add ungated invocations
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
7d81f93496
Add test for interactively answering no
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
fb73b39976
Add tests for interactively answering yes
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
2f3adf6176
Add tests for when persistence file already exists
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
1c9533087d
Test when --accept-license is used
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
e3857a8783
Sketch of functional test
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04: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
066ed01259
Update winrm no-such-transport test to not use kerberos, which we do now support
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-09 15:43:37 -04:00
Clinton Wolfe
2b30646642
Merge branch 'cw/attrs-rename-cli-option' into 3-stable
2019-04-09 12:10:53 -04: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