Commit graph

3389 commits

Author SHA1 Message Date
Chef Expeditor
a0475c5069
Bump version to 4.7.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-08 19:03:37 +00:00
Chef Expeditor
ac30832933
Bump version to 4.7.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-08 18:45:48 +00:00
Miah Johnson
8272d0184b
Merge pull request #4236 from ramereth/ip6tables
Add ip6tables resource
2019-07-08 11:45:33 -07:00
Miah Johnson
fdf5f6f133
Merge pull request #4256 from inspec/cw/update-style-to-rubocop-0.72
Automated chefstyle application for rubocop 0.72 compatibility
2019-07-08 11:39:14 -07:00
Chef Expeditor
26825ca3d6
Bump version to 4.6.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-05 20:05:04 +00:00
Chef Expeditor
48262f68bd
Bump version to 4.6.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-03 23:40:51 +00:00
Chef Expeditor
90b109dff6
Bump version to 4.6.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-03 22:38:48 +00:00
Clinton Wolfe
e4e7c255de Automated chefstyle application for rubocop 0.72 compatibility
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-07-03 17:24:41 -04:00
Chef Expeditor
490824e6ce
Bump version to 4.6.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-02 06:39:18 +00:00
Miah Johnson
825751bdb9
Merge pull request #4233 from jaredledvina/patch-1
Debian service detection for Buster
2019-07-01 23:39:01 -07:00
Chef Expeditor
be237ad6ef
Bump version to 4.6.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-01 19:16:31 +00:00
Lance Albertson
3263d76627 Add ip6tables resource
This should resolve #1011 which provides an ip6tables resource to test IPv6
iptables rules. This is essentially a copy of the iptables resource with a few
renames.

In addition, I've pulled in the integration tests for iptables into ip6tables
and enabled it on docker so that it properly gets tested regularly. The test
cookbook recipe has been updated to support all of the current platforms that
are being tested.

Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-24 17:01:34 -07:00
Jared Ledvina
0e1f31747b
Debian service detection for Buster
Currently, /etc/debian_version for the Debian Buster/Sid release contains "buster/sid". This causes version to be set to 0 resulting in SysV being configured as the service provider incorrectly. This commit updates the debian detection logic to work for "buster/sid" as version 10 and makes sense that we have a non-0 version before setting the init system.

Signed-off-by: Jared Ledvina <jared@techsmix.net>
2019-06-22 12:50:14 -04:00
Chef Expeditor
8bcbaf6967
Bump version to 4.6.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-22 00:14:38 +00:00
Chef Expeditor
47f887b8f9
Bump version to 4.6.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-21 20:01:58 +00:00
Chef Expeditor
9e426ab1e7
Bump version to 4.6.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-20 18:35:11 +00:00
Miah Johnson
9d7b651938
Merge pull request #4219 from inspec/mj/ucs
`chefstyle -a` after merging #4156
2019-06-19 13:51:47 -07:00
Miah Johnson
8e020f1b51 chefstyle -a after merging #4156
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-19 13:34:17 -07:00
Chef Expeditor
3cd2ff51a9
Bump version to 4.6.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-19 20:33:41 +00:00
Miah Johnson
aa52697725
Merge branch 'master' into license-check 2019-06-19 11:46:23 -07:00
Chef Expeditor
07e53e72d0
Bump version to 4.6.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-19 00:55:37 +00:00
Jerry Aldrich
2d72cd5905 Modify line to be more idiomatic.
Thanks @clintoncwolfe!

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-06-18 08:05:57 -08:00
Jerry Aldrich
80c595ba3d nginx_conf: Fix commented/empty file parsing
This fixes `nginx_conf.params` when:
  - Given an empty file
  - Given a file with only comments
  - Given a file that has an include for a file that:
    - Is empty
    - Has all lines commented out

This also fixes a test where a missing file is actually empty

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-06-17 21:57:26 -08:00
Chef Expeditor
24b7c3a15b
Bump version to 4.6.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-17 17:00:38 +00:00
Chef Expeditor
8358ec5861
Bump version to 4.6.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-17 16:29:26 +00:00
Clinton Wolfe
a2dcb9fbea Manually sync lib version files for sanity's sake
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-17 11:26:53 -04:00
Clinton Wolfe
4ce2192678 Impactful KPI upswing
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 19:09:11 -04:00
Clinton Wolfe
5a4cbe2c17 Add missing param
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 19:05:48 -04:00
Clinton Wolfe
4aa805c7ad Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 19:05:48 -04:00
Clinton Wolfe
43f7fe52f1 Implementation and some light refactoring of bind_inputs_from_metadata
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 19:02:34 -04:00
Ryan Davis
f16238607d Turn off aws and azure testing via NO_AWS env.
This massively speeds up our testing, shaving our functionals by a
third (639s -> 423s). We can realize this speedup either by setting
the env or by jettisoning aws and azure into their own separately
tested gems.

This is currently turned off for travis just for demonstration
purposes.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 21:32:23 -07:00
Ryan Davis
387b713d79 Removing extra requires from inspec/profile.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 21:32:22 -07:00
Ryan Davis
fae4230a41 Removing inspec/profile_vendor from inspec/base_cli.
This was the next most expensive require in the analysis.

Also rearranged the way that ui handled tables to be lazy.

```
% SLOW=1 time rake test:functional

before: Finished in  681.514579s, 0.5136 runs/s, 2.9919 assertions/s.
after : Finished in  642.655918s, 0.5446 runs/s, 3.1728 assertions/s.
```

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 19:16:58 -07:00
Ryan Davis
bfbb89a05c First pass making bin/inspec faster.
This removes requiring 'inspec' in bin/inspec and goes straight to
'inspec/cli'. It removes almost all the top-level requires in
inspec/cli.rb. This requires some autoloads and rearrangements of
requires to the command methods themselves.

```
% SLOW=1 time rake test:functional

before: Finished in 1072.442633s, 0.3264 runs/s, 1.9013 assertions/s.
after:  Finished in  681.514579s, 0.5136 runs/s, 2.9919 assertions/s.
```

I'm positive there is more we can do.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:59:55 -07:00
Ryan Davis
692d6a9ab8 hand applied one that is now marked as unsafe in rubocop
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:38 -07:00
Miah Johnson
c8836e6856 enforce_type_restriction! will exit before new_value
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:52:38 -07:00
Miah Johnson
68e540a15a Ignore Rubocop checks
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:52:38 -07:00
Miah Johnson
20531342d2 unused assignment
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:52:38 -07:00
Miah Johnson
729177f3c6 chefstyle -a
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:52:38 -07:00
Miah Johnson
e46018a517 chefstyle -a cleanup
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:52:38 -07:00
Miah Johnson
c458897ad1 != 0 vs !foo.zero?
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:52:38 -07:00
Ryan Davis
a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00
Chef Expeditor
77d2bebda2
Bump version to 4.5.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-11 20:04:03 +00:00
Chef Expeditor
e275f3343c
Bump version to 4.5.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-10 19:14:13 +00:00
Clinton Wolfe
ec1baf6237
New plugin type: Input (#4019)
New plugin type: Input
2019-06-10 15:13:57 -04:00
Chef Expeditor
1ad929648b
Bump version to 4.4.75 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-06 22:30:50 +00:00
Clinton Wolfe
27d9643353 Fix nil profile name
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 15:26:09 -04:00
Chef Expeditor
b4444c0cef
Bump version to 4.4.74 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-06 18:33:45 +00:00
Chef Expeditor
a0def41ce2
Bump version to 4.4.73 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-06 18:33:12 +00:00
Clinton Wolfe
9366804335 PR Feedback
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
3a3a2cefff linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
90da768ef0 Move event creation to input_registry to simplify plugin authorship
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
a62fdabf70 bugfix - plugin_name is called from both plugin definition and implementation classes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
53beaff372 Input plugin types work
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
7fc50708d1 bugfix - allow setting input priority in DSL
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
9e2e569d85 Add input plugin type API
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:21 -04:00
Clinton Wolfe
82f910e320 Plugin type declaration and unit test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:21 -04:00
Chef Expeditor
d4ae9e1e01
Bump version to 4.4.72 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-04 21:17:25 +00:00
Ryan Davis
443f4a16d7 Fix CLI version command test to be resilient on a bad network.
Also switched out LatestInSpecVersion.latest to be much cleaner using open-uri.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-04 13:47:48 -07:00
Chef Expeditor
f28265358b
Bump version to 4.4.71 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-04 17:48:58 +00:00
Chef Expeditor
82718c779b
Bump version to 4.4.70 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-04 06:40:43 +00:00
Ryan Davis
58fa148773 Stabilize windows functional testing.
Skip most everything.

After some digging, in those tests that didn't have 100% failures, of
the ~10+% passing, those tests weren't checking enough. So I skip them
too in the hopes that we improve testing across the board.

At this point, we need appveyor to be green more than we need these
tests to be fixed. If that means we skip them, so be it.

These tests will time-bomb at the end of July.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-03 23:27:26 -07:00
Chef Expeditor
702533f351
Bump version to 4.4.69 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-04 06:04:19 +00:00
Chef Expeditor
0474910f57
Bump version to 4.4.68 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-04 06:03:36 +00:00
Chef Expeditor
b63f70df1c
Bump version to 4.4.67 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-04 00:20:48 +00:00
Chef Expeditor
5a7d548c14
Bump version to 4.4.66 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-03 20:39:48 +00:00
Artem Sidorenko
eaec745edf Using dist constants for license check
Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-06-03 15:29:53 +02:00
Artem Sidorenko
9d03fd7882 Allow to switch off the license check
similar to the approach in chef/chef: https://github.com/chef/chef/pull/8354/files#diff-847fc1c7c0af04a65c570c6f4c3381e9R25

Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-06-03 15:29:53 +02:00
Chef Expeditor
c0643c33ee
Bump version to 4.4.65 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-31 20:46:22 +00:00
Miah Johnson
2a1b1d8e88 Remove all leading newlines.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-31 11:43:44 -07:00
Chef Expeditor
97df4c33fd
Bump version to 4.4.64 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-31 18:29:50 +00:00
Chef Expeditor
e4567052e3
Bump version to 4.4.63 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-31 18:29:14 +00:00
Chef Expeditor
ecbb8c0d17
Bump version to 4.4.62 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-30 19:07:17 +00:00
Chef Expeditor
ed7861fcf6
Bump version to 4.4.61 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-30 01:33:24 +00:00
Ryan Davis
4790e288a0
Merge pull request #4142 from inspec/zenspider/clean_unnecessary_requires
Clean unnecessary requires
2019-05-29 18:33:06 -07:00
Chef Expeditor
66e95a4847
Bump version to 4.4.60 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-30 01:08:31 +00:00
Ryan Davis
be125598c8 Additional whitespace cleanup.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Ryan Davis
a8bcba780f Got the rest of the functionals to pass.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Ryan Davis
82c9aa6ed6 Got the rest of the tests to pass.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Ryan Davis
de8258c9f7 Get yaml_test.rb working
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Ryan Davis
761f48e63c Get user_test.rb working
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Ryan Davis
61585de0f0 Moved out all of the requires for inspec/resources/* from inspec/resource.rb
All requires moved to inspec/resources.rb

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Ryan Davis
adaf2bc364 Removed aws resource requiring from test/helper and inspec/resource.
This speeds up parallel unit test runs from a very consistent 2:49 to
a very consistent 1:53, or a 33% reduction.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 17:58:02 -07:00
Chef Expeditor
15c770183f
Bump version to 4.4.59 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-29 23:52:19 +00:00
Ryan Davis
fcb65b2ffb Fixed Inspec::Dist on habitat CLI.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 16:22:28 -07:00
Chef Expeditor
1fc518c588
Bump version to 4.4.58 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-29 02:24:01 +00:00
Chef Expeditor
9007dbb540
Bump version to 4.4.57 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 21:17:53 +00:00
Miah Johnson
365810a622
Merge pull request #4136 from artem-forks/debranding-plugin-manager-cli
Dist branding for some of plugins
2019-05-28 14:17:36 -07:00
Chef Expeditor
2d528f5899
Bump version to 4.4.56 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 20:06:10 +00:00
Miah Johnson
6c19e81a06 Remove authors tags from source files.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-28 12:47:39 -07:00
Artem Sidorenko
eee2199960 Dist branding for plugins/inspec-compliance
Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-05-28 21:00:56 +02:00
Artem Sidorenko
e468c592ca Dist branding for plugins/inspec-habitat
Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-05-28 21:00:56 +02:00
Artem Sidorenko
4c0260aedd Dist branding for plugins/inspec-artifact
Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-05-28 21:00:49 +02:00
Artem Sidorenko
5a2bf961f8 Dist branding for plugins/inspec-plugin-manager-cli
Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-05-28 21:00:36 +02:00
Chef Expeditor
85f2dcccb8
Bump version to 4.4.55 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 18:44:58 +00:00
Clinton Wolfe
c8f0de05af
inspec check: Send log to STDERR when running with --format json (#4001)
inspec check: Send log to STDERR when running with --format json
2019-05-28 14:44:44 -04:00
Chef Expeditor
54a75f7d62
Bump version to 4.4.54 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 18:35:11 +00:00
Miah Johnson
2215bb0570 Update all requires pointing to util/
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-28 11:30:16 -07:00
Miah Johnson
86e638ee20 Move lib/utils -> lib/inspec/utils
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-28 11:29:16 -07:00
Chef Expeditor
ea959d32ba
Bump version to 4.4.53 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 18:12:59 +00:00