Commit graph

5697 commits

Author SHA1 Message Date
Clinton Wolfe
785888a209 Rename functional tests, unit tests, and test fixtures
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 18:23:01 -05:00
Chef Expeditor
9eed984015
Bump version to 3.6.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 22:49:10 +00:00
Clinton Wolfe
ab183e0858
Merge pull request #3793 from inspec/cw/config-cache-read
inspec detect: Fix for --config trying to read from STDIN twice
2019-02-08 17:48:54 -05:00
Chef Expeditor
88d7ea852c
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 22:17:53 +00:00
Clinton Wolfe
a6f289f1b2 Cache reads from STDIN
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 14:16:56 -05:00
Clinton Wolfe
fd3c3df8c1 Add failing functional tests for more piped config subcommands
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-08 13:18:08 -05:00
Chef Expeditor
5c02be2c3d
Bump version to 3.6.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-08 01:58:50 +00:00
Clinton Wolfe
9cb870b636
Merge pull request #3789 from inspec/cw/add-release-2-to-expeditor
Add the 2.x branch to expeditor
2019-02-07 20:58:31 -05:00
Clinton Wolfe
d58e841f3d Add the 2.x branch to expeditor
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-07 20:51:24 -05:00
Chef Expeditor
d6f64a3936
Executed '.expeditor/update_dockerfile.sh'
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 23:03:12 +00:00
Chef Expeditor
d5dcb46085
Bump version to 3.6.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 22:22:21 +00:00
Clinton Wolfe
7fcffd2ddd
Merge pull request #3785 from inspec/ja/fix-inspec-backend
inspec-habitat: create mock backend properly
2019-02-07 17:09:52 -05:00
Jerry Aldrich
273597d371 Remove encoding: utf-8
Thanks @miah

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 13:04:58 -08:00
Jerry Aldrich
7134989eba Respond to @clintoncwolfe's feedback
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 11:15:01 -08:00
Jerry Aldrich
a6f74a33b2 Fix Inspec::Config regression in Inspec::Backend
With the changes in PR #3750, `Inspec::Backend.create` needs to support
both being passed a Hash and being passed an Inspec::Config. This adds
a line to convert a passed Hash to an Inspec::Config.

This also adds unit tests for Inspec::Backend because they were missing.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-07 01:00:05 -08:00
Chef Expeditor
9d7ca85e7d
Bump version to 3.6.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-07 02:53:32 +00:00
Clinton Wolfe
594ae3c423
Merge pull request #3784 from inspec/cw/attrs-consolidate-tests
Consolidate attribute-related test-fixture profiles
2019-02-06 21:53:13 -05:00
Clinton Wolfe
4cf9e23e9d Move most test fixture profiles under attributes/
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 18:10:19 -05:00
Chef Expeditor
eca5f74154
Bump version to 3.6.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 22:43:19 +00:00
Clinton Wolfe
05a011f6ff
Merge pull request #3629 from inspec/cw/init-plugin
inspec-init plugin: generate inspec plugins
2019-02-06 17:40:59 -05:00
Chef Expeditor
5bed99fe36
Bump version to 3.5.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-02-06 22:40:26 +00:00
Clinton Wolfe
48711fa7bb
Merge pull request #3778 from inspec/team/filesystem-free-percent
filesystem: Add free_kb, size_kb, type, and percent_free properties
2019-02-06 17:40:10 -05:00
Clinton Wolfe
2b836a35c1
Merge pull request #3781 from EmFl/patch-2
package: Correct contradictory docs examples
2019-02-06 14:22:30 -05:00
Clinton Wolfe
dd3d3cbd2f Add deprecation hook for size()
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:02:17 -05:00
Clinton Wolfe
02cb799ee6 Rename free to free_kb
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 14:01:04 -05:00
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
b831083d0d Add a UX reminder to update the license
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 12:08:21 -05:00
Clinton Wolfe
ffb3ee7e32 Correct functional test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
e3070cb02f PR feedback on product capitalization
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
4582f1f8a7 linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
5acbae42ee Exempt inspec-init template file from rubocop, and enable DisplayCopNames by default
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
247e004c8e Add detail option, to make stripped-down plugins
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
fe7a683198 Add interactive prompting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
731b0705f5 Templatize everything for InSpec plugins
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00