Commit graph

2806 commits

Author SHA1 Message Date
Chef Expeditor
97614ac8d4
Bump version to 3.3.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-10 01:23:23 +00:00
T. Miller
203195e545 postgres_session: Fix postgres directory searching (#3708)
Signed-off-by: Timothy Miller <timothy.miller.27.ctr@us.af.mil>
2019-01-09 17:23:08 -08:00
Chef Expeditor
e7e147513d
Bump version to 3.3.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-01-10 00:07:06 +00:00
Miah Johnson
15162bf920 Add resources for aws_billing_report and aws_billing_reports. (#2838)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-09 16:06:48 -08:00
Chef Expeditor
da4051837d
Bump version to 3.2.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-21 03:17:22 +00:00
Tim Smith
b5ff949059 Update Ruby versions used for testing; fix Travis CI issues (#3678)
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-20 22:17:07 -05:00
Chef Expeditor
bb3b0059d8
Bump version to 3.2.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 22:15:32 +00:00
Chef Expeditor
6e14626233
Bump version to 3.2.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 21:33:41 +00:00
Chef Expeditor
d79b6c18d6
Bump version to 3.2.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 19:41:50 +00:00
Tim Smith
a1aef8fe17 Update list of SPDX licenses (#3677)
Signed-off-by: Tim Smith <tsmith@chef.io>
2018-12-20 14:41:11 -05:00
Chef Expeditor
c103ba550f
Bump version to 3.2.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 19:33:38 +00:00
Amit Saha
bbc07f5f11 aws_sqs_queue - new resource (#3674)
Signed-off-by: Amit Saha <amitsaha.in@gmail.com>
2018-12-20 14:33:21 -05:00
Chef Expeditor
93223f5f2f
Bump version to 3.2.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 18:30:07 +00:00
Chef Expeditor
e760c68c16
Bump version to 3.2.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 17:31:27 +00:00
Jerry Aldrich
91fe4ad03b Fix labels on Docker containers (#3673)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-20 12:31:13 -05:00
Chef Expeditor
3984990a55
Bump version to 3.2.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-20 16:58:08 +00:00
Noel Georgi
f1fbd518e5 Expose additional WinRM options for transport, basic auth, and SSPI (#3669)
Signed-off-by: Noel Georgi <git@frezbo.com>
2018-12-20 11:57:53 -05:00
Chef Expeditor
e6311c4410
Bump version to 3.1.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-14 18:58:51 +00:00
Chef Expeditor
c5108b2a90
Bump version to 3.1.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 19:09:02 +00:00
Noel Georgi
5d87b8f94b Fix git fetcher error detection logic (#3665)
Signed-off-by: Noel Georgi <git@frezbo.com>
2018-12-12 14:08:48 -05:00
Chef Expeditor
f873e60309
Bump version to 3.1.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 18:32:52 +00:00
Wiebe Verweij
233cb900ba Fix incorrect warning about connection from mysql_session (#3659) (#3660)
Signed-off-by: Wiebe Verweij <wiebe@wiebelt.nl>
2018-12-12 13:32:01 -05:00
Chef Expeditor
0aa47f4459
Bump version to 3.1.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 18:06:06 +00:00
Jerry Aldrich
8019b2c487 Modify URL fetcher to accept URI (#3633)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-12 13:05:51 -05:00
Chef Expeditor
671e315d93
Bump version to 3.1.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 16:44:28 +00:00
Clinton Wolfe
c0a46cf841
UI Object for for CLI work (#3618)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-12 11:44:16 -05:00
Chef Expeditor
6fbde40bb6
Bump version to 3.0.66 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-12 16:23:32 +00:00
Chef Expeditor
fa53ae73cd
Bump version to 3.0.65 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-11 14:00:36 +00:00
Chef Expeditor
ae0019c33b
Bump version to 3.0.64 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-06 15:19:48 +00:00
Jerry Aldrich
ffe0bd4761 Update Habitat plugin (#3646)
This updates the Habitat plugin by doing the following:
  - Removing `settings.sh` in favor of Habitat config TOMLs
  - Changing deprecated `--format` to `--reporter`
  - Cleaning up plan.sh in several ways
  - Adding handling for different exit codes
  - Removing unnecessary runtime deps
  - Vendoring the InSpec archive during build
  - Using shebangs that reference Habitat's bash
  - Adding error handling for `hab studio enter`/`build` from `habitat/`
  - Making `pkg_svc_user` use default `hab` and not `root`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-12-06 10:17:39 -05:00
Chef Expeditor
3e585d3717
Bump version to 3.0.63 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-06 15:17:14 +00:00
Chef Expeditor
99c9ba2429
Bump version to 3.0.62 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-12-04 15:54:33 +00:00
Chef Expeditor
a4362e7a07
Bump version to 3.0.61 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-29 19:14:29 +00:00
Clinton Wolfe
fefa6c2ecd
Plugin Type: DSLs (#3557)
This PR adds 5 closely related plugin types, which allow a plugin to implement new DSL methods / keywords. The mechanism to activate the plugins are all very similar - basically, in a particular location in the code, `method_missing` is implemented, and is used to activate the particular type of DSL being requested.

4 of the DSL plugin types relate to code that could appear in a profile control file.

* outer_profile_dsl plugins allow you to extend the code in profile Ruby files that appear outside `control` or `describe` blocks.
* control_dsl plugins allow you to extend the code within `control` blocks.
* describe_dsl plugins allow you to extend the code within `describe` blocks.
* test_dsl plugins allow you to extend the code within `it`/`its` blocks.

Finally, the `resource_dsl` plugin allows you to extend the code used within custom resources.

Basic unit tests are provided to prove that the plugin types are properly defined.

A simple plugin fixture defining DSL hooks (based on favorite foods) is included, and is exercised through a set of functional tests.

The plugin developer docs are updated to describe the 5 DSLs.

*Note*: Implementing a plugin using any of the DSL plugin types is experimental.  The contexts that are exposed to the DSL methods are private and poorly documented. The InSpec project does not claim the APIs used by these plugin types are covered by SemVer.  Plugin authors are encouraged to pin tightly to the `inspec` gem in their gemspecs.

Motivation for this plugin comes from the desire to allow passionate community members to implement things like "2 out of 3" tests, example groups, improved serverspec compatibility, "they/their" and other "fluency" changes, as well as make it possible for future work by the InSpec team to be implemented as a core plugin, rather than a direct change to the main codebase.
2018-11-29 14:14:06 -05:00
Chef Expeditor
0f1a30cb06
Bump version to 3.0.60 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-27 22:00:20 +00:00
Chef Expeditor
893e234df4
Bump version to 3.0.59 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-27 21:55:14 +00:00
Caprowni
af4253c755 Adding an AWS platform template so that it can be specified to create a template when using 'inspec init --platform' (#3622)
Signed-off-by: Liam Caproni <liamcaproni@gmail.com>
2018-11-27 16:55:03 -05:00
Clinton Wolfe
b3fafab1e6 Add aws_eks_cluster resource (#3582)
* add aws_eks_cluster

Signed-off-by: Timothy van Zadelhoff
timothy.inspec@theothersolution.nl

* disable ABC check on fetch_from_api

Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl>

* add status predicates

* Change docs for status attribute

Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl>

*     Add integration tests

    Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl>

* Adjust EKS build code to almost work

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* EKS only uses private subnets - integration tests pass

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Correct AWS Exception class for resource search miss in unit test

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Update unit test to reflect AWS resource-standard miss behavior, returning nil for most properties

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-11-27 16:54:47 -05:00
Chef Expeditor
1c742e6eff
Bump version to 3.0.58 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-27 18:21:36 +00:00
mhackethal
b67236e485 package: fix package detection on windows (#3607)
* Update package.rb to solve issue #3361

Update the windows package search regex.
According to issue #3361

* Update package.rb
Fix trailing spaces
* Update helper.rb

update sha for get-item-package. To fix the issue #3361
Signed-off-by: markus hackethal <mh@it31.de>
2018-11-27 13:21:25 -05:00
Chef Expeditor
a419ce3aff
Bump version to 3.0.57 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-26 14:12:37 +00:00
Chef Expeditor
32ad4b9fbf
Bump version to 3.0.56 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-19 18:33:11 +00:00
mhackethal
86cf55382b filesystem: improve Windows support (#3606)
* Improve filesystem.rb to support windows

improve filesystem.rb to support windows.
Split into 2 classes LinuxFileSystemResource / WindowsFileSystemResource
Add filesystem to verify a FS-type ( currently not for linux because missing test server )
Size on Windows is converted to GB - discussion about this welcome

update to reflect also windows os

* Create get-wmiobject-filesystem
* Delete get-wmiobject-filesystem

* Fix the testing code for filesystem.
Change its 'filesystem' to 'type' according to recommendation from @miah
Signed-off-by: Markus Hackethal <mh@it31.de>
2018-11-19 13:32:59 -05:00
Chef Expeditor
3c557eac3f
Bump version to 3.0.55 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-16 22:09:59 +00:00
Chef Expeditor
8e88bc3eb5
Bump version to 3.0.54 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-16 22:06:50 +00:00
Clinton Wolfe
e4afadfc3f Revert setting RSpec expectation syntax to 'should' mode (#3620)
* Revert "Silence RSpec 'should' Warning (#3560)"

This reverts commit 7c611a4c24.

* Add comment with link to reverted fix

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-11-16 17:04:04 -05:00
Chef Expeditor
82af39e25a
Bump version to 3.0.53 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-16 22:03:23 +00:00
Clinton Wolfe
3c8697e5e2 Create a class to handle the plugins.json file (#3575)
* unit tests for plugin conf file class, all skip
* File path stuff works
* Validation works
* Add works
* Added remove_entry
* Save works - ready to refactor others
* Rework Loader to use ConfigFile
* Modify loader and installer to use the config file class
* linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-11-16 17:03:09 -05:00
Chef Expeditor
ae5986f7b9
Bump version to 3.0.52 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-11-15 20:15:03 +00:00
Jerry Aldrich
4a03e54b4c Load the compliance plugin when the fetcher is needed (#3609)
* Add Compliance fetcher pending 4.0 plugin

When migrating `inspec-compliance` to a V2 plugin only the CLI functions
were migrated. This caused the fetcher portions of `inspec-compliance`
to fail.

Currently, there isn't a fetcher plugin type so this loads the fetcher
explicitly until a fetcher plugin type and corresponding Compliance
fetcher is created in InSpec 4.0.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-11-15 15:14:49 -05:00