Commit graph

5283 commits

Author SHA1 Message Date
Miah Johnson
bb208ddafb Remove demo directory. (#3475)
Remove demo from Rakefile
Remove demo from html
Remove 'TRY DEMO' from site header.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-10-10 08:21:38 -04:00
Chef Expeditor
8bffeeece8
Bump version to 2.3.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-10 12:17:27 +00:00
Tim Smith
8468c0ebba Enable compression for deb/rpm packages (#3472)
* Enable compression for deb/rpm packages

In Chef we've seen this shrink package sizes by 22%. Should save us some sweet $$$ on the CDN costs.

* Maintain support for RHEL 5

Signed-off-by: Tim Smith <tsmith@chef.io>
2018-10-10 08:17:10 -04:00
Chef Expeditor
d6b1f3c32a
Bump version to 2.3.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-08 13:38:30 +00:00
Paul Welch
5375393053 Fix Packages Resource Docs (#3469)
Some instances of the packages resource in the examples
were referencing package instead of packages.

Signed-off-by: Paul Welch <pwelch@chef.io>
2018-10-08 09:35:30 -04:00
Chef Expeditor
df3f909705
Bump version to 2.3.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-08 13:34:14 +00:00
Tim Smith
c674bdf250 Exclude docs and examples from the gem (#3471)
This greatly slims down the installed size of inspec in both Chef and
Chef-DK. This translates into faster installs which are of importance to
workstation users, but also smaller download sizes / CDN bills.

This slims the installed on disk from 2.9 MB to 2.0 MB (31%) and the gem
drops from 567k to 396k (30%).

Signed-off-by: Tim Smith <tsmith@chef.io>
2018-10-08 09:34:04 -04:00
Chef Expeditor
5acf586831
Bump version to 2.3.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-05 20:24:38 +00:00
Jared Quick
cbb3b600d9
Fix archive with required attributes (#3468)
* Skip require check unless we are in a exec call.
* Add testing
* Update comment.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-05 16:24:26 -04:00
Chef Expeditor
fa68cb9fd8
Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-04 21:06:08 +00:00
Chef Expeditor
31d4699fc4
Bump version to 2.3.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-04 18:31:51 +00:00
Jared Quick
cb12ada2fe
Move compliance to v2 plugin (#3423)
* Move compliance pluging to v2 system.
* Update kitchen-inspec to test.
* Add legacy require patsh.
* Fix unit test

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-04 14:31:39 -04:00
Chef Expeditor
92249898d9
Bump version to 2.3.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-04 18:06:30 +00:00
Jonathan Hartman
7451917223 Support finding larger processes on Busybox (#3446)
For larger processes, Busybox's ps displays the vsz and rss columns in
megabytes or gigabytes, with no option I've found to override the behavior.

This change updates the process regex to account for that and converts
the values to kilobytes so they can still be cast as integers.

Signed-off-by: Jonathan Hartman <j@hartman.io>
2018-10-04 14:06:17 -04:00
Chef Expeditor
3248af1fe3
Bump version to 2.3.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-04 13:04:03 +00:00
Will Fisher
f23bfc05ce Fix distinct_exit cli desc to reflect reality (#3463)
The description for `distinct_exit` had the exit codes backwards.

From the long desc
> If some tests skipped but none failed, exit code 101 is returned. If at least one test failed, exit code 100 is returned.

Signed-off-by: Will Fisher <wfisher@chef.io>
2018-10-04 09:03:54 -04:00
Chef Expeditor
3de23f65af
Bump version to 2.3.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-03 05:57:37 +00:00
Jerry Aldrich
d5bb1e5fe9 Fix attribute with empty hash regression (#3454)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-10-02 22:57:25 -07:00
Clinton Wolfe
087b6dd33c
Add GCP and Azure to the docs list (#3460)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-10-02 15:48:16 -07:00
Chef Expeditor
f3b835b43d
Bump version to 2.3.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-02 19:28:01 +00:00
Jerry Aldrich
6381dd1b1d Modify cmp matcher output to use .inspect (#3450)
This modifies the output of failed test when using the `cmp` matcher by
calling `.inspect` on the actual value passed.

This makes it easier to diagnose failed matches due to characters such
as `\n` not being visible.

Current behavior:
```
inspec> describe command('echo demo') do
inspec>   its('stdout') { should cmp 'demo' }
inspec> end

Profile: inspec-shell
Version: (not specified)

  Command: `echo demo`
     ×  stdout should cmp == "demo"

     expected: "demo"
          got: demo

     (compared using `cmp` matcher)

Test Summary: 0 successful, 1 failure, 0 skipped
```

New behavior:
```
inspec> describe command('echo demo') do
inspec>   its('stdout') { should cmp 'demo' }
inspec> end

Profile: inspec-shell
Version: (not specified)

  Command: `echo demo`
     ×  stdout should cmp == "demo"

     expected: "demo"
          got: "demo\n"

     (compared using `cmp` matcher)

Test Summary: 0 successful, 1 failure, 0 skipped
```

Many thanks to @jazaval for discovering this!

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-10-02 15:27:48 -04:00
Clinton Wolfe
a0d8f305c1 Revert "Only show test-fixture gem s in search if a speacial flag is passed."
This reverts commit 66e3b578af.
2018-10-01 15:12:54 -04:00
Clinton Wolfe
66e3b578af Only show test-fixture gem s in search if a speacial flag is passed.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-10-01 15:11:55 -04:00
Chef Expeditor
19c7f55e3a
Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-10-01 14:05:43 +00:00
Chef Expeditor
ccb50da4b6
Bump version to 2.3.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-28 21:53:02 +00:00
Jared Quick
2490a72c39 Fix plugin gem install code when deps cannot be resolved (#3453)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-28 17:52:51 -04:00
Chef Expeditor
4c5021fe4b
Executed .expeditor/update_dockerfile.sh
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-28 00:10:02 +00:00
Chef Expeditor
2b42e32a57
Bump version to 2.3.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-27 22:46:46 +00:00
Clinton Wolfe
857b9bb11c Plugins: Support for Train Plugins in InSpec (#3444)
* Unit tests passing for loading Train plugins
* detect works with a train test fixture
* Update fixture install of train-fixture-plugin
* Add functional tests for detect and shell when talking to a train plugin backend
* Update docs to reflect availability of Train plugins
* Functional test for install train plugin from path
* Working install train plugin from path, more tests for installing from odd locations
* PR Feedback

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-27 18:46:35 -04:00
Chef Expeditor
5693d16f7e
Bump version to 2.3.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-27 20:57:27 +00:00
Clinton Wolfe
da0ae7bac9 Plugins: Example CLI Plugin, a Resource Lister (#3421)
* Plugin example, CLI resource lister
* Move example plugin into a directory to look like a regular project
* Skeleton of testing for example plugin
* Example plugin unit tests work
* Functional tests added, using core helper
* Add a global method to determine InSpec install root
* Add linter support to the example
* Adjust inspec project rubocop to run linter on example plugins
* Linter autocorrections
* Update readme

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-27 16:57:18 -04:00
Chef Expeditor
ed444b742b
Bump version to 2.3.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-27 20:04:53 +00:00
Jared Quick
8b5655764f
Pin postgres to a lower cb version. (#3449)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-27 16:04:43 -04:00
Chef Expeditor
3a19bf3b9d
Bump version to 2.3.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-27 16:12:47 +00:00
Dominik Richter
9f920d5586
RFC inspec style guide (#3356)
* 🚶 start style guide

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2018-09-27 09:12:36 -07:00
Chef Expeditor
a5a6179590
Bump version to 2.3.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-26 20:34:16 +00:00
Jared Quick
d1949b57e6
Bump minor via expeditor. (#3448)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-26 16:34:04 -04:00
Chef Expeditor
9346482354
Bump version to 2.2.120 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-26 17:29:12 +00:00
Jerry Aldrich
20776b363d Add support for multiple descriptions for controls (#3424)
* Add support for multiple descriptions for controls

This adds the ability to specify multiple descriptions in controls.

Example:

```ruby
control 'my-control' do
  impact 1.0
  title 'My control'
  desc 'A default description'
  desc 'rational', 'I need an example'
  describe file('/tmp') do
    it { should be_directory }
  end
end
```

Many thanks to @jquick for helping me with the unit tests.
* Remove unused `descriptions` method
* Remove unused profile from test mocks
* Respond to feedback

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-09-26 13:28:57 -04:00
Chef Expeditor
3b6bd808e9
Bump version to 2.2.119 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-26 02:40:16 +00:00
Jonathan Hartman
08e3b90f2b Support the Busybox variant of netstat in the port resource (#3425)
Signed-off-by: Jonathan Hartman <j@hartman.io>
2018-09-25 22:40:05 -04:00
Chef Expeditor
454bd4a5f8
Bump version to 2.2.118 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-25 22:51:45 +00:00
Clinton Wolfe
c24b65d98a Plugins: Load all CLI commands on usage on empty invocation (#3428)
* Functional test for usage messaging
* Activate v2 commands on empty CLI invocation for usage messaging

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-25 18:51:38 -04:00
Jared Quick
39b3b7135e
Add audit-cookbook integration testing (#3431)
* Add audit integration testing.
* Add some docs and feedback changes.
* Updated integration task to use paramaters and clean it up.
* Fix unit test

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-25 15:53:26 -04:00
Chef Expeditor
dcd65fcd83
Bump version to 2.2.117 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-25 15:14:06 +00:00
Alex Pop
574b04dd4f Grammar correction in error message: use "an" with attribute and unknown (#3439)
Signed-off-by: Alex Pop <apop@chef.io>
2018-09-25 11:13:56 -04:00
Clinton Wolfe
0ced18841f
CLI Plugin Manager SubCommand (#3414)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-25 10:29:18 -04:00
Chef Expeditor
76a688a747
Bump version to 2.2.116 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-24 21:58:38 +00:00
Jared Quick
92646dc5c5
Fix v2 loader appveyor issue (#3434)
* Enable appveyor testing.
* Fix inspec plugin test fixture version issue.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-24 17:58:28 -04:00
Chef Expeditor
d920f1d24a Bump version to 2.2.115 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-21 15:49:43 +00:00