Commit graph

7591 commits

Author SHA1 Message Date
Miah Johnson
8e31367b51 Use new mock loader, update the command name
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 21:42:10 -07:00
Miah Johnson
e357232db1 Since our command is df -PT lets match it in name
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 21:33:29 -07:00
Miah Johnson
0affbc0487 Use the posix output format
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 19:55:53 -07:00
Miah Johnson
90d3d9fd32 supports should cover this, salmon!
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 17:59:25 -07:00
Miah Johnson
e6b6762e51 Nicer memoize
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 17:58:58 -07:00
Miah Johnson
044110e6fc Return true/false if iis_app_pool[:pool_name] has a value (or not)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 17:57:42 -07:00
Miah Johnson
cff6c30a3c
Merge pull request #4603 from inspec/mj/ccp
Let codeclimate ignore included inspec profiles
2019-10-23 17:20:08 -07:00
Chef Expeditor
c982626819 Update CHANGELOG.md with details from pull request #4600
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 00:19:21 +00:00
Miah Johnson
1e292adc42
Merge pull request #4600 from inspec/mj/4588
Add ruby 2.7 preview
2019-10-23 17:19:06 -07:00
Ryan Davis
8d51d878f6 Fixed users resource when "Last password change" is "never".
Extended quick_resource to have platform methods and a new string
command mock. The named resource to mock may now be a symbol.

Added a new test that shows how to use quick_resource with multiple commands.

Fixes #4629.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-23 16:49:49 -07:00
Ryan Davis
c9a3c927f9 Fixed inspec from crashing on startup when it can't create the cache directory.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-23 16:35:11 -07:00
Chef Expeditor
8200e625b4 Bump version to 4.18.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-23 21:54:39 +00:00
Miah Johnson
d546a0281a
Merge pull request #4631 from inspec/larryebaum-patch-1
Update waivers.md
2019-10-23 14:54:21 -07:00
Larry Eichenbaum
bd173b01e7
Update waivers.md
Adding DCO
Signed-off-by: Joe Smith  <6776768+larryebaum@users.noreply.github.com>
Edited example to reflect correct input file structure for expiration.
2019-10-22 22:39:10 -07:00
Larry Eichenbaum
a7c73c4e13
Update waivers.md
Revise example text
2019-10-22 21:52:49 -07:00
Ryan Davis
3cc4b4d0b4 Add buildkite caching to our verify pipeline.
I'm not sure why we're doing this ourselves instead of using
buildkite's own artifact caching, but that's fine.

This speeds up the "bundle install" phase from ~3m to ~20s.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 17:44:41 -07:00
Ryan Davis
c93d61da1c Add a non-root user for testing on BK.
Unfortunately, we have a lot of failing tests when we run as a
non-root user and the files are owned by root. We can't chmod the
checkout to the non-root user as it is a shared mount in docker and
that's not allowed to the outside world.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 17:40:41 -07:00
Miah Johnson
3c908b4c1b Make our 2.7 test always return true
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-22 14:08:52 -07:00
Ryan Davis
d201d1fbc2 Fixed the rest of the minitest deprecations by removing FuncTestRunResult.
Folded the json & other payloads into plain ivars on the test.
Found and removed some unused code while I was there.

Fixes #4533.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 12:15:28 -07:00
Chef Expeditor
aebcd3c119 Bump version to 4.18.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-21 21:26:54 +00:00
Ryan Davis
8d4e8c1d96
Merge pull request #4627 from inspec/zenspider/json-and-resource-cleanup
JSON processing and resource cleanup
2019-10-21 14:26:37 -07:00
Chef Expeditor
aaecbfa602 Bump version to 4.18.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-21 20:48:25 +00:00
Ryan Davis
9be2accf5d
Merge pull request #4598 from inspec/zenspider/win
Clean up testing in inspec exec by stripping ansi color codes from output.
2019-10-21 13:48:07 -07:00
Ryan Davis
4dfec45b8c Extra todos! Yay!
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
33dacc4044 ResourceDSL#name should actually return the name if it is going to be named like a getter.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
ebf90ca140 Added Resource.backfill_supports! to provide platform inheritance.
This make it so resources like yaml (which subclasses json) have their
platform information filled in properly.

This still isn't being called. Not sure where the right entry point
is... but the method is now available and allowed me to do analysis on
the rest of the resources.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
7e013e0a48 Mark json as an 'os' platform.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
915fdd0396 Mark mssql_session as a windows platform.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
e5e1a745cc Fixed run_inspec_with_plugin to merge run options properly.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
e469af9d70 Remove (test?) cruft modifying $LOAD_PATH in plugin loader.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
b626c37386 Improve debugging of json parse failures in functional tests.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
d7a2e047f4 Rename describe.rb to describe_base.rb
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
fdaea02427 Clean up testing in inspec exec by stripping ansi color codes from output.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 12:46:37 -07:00
Chef Expeditor
13e9774da2 Bump version to 4.18.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-21 19:41:12 +00:00
Ryan Davis
031d4c592b
Merge pull request #4597 from inspec/zenspider/systemstackerror
Rescue SystemStackError to make errors during inspec check/archive more graceful.
2019-10-21 12:40:52 -07:00
Chef Expeditor
6b618edb75 Update CHANGELOG.md with details from pull request #4625
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-21 19:37:12 +00:00
Ryan Davis
23be7f8e9f
Merge pull request #4625 from inspec/zenspider/website-search-button
Fix the search button wiring.
2019-10-21 12:37:00 -07:00
Ryan Davis
c907a9114f
Update docs/dsl_resource.md
Co-Authored-By: mjingle <mjingle@users.noreply.github.com>
2019-10-21 12:35:09 -07:00
Ryan Davis
0620320d6e
Update docs/dsl_resource.md
Co-Authored-By: mjingle <mjingle@users.noreply.github.com>
2019-10-21 12:34:59 -07:00
Chef Expeditor
fa43309993 Bump version to 4.18.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-21 19:31:52 +00:00
Ryan Davis
dd3043a992
Merge pull request #4619 from inspec/zenspider/empty-tarball
Fix TarProvider when the tarball has empty files in it.
2019-10-21 12:31:29 -07:00
Ryan Davis
b852d32dd5 Fix the search button wiring.
I'm not a slim guy, but I think this is just a nesting issue.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 11:52:52 -07:00
Chef Expeditor
e839c691d6 Update CHANGELOG.md with details from pull request #4620
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-18 22:12:58 +00:00
Miah Johnson
6aac679c54
Merge pull request #4620 from inspec/mj/hfp
Fix the path for our scripts, I don't know where I got /workdir
2019-10-18 15:12:46 -07:00
Ryan Davis
3eaa64e5f1 Update Resource DSL doco to reflect lazy loading.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-18 15:11:53 -07:00
Miah Johnson
cb4007c15f Fix the path for our scripts, I don't know where I got /workdir
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-18 15:10:53 -07:00
Ryan Davis
e4f4f5d1cc Fix TarProvider when the tarball has empty files in it.
Added a unit test that runs in ~0.1s. Let's avoid heavy integration
tests where possible.

Fixes #4616

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-18 14:30:00 -07:00
Chef Expeditor
2ba752dd84 Update CHANGELOG.md with details from pull request #4618
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-18 20:50:08 +00:00
Miah Johnson
68e1103798
Merge pull request #4618 from inspec/mj/htp
Make shell script executable
2019-10-18 13:49:57 -07:00
Miah Johnson
b5bd3b42f7 Make shell script executable
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-18 13:48:47 -07:00