Commit graph

6613 commits

Author SHA1 Message Date
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
f19f54c676
Fix Expeditor Version Bump Script (#4205)
Fix Expeditor Version Bump Script
2019-06-17 12:29:08 -04: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
2f756b6530 Update quoting in update-version
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-17 11:26:03 -04:00
Chef Expeditor
924e2d7497
Bump version to 4.6.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-14 23:38:31 +00:00
Miah Johnson
4d53fdbcd3
Merge pull request #4204 from inspec/mj/boom
Lets discuss this next week when we're all around =)
2019-06-14 16:38:14 -07:00
Miah Johnson
b21bcfabc4 Lets discuss this next week when we're all around =)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-14 15:04:26 -07:00
kekaichinose
3692e5f39b
Update inspec_team-working_agreement.md
Calling out the SLA for community awareness and to increase team velocity.
2019-06-14 15:00:44 -07:00
Chef Expeditor
d2a491ff3c
Bump version to 4.6.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-06-13 18:01:35 +00:00
Clinton Wolfe
6c02822f90
Rename attributes -> inputs in profile metadata files (#4017)
Rename attributes -> inputs in profile metadata files
2019-06-13 14:01:17 -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
0b8da5bb01 update test expectation with improved log message
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
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