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
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