Commit graph

5533 commits

Author SHA1 Message Date
Jared Quick
475eafb46e
Revert uuid change from A2 report. (#3387)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-12 17:05:48 -04:00
Chef Expeditor
6cce7fa1ef Bump version to 2.2.89 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 20:45:04 +00:00
Jared Quick
ac106a090e
Implement InSpec global attributes (#3318)
* Add yml attribute option.
* Add type matching.
* Add testing profile for global attributes testing all types.
* Allow attributes to be called within a control block.
* Fix attribut test issues and allow value to be set at runtime.
* Allow setting attr value after creation.
* Move attributes to global namespace.
* Move attributes to a singleton object.
* Add unit and updated functional testing.
* Rename attributes to attributes_test so the testhelper picks it up.
* Add attribute object tests and error types.
* Update with feedback changes.
* Remove extra line.
* Move attribute registry class file.
* Add documentation for attributes
* Rename rspec_extensions.
* Add some failing functional tests.
* Update docs and fix typos.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-12 16:42:58 -04:00
Chef Expeditor
7351b61f4b Bump version to 2.2.88 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 20:41:28 +00:00
Miah Johnson
6e887ff4b7 Update rubyzip to resolve a directory traversal security vulnerability. (#3388)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-09-12 16:41:17 -04:00
Chef Expeditor
7bce297cd9 Bump version to 2.2.87 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-10 18:41:30 +00:00
Martin Logan
8e780cd912 Fixing AWS integration tests. (#3374)
Obvious fix.
2018-09-10 14:38:57 -04:00
Chef Expeditor
4a4ea333af Bump version to 2.2.86 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-10 18:37:57 +00:00
Christoph Hartmann
0e0b808e9b enforce utf encoding for cli output (#3376)
* enforce utf encoding for cli output
* add profile with wrong character set

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-10 14:37:43 -04:00
Chef Expeditor
2afe1bc937 Bump version to 2.2.85 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-10 14:15:29 +00:00
Jared Quick
30e43c294d
Remove any inspec.lock file before testing vendoring. (#3377)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-10 10:15:16 -04:00
Chef Expeditor
f6ecb4c842 Bump version to 2.2.84 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 21:03:36 +00:00
Chef Expeditor
aa9dc7ba2c Bump version to 2.2.83 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 21:00:12 +00:00
Christoph Hartmann
df9036f6e4 inspec compliance: use multipart upload to support upload on windows (#3369)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:25:31 -04:00
Christoph Hartmann
d6110ed162 inspec compliance: ensure we use the mock backend when we upload profiles (#3370)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:19:06 -04:00
Chef Expeditor
541b20599d Bump version to 2.2.82 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 18:08:09 +00:00
Christoph Hartmann
0c0ad2e5b2 inspec-compliance - do not show success message on failure (#3366)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:07:48 -04:00
Jared Quick
e876de45d1 Update expeditor to use subscriptions (#3372)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-07 12:58:11 -04:00
Chef Expeditor
9d175279ca Bump version to 2.2.81 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 03:28:21 +00:00
Jerry Aldrich
9d031053ea Various improvements to vendor command (#3286)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-09-06 23:28:08 -04:00
Chef Expeditor
7976ea4333 Bump version to 2.2.80 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-06 14:56:36 +00:00
Christoph Hartmann
0cd1c21ade handle errors from automate report and display them to the user (#3360)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-06 10:56:26 -04:00
Chef Expeditor
75719fd933 Bump version to 2.2.79 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-05 19:07:42 +00:00
Jared Quick
76b453eee9
Allow target-id passthrough (#3320)
* Allow uuid passthrough
* Update flag to be target-id.
* Updated to use proper formatting for header.
* Fix empty line after cli banner.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-05 15:07:34 -04:00
Chef Expeditor
d69791e2bb Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 22:34:05 +00:00
Chef Expeditor
4158c0fec9 Bump version to 2.2.78 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 21:10:24 +00:00
Miah Johnson
6281629efc Ran npm update and then manually added https-proxy-agent and (#3343)
`url-parse` with the updated versions to package.json.
Updated lockfile.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-30 17:10:10 -04:00
Chef Expeditor
2f1567284c Bump version to 2.2.77 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 17:04:30 +00:00
Noel Georgi
34ae5aac40 Add HTTP basic auth for URL based inspec deps (#3341)
* Add HTTP basic auth for URL based inspec deps
* Add tests

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-30 12:57:50 -04:00
Chef Expeditor
d37f6a22f4 Bump version to 2.2.76 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 16:56:21 +00:00
Noel Georgi
9b5aaa4f87 Support erb rendering (#3338)
* Support erb rendering

Fixes: https://github.com/inspec/inspec/issues/3337

* Add UT's and docs

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-30 12:56:06 -04:00
Miah Johnson
006b4c7e6f Fix documentation link for azure integration tests. (#3336)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-30 10:30:22 -04:00
Chef Expeditor
86ca580d76 Bump version to 2.2.75 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 13:16:36 +00:00
Tim Smith
df4f1682d0 Fix the brew command to install inspec (#3335)
InSpec was pulled from the casks a while ago. We have our own setup now,
but the command to pull from there is a bit different. Also OSX should
be macOS.

Signed-off-by: Tim Smith <tsmith@chef.io>
2018-08-30 09:16:28 -04:00
Chef Expeditor
ef5878ebe2 Bump version to 2.2.74 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 13:12:07 +00:00
Jared Quick
6120497db1
Convert legacy supports to their platform counterparts (#3333)
* Convert legacy supports to their platform counterparts.
* Fix rubocop lint.
* Update json schema for platform supports.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-30 09:11:55 -04:00
Chef Expeditor
6e48478701 Bump version to 2.2.73 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-29 17:32:31 +00:00
Noel Georgi
0d951e1fd1 fix skip message not being passed for merge (#3329)
* fix skip message not being passed for merge
* Fix calling method twice

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-29 13:32:22 -04:00
Chef Expeditor
4e60ecb0f0 Bump version to 2.2.72 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-28 19:53:27 +00:00
Tom Qiang Wu
aa44c24b07 bump inspec/train version (#3331)
Obvious fix.
2018-08-28 15:53:13 -04:00
Chef Expeditor
39d60b1d0c Bump version to 2.2.71 by Chef Expeditor 2018-08-28 13:11:51 +00:00
Josh Hudson
2d44b6e5e0 Cached profiles with Compliance Fetcher (#3221)
* Leverage existance check in Compliance::Fetcher.resolve to not re-download locally cached profiles
* Move logic from Compliance::API.exist? to Compliance::API.profiles to reuse code in cases where we need to access profiles' metadata directly.
* Declare @upstream_sha256 if target is a string
* Handle other fetchers that don't support upstream_sha256 within Inspec::CachedFetcher.initialize
* Add initialize for Compliance::Fetcher to not pollute Fetchers::Url with its logic
* Add Compliance::Fetcher.sha256 to leverage upstream_sha256 instead of relying on inherited method from Fetchers::Url
* Revert changes to cached fetcher that are unnecessary after refactor
* Pacify the god of ruby syntax
* Move Compliance::API.profiles filtering logic to end of method to leverage normalization of mapped_profiles
* Add and update unit tests to support caching with Compliance::Fetcher.upstream_sha256

Signed-off-by: Josh Hudson <jhudson@chef.io>
2018-08-28 09:11:38 -04:00
Chef Expeditor
414971b79c Executed .expeditor/update_dockerfile.sh 2018-08-24 00:10:20 +00:00
Chef Expeditor
36319d0f04 Bump version to 2.2.70 by Chef Expeditor 2018-08-23 21:04:21 +00:00
Jared Quick
a5d049b346
Bump inspec to use the new train gem. (#3327)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-23 17:04:04 -04:00
Chef Expeditor
43570ad409 Bump version to 2.2.69 by Chef Expeditor 2018-08-23 17:54:40 +00:00
Chef Expeditor
19f8ffc0f0 Bump version to 2.2.68 by Chef Expeditor 2018-08-23 17:51:11 +00:00
Chef Expeditor
ac1484ca0d Bump version to 2.2.67 by Chef Expeditor 2018-08-23 17:47:40 +00:00
Jerry Aldrich
7098631d3e Infer --sudo when --sudo-password is used (#3313)
This does the following:
  - Adds `--sudo` if using `--sudo-password`
  - Warns the user if using `--sudo-password` without `--sudo`
  - Adds unit tests for `Inspec::BaseCLI#opts`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-08-23 13:47:26 -04:00
Noel Georgi
741ad8a2fb Fix skip hash being passed instead of boolean value (#3323)
Fixes: https://github.com/inspec/inspec/issues/3322

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-23 13:47:10 -04:00