Commit graph

7000 commits

Author SHA1 Message Date
Clinton Wolfe
dea323fa52 Test fixtures and failing functional test for input rename
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 19:00:53 -04:00
Chef Expeditor
f47d5057b2
Bump version to 4.5.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-12 19:58:54 +00:00
Clinton Wolfe
9bf9990d41
Update test code to rename attribute() to input() in DSL (#4192)
Update test code to rename attribute() to input() in DSL
2019-06-12 15:58:36 -04:00
Chef Expeditor
9d057c1068
Bump version to 4.5.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-12 19:39:27 +00:00
Miah Johnson
607306ba0c
Merge pull request #4197 from inspec/mj/rake_test
Re-add `rake test:`
2019-06-12 12:39:11 -07:00
Miah Johnson
6965f9e385 Re-add rake test:
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-12 12:16:07 -07:00
Chef Expeditor
83d252e513
Update CHANGELOG.md with details from pull request #4185
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-12 17:26:54 +00:00
Clinton Wolfe
cc6faa49ce
Create Inputs documentation page (#4185)
Create Inputs documentation page
2019-06-12 13:26:39 -04:00
Clinton Wolfe
ab6933fcc7 A key value-add use of company time
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 13:05:49 -04:00
Clinton Wolfe
d8e485eb62 Edit the masrshalling code more carefully to match
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 12:51:02 -04:00
Clinton Wolfe
0023906812 Update test code regarding input marshalling
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 12:25:45 -04:00
Clinton Wolfe
00d497fd09 Remove kitchen-inspec testing code - it is tested in that project, not here
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 12:17:19 -04:00
Clinton Wolfe
46624396c7 Bulk edit of test files to use input() in DSL
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 12:17:19 -04:00
Clinton Wolfe
9eb7927c81 Replace semicolon
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-12 12:12:27 -04:00
Chef Expeditor
44a8480a49
Bump version to 4.5.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-12 06:41:46 +00:00
Miah Johnson
69d084c5ca
Merge pull request #4195 from inspec/mj/ccrc
Disable rubocop on Code Climate.
2019-06-11 23:41:28 -07:00
Chef Expeditor
77ea26de83
Bump version to 4.5.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-12 05:32:44 +00:00
Ryan Davis
e47c9ba6c2
Merge pull request #4193 from inspec/zenspider/speed_up_functionals
Speed up inspec
2019-06-11 22:32:29 -07:00
Miah Johnson
ab293892de Disable rubocop on Code Climate.
This is now managed by chefstyle which CC doesn't support. Every PR is
linted before tests are started so style is already strictly enforced.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 21:51:33 -07: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
dd7f9abb20 Revamped test/functional/ui_test.rb to check output before exit codes.
Helps with debugging.

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
Chef Expeditor
a35d37043e
Bump version to 4.5.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-12 01:54:13 +00:00
Miah Johnson
4ba2e787cd
Merge pull request #4194 from inspec/zenspider/chefstyle2
Apply chefstyle to codebase
2019-06-11 18:53:53 -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
Ryan Davis
a141870d19 Switch to chefstyle in test:lint task
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
c579ed3097 Disable rubocop check on TMP_CACHE
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
649ed9aca5 This cache needs to be writable. Its a problem.
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
Miah Johnson
5a0dd5a5d8 Exclude more bundled controls
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:10:06 -07:00
Miah Johnson
c0a4dfeea4 We need to ignore some example InSpec profiles, we don't want to apply
chefstyle to them.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 15:12:35 -07:00
Ryan Davis
52423e8a0c Switched dependency to chefstyle.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 15:07:34 -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
Clinton Wolfe
e155203c93
Add inspec-core-bin as a gem (#4009)
Add inspec-core-bin as a gem
2019-06-11 16:03:44 -04:00
Chef Expeditor
beeddb0806
Update CHANGELOG.md with details from pull request #4189
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-11 18:20:54 +00:00
Miah Johnson
aa0ce3d5cc
Merge pull request #4189 from inspec/mj/stale
Close at 400 days, with a message.
2019-06-11 11:20:38 -07:00
Clinton Wolfe
d43abdb3cd Add a gemspec for core-bin
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-10 17:02:30 -04:00
Clinton Wolfe
a5794e2097 Add inspec-core-bin as a gem
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-10 17:02:30 -04: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
Clinton Wolfe
74c1386246 Relax codeclimate config
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-10 14:00:45 -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