Commit graph

3472 commits

Author SHA1 Message Date
Chef Expeditor
9b84b7b5c1
Bump version to 4.14.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-27 20:35:09 +00:00
Clinton Wolfe
ada6aad169 Move input name stringification into the method
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-08-22 21:40:01 -04:00
Clinton Wolfe
2ef151dd56 Hrm, linting for upstream?
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-08-19 13:52:28 -04:00
Clinton Wolfe
cc4aa16212 Add test framework to run Runner API input tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-08-19 13:51:51 -04:00
Clinton Wolfe
93521dea0c Accept either input or attribute in the runner API
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-08-19 13:39:31 -04:00
Chef Expeditor
59301c54ad
Bump version to 4.13.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-19 16:56:07 +00:00
Clinton Wolfe
3f54f7ac46
Ensure that resources are always initialized in all cases (#4366)
Ensure that resources are always initialized in all cases
2019-08-19 12:55:52 -04:00
Chef Expeditor
88d23697f7
Bump version to 4.13.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-19 16:52:35 +00:00
Clinton Wolfe
e7ccdc03c9
Refactor lib/source_readers/inspec.rb (#4376)
Refactor lib/source_readers/inspec.rb
2019-08-19 12:52:20 -04:00
Chef Expeditor
7581ab37c7
Bump version to 4.13.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-19 16:38:32 +00:00
Clinton Wolfe
8dc350bc6c
Add a Postfix-specific configuration testing resource (#4378)
Add a Postfix-specific configuration testing resource
2019-08-19 12:38:17 -04:00
Ryan Davis
43e07e8f2d Finished refactoring!
Now that the code is easier to read and actually focuses on what it
does in a readable way, it is easier to reason about. In this case, we
have blocks being passed around in order to evaluate a bunch of
paths (read: strings) to determine if they're correct. Why do multiple
`start_with?` and `end_with?` calls? It doesn't cleanly describe what
it is trying to do. Instead, we can use regexps and it'll work just
fine, so lets do that. This simplifies things even further.

46.5: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
3f0e9e9ffa Fix chefstyle.
This is an area where I really disagree with chefstyle. 🤷

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
f8b8f968aa lib/source_readers/inspec.rb refactor 8/8: reformat
58.9: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
ac6164e56d lib/source_readers/inspec.rb refactor 7/8: combine load_all and find_all.
58.9: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
213a4489ed lib/source_readers/inspec.rb refactor 6/8: use if/compact instead of delete_if.
59.0: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
6399116e5f lib/source_readers/inspec.rb refactor 5/8: extract to local var
60.1: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
5d19283199 lib/source_readers/inspec.rb refactor 4/8: use to_h
59.8: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
70d8ecf1e8 lib/source_readers/inspec.rb refactor 3/8: pull up file reading.
59.8: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
4f0a5d6ba1 lib/source_readers/inspec.rb refactor 2/8: normalize variable names.
76.1: flog total

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
6735d03a09 lib/source_readers/inspec.rb refactor 1/8: pull up file selection.
71.3: original flog total
73.0: flog total (this version)

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 20:36:19 -07:00
Ryan Davis
f4bae13c68 Fixes for 2 failed tests.
Rescue NotImplementedError and call failed_resource only if we haven't
already failed the support_check call.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 19:30:30 -07:00
Ryan Davis
cd5f58f8eb Do not call return inside of an initialize method.
It does NOT do what you think it does. It does NOT prevent an object
from coming back. All it does is have an uninitialized (or partially
initialized) object come back, which isn't helpful.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-18 17:28:56 -07:00
Chef Expeditor
8eded7e258
Bump version to 4.12.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-15 18:47:02 +00:00
Chef Expeditor
8e62048b97
Bump version to 4.11.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-13 16:59:16 +00:00
Chef Expeditor
134ff8048a
Bump version to 4.11.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-12 18:01:20 +00:00
Chef Expeditor
bce0fbe177
Bump version to 4.11.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-08 22:06:17 +00:00
David Gasper
52ae5e434b Add docs and unit tests, remove .travis.yml
Signed-off-by: David Gasper <dmgasper@osuosl.org>
2019-08-08 13:54:35 -07:00
David Gasper
6ba210d82d Add automatic path resolution
Signed-off-by: David Gasper <dmgasper@osuosl.org>
2019-08-08 13:54:22 -07:00
David Gasper
098610f128 Add Postfix_conf resource
Signed-off-by: David Gasper <dmgasper@osuosl.org>
2019-08-08 13:50:12 -07:00
Chef Expeditor
3981110da5
Bump version to 4.11.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-08 17:13:42 +00:00
Chef Expeditor
ffba747523
Bump version to 4.11.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-08 15:56:10 +00:00
Clinton Wolfe
95e6bcb317
Modified DarwinGroup to collect all users properly. (#4343)
group resource: Modified DarwinGroup to collect all users properly on macos
2019-08-08 11:55:48 -04:00
Chef Expeditor
8fad74d4a2
Bump version to 4.11.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-08 15:32:53 +00:00
Clinton Wolfe
c28dd8f9ec
Add startuser windows service (#4363)
Add startuser windows service
2019-08-08 11:32:39 -04:00
Chef Expeditor
7ab39ba273
Bump version to 4.10.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-08 15:16:21 +00:00
Ryan Davis
374e365c02 Modified DarwinGroup to collect all users properly.
I noticed that my profile targeting group "staff" on OSX wasn't
returning *me*. I'm awesome! So that seemed wrong. And it turns out it
is wrong. We were not collecting any users whose primary group was
that group. (almost all regular users are in group staff and they're
all missing).

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-08-07 20:27:13 -07:00
Chef Expeditor
90fb536bf7
Bump version to 4.10.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-08 03:17:56 +00:00
Chef Expeditor
a6dd013ec2
Bump version to 4.10.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-07 20:29:26 +00:00
Mendy Baitelman
e3b641f676 Fix whitespace
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2019-08-06 15:11:15 -07:00
Mendy Baitelman
4505471ec7 Fix differences
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2019-08-06 13:26:37 -07:00
Mendy Baitelman
126b1efc74 Add startuser to windows service
Signed-off-by: Mendy Baitelman <mendy@baitelman.com>
2019-08-06 13:20:57 -07:00
Kris Shannon
4a30a8aa32 Move some resources into Inspec::Resources module
The `DhParams`, `EtcHosts`, `GrubConfig`, `IisAppPool`, and `SSL`
resources were not properly located inside the `Inspec::Resources`
module.

Fixes: #4327

Signed-off-by: Kris Shannon <k.shannon@amaze.com.au>
2019-08-05 18:17:01 +10:00
Chef Expeditor
723d53e6b1
Bump version to 4.10.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-08-01 00:16:47 +00:00
Chef Expeditor
4aa1ef81f3
Bump version to 4.10.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-30 23:45:06 +00:00
Chef Expeditor
1045f67a76
Bump version to 4.10.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-30 22:08:14 +00:00
Chef Expeditor
66f709875d
Bump version to 4.10.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-30 21:46:48 +00:00
Chef Expeditor
ae898b9eb3
Bump version to 4.10.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-30 18:38:10 +00:00
Clinton Wolfe
100e96db1c
Relative Path Support for the Git Fetcher (#4217)
Relative Path Support for the Git Fetcher
2019-07-30 14:37:54 -04:00
Chef Expeditor
fbf06ccc7d
Bump version to 4.9.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-07-30 18:37:23 +00:00