Miah Johnson
314715d9f8
let there be tests
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 19:11:38 -07:00
Miah Johnson
6bab53cbd3
after dropping the return we dont have to worry about executing during init
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 19:10:57 -07:00
Miah Johnson
0ff8383369
give bin a default value
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 19:10:03 -07:00
Miah Johnson
85df7f52ef
Don't need to return on these.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 17:28:14 -07:00
Miah Johnson
9173674ecd
Unsure why old mocking system is broken.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 17:27:01 -07:00
Miah Johnson
6e346a3616
make readers match their instance variables
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:28:34 -07:00
Miah Johnson
c82a94f2a3
wire everythign up
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:28:19 -07:00
Miah Johnson
08462e4319
give our argument a better name
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:27:18 -07:00
Miah Johnson
36dc965d70
dead code
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:26:19 -07:00
Miah Johnson
45348965b6
figure out command outside of query.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:25:03 -07:00
Miah Johnson
96d832effa
fix verify_query
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:16:05 -07:00
Miah Johnson
3a8c474e56
Move our resource checks out of initialize.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 15:14:41 -07:00
Miah Johnson
a46f78031b
set sqlcl_bin if specified by users, else don't.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 12:28:15 -07:00
Miah Johnson
66cb95b2ca
Add tests to cover Linux/Windows differences in sqlplus execution
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-30 12:26:12 -07:00
Chef Expeditor
58d9a975c1
Bump version to 4.18.15 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:25:59 +00:00
Chef Expeditor
4897f75371
Bump version to 4.18.14 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:25:17 +00:00
Miah Johnson
9c953a0e68
Merge pull request #4638 from inspec/mj/eha
...
Add #to_s to etc_hosts_allow, and add tests
2019-10-24 13:24:46 -07:00
Chef Expeditor
c0001ff873
Bump version to 4.18.13 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:24:35 +00:00
Miah Johnson
44579ab4b3
Merge pull request #4637 from inspec/mj/3921
...
Fix filesystem resource when device has long name
2019-10-24 13:24:23 -07:00
Miah Johnson
86acdda337
Merge pull request #4636 from inspec/mj/4630
...
iis_app_pool better handling of non-existent pools.
2019-10-24 13:24:03 -07:00
Chef Expeditor
71d0683ff0
Bump version to 4.18.12 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:23:51 +00:00
Miah Johnson
c9c8bc5f9d
Merge pull request #4635 from inspec/zenspider/users-bad-date
...
Fix a crash from users resource if the password has never been updated
2019-10-24 13:23:30 -07:00
Miah Johnson
ac399b7af9
Add #to_s to etc_hosts_allow, and add tests
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-24 12:07:26 -07:00
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
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
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