Commit graph

5949 commits

Author SHA1 Message Date
Clinton Wolfe
735e7b060b Oh parens
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 16:14:45 -04:00
Clinton Wolfe
c6940be8d4 Make license touching for functional and int testing portable to windows
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 15:30:30 -04:00
Clinton Wolfe
8915ad049f Correct pre-integration task name
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 15:06:09 -04: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
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
0ce122ff21 Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:37:43 -04:00
Clinton Wolfe
638d4440a5 Add license-acceptance library to gemspec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:33:04 -04:00
Clinton Wolfe
3478ac3897 Add user messaging when writing a license file
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -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
Clinton Wolfe
d41dc48afa If the license was accepted only for testing, delete it at exit
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:30:46 -04:00
Clinton Wolfe
71c13f38a4 Make functional and integration tests assume the license has been accepted
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
Clinton Wolfe
e87b71d2f1 Merge branch 'master' of github.com:inspec/inspec 2019-04-11 10:19:15 -04:00
Clinton Wolfe
46f6513884 Also test 3-stable on Travis
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-10 13:23:51 -04:00
Chef Expeditor
36de42401e
Update CHANGELOG.md with details from pull request #3927
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-09 20:51:11 +00:00
Clinton Wolfe
b513bfa76f
Merge pull request #3927 from inspec/cw/fix-winrm-kerberos
Fix winrm no-such-transport test
2019-04-09 16:50:56 -04:00
Clinton Wolfe
d181098249
Merge pull request #3925 from inspec/cw/fix-version-freeze
Freeze version to appease rubocop
2019-04-09 15:50:40 -04:00
Clinton Wolfe
6ca37e6b79
Merge pull request #3926 from inspec/cw/disable-func-test-warnings
Disable warnings for functional tests
2019-04-09 15:50:12 -04: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
71cc147c58 Disable warnings for functional tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-09 15:25:14 -04: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
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
Clinton Wolfe
4c1b3de2d9
Merge pull request #3910 from inspec/platform_testing
Remove EOL Ubuntu / macOS platform testing
2019-04-08 18:22:50 -04:00
Clinton Wolfe
ae90bea33d
Merge pull request #3924 from inspec/cw/fix-debian-8
Add -y to all apt-get update commands in integration tests
2019-04-08 17:53:02 -04:00
Clinton Wolfe
84cab416fe Update expeditor release config for v4
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 15:23:46 -04: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