Commit graph

3333 commits

Author SHA1 Message Date
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
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
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