Commit graph

5653 commits

Author SHA1 Message Date
Clinton Wolfe
5bbd4c16d6 Add size_kb, and correct Powershell code to return KB for both total size and free space, rather than total in GB and free space in bytes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:01:04 -05:00
Clinton Wolfe
fef637a6c6 Add percent_free property
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:01:04 -05:00
James Massardo
497035a65b missed rubocop error
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
James Massardo
49eccb09aa removed unneeded library
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
James Massardo
c1a9de7003 update helpers and mocks so tests run successfully
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
James Massardo
83c0c18fca Add free space and type to filesystem resource
Signed-off-by: James Massardo <jmassardo@chef.io>
2019-02-06 14:01:04 -05:00
Chef Expeditor
85c815011a
Bump version to 3.5.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 18:28:46 +00:00
Clinton Wolfe
5a5eb4a9a5
Merge pull request #3750 from inspec/cw/cred-set-support-02
Formalize Config File
2019-02-06 13:28:30 -05:00
Chef Expeditor
3cc2ee63e0
Bump version to 3.5.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 18:24:01 +00:00
Clinton Wolfe
14ef38f365
Merge pull request #3720 from inspec/cw/plugins-move-activate-method
Plugins: Relocate plugin activate() method to Activator class, add simpler search method
2019-02-06 13:23:45 -05:00
Clinton Wolfe
591317e659 Remove spurious 'unless activated?' on most activation calls
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:22:51 -05:00
Clinton Wolfe
91ed6e3256 Remove quotes from symbol representation of activated?
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
927b2690cf Update activate() calls used by DSL plugin type
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
0805e9bed3 linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
1010142139 Convenience method for the common case of finding exactly one plugin activator
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
f760c54cba Move plugin activate() method into Activator class
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:18:18 -05:00
Clinton Wolfe
6f1c8ab6df Disable RDP login for appveyor
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:14:53 -05:00
Clinton Wolfe
fb1e6c4f03 Temporarily enable RDP login for appveyor
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:45:19 -05:00
Clinton Wolfe
5282baf9ce Relax pin on train in inspec-core
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:44:42 -05:00
Chef Expeditor
0c83750dc9
Bump version to 3.5.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 15:55:00 +00:00
Clinton Wolfe
eee599a95a
Merge pull request #3776 from eloyekunle/fix/postgres_ident_docs
Fixed Wrong References to pg_hba in postgres_ident_conf documentation
2019-02-06 10:54:39 -05:00
Clinton Wolfe
a5fbeccf68 Add deprecation hook for --json-config
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:29:34 -05:00
Clinton Wolfe
cb3e0aca60 Test for piped config, and fix to make it work
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:27:49 -05:00
Clinton Wolfe
cbd0dacd39 Remove temporary reliance on Train branch
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:27:49 -05:00
Clinton Wolfe
d31a13efc6 Two more test files needed mock updates
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
ea78e2f3c5 Skip test that had always been broken; how was this every passing?
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
2186179061 Allow passing opts to mock Config; and use mock config in one more place in test helper
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
b057b0dc01 Correct formatting test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
4507af4c29 More things
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
42420d9ecc Use new config file system to read config
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
e054be7d0d Comment on doubt of truthiness
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
6c20f312fd Add bang to validate_reporters in tests, too
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
06399fbc0f Add clarifying comments to unit test for malformed json test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
7d1fd5a085 Add comment about missing values
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
e0951e9ad0 Add bang to validate_reporters
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
605eea72a5 Refactor resolve_cfg_io, add duck check
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
2f16146bce Fix a unit test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
bb6a73d7d4 Create config object and units tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
6ed046bb23 More things
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
2e0af3575f TEMPORARY - point to train from a github branch
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
102505a937 Use new config file system to read config
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
f1f5b27237 Create config object and units tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:23:55 -05:00
Elijah Oyekunle
179ce538ed changed wrong references to pg_hba to pg_ident
Obvious fix.

Signed-off-by: Elijah Oyekunle <eloyekunle@gmail.com>
2019-02-01 14:10:18 +01:00
Chef Expeditor
caf920796d
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-01 04:56:48 +00:00
Chef Expeditor
aa51327c25
Bump version to 3.5.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-01 04:18:52 +00:00
Clinton Wolfe
3612a217a6
Merge pull request #3751 from inspec/cw/plugins-add-no-user-plugins-option
Add CLI options to disable loading plugins
2019-01-31 23:18:16 -05:00
Clinton Wolfe
5d2934cc5a Passing help message functional tests for disabling plugins
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:52:19 -05:00
Clinton Wolfe
36ce34be98 Passing functional tests for using plugin disable options
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:52:19 -05:00
Clinton Wolfe
4203c02836 Crude implementation to watch for plugin disable options
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:52:19 -05:00
Chef Expeditor
167ada963e
Bump version to 3.4.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-01 03:50:38 +00:00