Commit graph

3353 commits

Author SHA1 Message Date
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
Chef Expeditor
1065d3ff1d
Bump version to 4.4.52 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 18:08:38 +00:00
Chef Expeditor
333b2a4f7a
Bump version to 4.4.51 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 18:01:36 +00:00
Chef Expeditor
96e36c423b
Bump version to 4.4.50 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-28 17:58:43 +00:00
Ryan Davis
f36a7c8061 No tabs.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-25 03:40:36 -07:00
Chef Expeditor
06e517ba07
Bump version to 4.4.49 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-22 19:35:42 +00:00
Chef Expeditor
c72d8bc2aa
Bump version to 4.4.48 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-21 23:50:36 +00:00
Chef Expeditor
b1191f1b65
Bump version to 4.4.47 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-21 19:45:35 +00:00
Miah Johnson
fb0993e0f2
Merge pull request #4089 from mirskiy/github_url_regex_bug
Fix github url regex. Add period for repo
2019-05-21 12:45:18 -07:00
Chef Expeditor
869103dccf
Bump version to 4.4.46 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-21 02:52:43 +00:00
Miah Johnson
83bc512f3e
Merge pull request #4104 from inspec/mj/aws
Ensure AwsResourceMixin returns a resource name in deprecation message
2019-05-20 19:52:27 -07:00
Chef Expeditor
f20cc5508a
Bump version to 4.4.45 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:10:45 +00:00
Miah Johnson
27ee7a1a63
Merge pull request #4107 from inspec/zenspider/telemetry_requires
Minor require cleanup for telemetry.
2019-05-20 13:10:30 -07:00
Ryan Davis
9c6965b2ed Minor require cleanup for telemetry.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-20 13:09:38 -07:00
Chef Expeditor
2ce931f6d5
Bump version to 4.4.44 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:09:32 +00:00
Chef Expeditor
f71e7febf9
Bump version to 4.4.43 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:08:51 +00:00
Miah Johnson
2df6dc2ea8
Merge pull request #4100 from inspec/zenspider/fix-missing-requires
Fixed missing requires.
2019-05-20 13:08:46 -07:00
Chef Expeditor
106bc6cdda
Bump version to 4.4.42 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:08:10 +00:00
Miah Johnson
d1358df59f
Merge pull request #4115 from inspec/zenspider/clean_method_call_pattern
Stop using method(...).call(...)
2019-05-20 13:07:43 -07:00
Chef Expeditor
c1e022bd3c
Bump version to 4.4.41 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:07:21 +00:00
Miah Johnson
36029da0a3
Merge pull request #4116 from inspec/zenspider/clean_more_requires
Clean more requires
2019-05-20 13:07:04 -07:00
Chef Expeditor
4cd62d3d30
Bump version to 4.4.40 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:04:49 +00:00
Miah Johnson
1fe48f2e7b
Merge pull request #4113 from inspec/zenspider/use_math_for_perms
Just use math.
2019-05-20 13:04:24 -07:00
Chef Expeditor
499e99f2ba
Bump version to 4.4.39 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 20:03:36 +00:00
Ryan Davis
e1061f41f2 Clean more requires
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-20 13:01:18 -07:00
Chef Expeditor
461991a1a3
Bump version to 4.4.38 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 19:58:42 +00:00
Chef Expeditor
01dee92ca2
Bump version to 4.4.37 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 19:57:23 +00:00
Miah Johnson
69151ced56
Merge pull request #4119 from inspec/mj/missing_requires
Fix missing requires in toml, postgres_conf resources
2019-05-20 12:56:59 -07:00
Chef Expeditor
da57262892
Bump version to 4.4.36 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-20 19:56:40 +00:00
Miah Johnson
b6c86bfad8
Merge pull request #4118 from inspec/mj/rtjson
json was required twice.
2019-05-20 12:56:27 -07:00
Miah Johnson
94f14bae20 Fix missing requires in toml, postgres_conf resources
toml was missing json
postgres_conf was missing object_traversal

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-19 11:31:59 -07:00
Miah Johnson
e514fbff90 json was required twice.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-19 11:02:02 -07:00
Ryan Davis
7e5c27410e This is one place where rubocop and I strongly disagree.
Using self.something makes it more clear. Sometimes that is necessary.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-18 21:04:27 -07:00
Ryan Davis
22a3ee5855 Fixed missing requires.
Telemetry tests were hitting inspec/config via a different route and
inspec/config uses forwardable w/o requiring.

lib/plugins/inspec-compliance/test/unit/api_test.rb had a test that
had never run before and required webmock.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-18 21:02:13 -07:00
Chef Expeditor
7fb177a691
Bump version to 4.4.35 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-19 01:08:41 +00:00
Ryan Davis
03a1fba565 Stop using method(...).call(...)
Use send. It's **vastly** faster:

```
Comparison:
                send:  6364383.9 i/s
         method+call:  2530347.8 i/s - 2.52x  slower
```

Also removed a bunch of unnecessary to_sym's. Ruby doesn't care.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-18 16:53:33 -07:00
Ryan Davis
fe82931b39 Just use math.
I don't know what the reasoning is behind the rjust & the format
call... String converting between octal to binary in order to get an
integer? Instead, this converts from an octal string and uses
straight-forward binary manipulation and logic.

Please avoid `cond ? false : true` like constructs. Use `!cond` instead.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-18 15:50:01 -07:00