Commit graph

7465 commits

Author SHA1 Message Date
Chef Expeditor
26f4d66006 Bump version to 4.18.19 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-31 21:13:25 +00:00
Miah Johnson
de4139aff8
Merge pull request #4568 from ramereth/yum-el8-support
Improve testing for yum.repo in CentOS 8
2019-10-31 14:13:05 -07:00
Chef Expeditor
a599ba428b Bump version to 4.18.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-31 21:10:23 +00:00
Ryan Davis
637e9cf0b5
Merge pull request #4648 from inspec/zenspider/resource-fixes
Fixed problem with accessing backend in TestDslLazyLoader#method_missing.
2019-10-31 14:10:07 -07:00
Ryan Davis
74c692c9eb Pushed unmock up to helper.rb
Also switched osx group test to use quick_resource since it is cleaner.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-31 14:09:16 -07:00
Ryan Davis
fdc82b7d12 Tests shouldn't output. Ever.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-31 14:09:16 -07:00
Ryan Davis
7189f2e21a Fixed problem with accessing backend in TestDslLazyLoader#method_missing.
Fixes #4587.
Fixes #4524.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-31 14:09:16 -07:00
Ryan Davis
defe63dada Test for bug #4524 and bug #4587 to verify that resources are available w/in rspec constructs.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-31 14:09:16 -07:00
Chef Expeditor
02913c45e5 Update CHANGELOG.md with details from pull request #4652
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-30 22:23:26 +00:00
Ryan Davis
6961e5df89
Merge pull request #4652 from inspec/btm/fix-www
Fix building the website
2019-10-30 15:23:14 -07:00
Bryan McLellan
98c28ac256 Fix building the website
- compass is now built in to middleman 4, including the old middleman-compass gem only creates issues with the dep graph
- deal with .css.scss files being ignored by splitting into separate .css and .scss files. (https://github.com/middleman/middleman-sprockets/issues/127)

Closes #4613

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
2019-10-30 17:36:03 -04:00
Chef Expeditor
4c0675dc79 Bump version to 4.18.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-30 09:38:42 +00:00
Ryan Davis
21c89f357b
Merge pull request #4649 from inspec/zenspider/windows-bump
bumped the windows tests again
2019-10-30 02:38:23 -07:00
Ryan Davis
83a6bd84dd bumped the windows tests again
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-30 01:47:16 -07:00
Chef Expeditor
d241dcab23 Bump version to 4.18.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-29 21:47:57 +00:00
Ryan Davis
f56ccb16cb
Merge pull request #4628 from inspec/zenspider/minitest-output
Fixed the rest of the minitest deprecations by removing FuncTestRunResult.
2019-10-29 14:47:36 -07:00
Chef Expeditor
ace4618213 Update CHANGELOG.md with details from pull request #4626
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-29 20:14:05 +00:00
Ryan Davis
40f54eb98b
Merge pull request #4626 from inspec/zenspider/root-user
Create a user 'normal' and use it to run tests. Also bundle caching.
2019-10-29 13:13:39 -07:00
Miah Johnson
6bc0cf104d
Merge pull request #4646 from inspec/mj/linkFix
Docs Link Fixes
2019-10-29 10:01:17 -07:00
Mary Jinglewski
6064155a93 Docs Link Fixes
Signed-off-by: Mary Jinglewski <mjinglewski@chef.io>
2019-10-29 10:22:34 -04:00
Chef Expeditor
58d9a975c1 Bump version to 4.18.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:25:59 +00:00
Chef Expeditor
4897f75371 Bump version to 4.18.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:25:17 +00:00
Miah Johnson
9c953a0e68
Merge pull request #4638 from inspec/mj/eha
Add #to_s to etc_hosts_allow, and add tests
2019-10-24 13:24:46 -07:00
Chef Expeditor
c0001ff873 Bump version to 4.18.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:24:35 +00:00
Miah Johnson
44579ab4b3
Merge pull request #4637 from inspec/mj/3921
Fix filesystem resource when device has long name
2019-10-24 13:24:23 -07:00
Miah Johnson
86acdda337
Merge pull request #4636 from inspec/mj/4630
iis_app_pool better handling of non-existent pools.
2019-10-24 13:24:03 -07:00
Chef Expeditor
71d0683ff0 Bump version to 4.18.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 20:23:51 +00:00
Miah Johnson
c9c8bc5f9d
Merge pull request #4635 from inspec/zenspider/users-bad-date
Fix a crash from users resource if the password has never been updated
2019-10-24 13:23:30 -07:00
Miah Johnson
ac399b7af9 Add #to_s to etc_hosts_allow, and add tests
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-24 12:07:26 -07:00
Lance Albertson
dab91a321a Improve testing for yum.repo in CentOS 8
The output for ``yum -v repolist all`` changes slightly in CentOS 8. There are
two specific changes:

1. EL8 is no longer trailing the repo name with release version and arch (i.e.
   base instead of base/7/x86)
2. EL8 no longer adds a trailing newline on the last repo and instead has a line
   with ``Total packages:``. This means the repo listed last will never show up.

A fix was introduced in #4566 however the tests still use CentOS 7 yum output
instead of dnf repolist output. One issue was still discovered where it was
including the ``Total packages`` line in the last repository. This includes a
regex for to work around that and fixes for the tests.

Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-24 08:22:42 -07:00
Miah Johnson
8e31367b51 Use new mock loader, update the command name
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 21:42:10 -07:00
Miah Johnson
e357232db1 Since our command is df -PT lets match it in name
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 21:33:29 -07:00
Miah Johnson
0affbc0487 Use the posix output format
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 19:55:53 -07:00
Miah Johnson
90d3d9fd32 supports should cover this, salmon!
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 17:59:25 -07:00
Miah Johnson
e6b6762e51 Nicer memoize
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 17:58:58 -07:00
Miah Johnson
044110e6fc Return true/false if iis_app_pool[:pool_name] has a value (or not)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-23 17:57:42 -07:00
Miah Johnson
cff6c30a3c
Merge pull request #4603 from inspec/mj/ccp
Let codeclimate ignore included inspec profiles
2019-10-23 17:20:08 -07:00
Chef Expeditor
c982626819 Update CHANGELOG.md with details from pull request #4600
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-24 00:19:21 +00:00
Miah Johnson
1e292adc42
Merge pull request #4600 from inspec/mj/4588
Add ruby 2.7 preview
2019-10-23 17:19:06 -07:00
Ryan Davis
8d51d878f6 Fixed users resource when "Last password change" is "never".
Extended quick_resource to have platform methods and a new string
command mock. The named resource to mock may now be a symbol.

Added a new test that shows how to use quick_resource with multiple commands.

Fixes #4629.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-23 16:49:49 -07:00
Ryan Davis
c9a3c927f9 Fixed inspec from crashing on startup when it can't create the cache directory.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-23 16:35:11 -07:00
Chef Expeditor
8200e625b4 Bump version to 4.18.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-23 21:54:39 +00:00
Miah Johnson
d546a0281a
Merge pull request #4631 from inspec/larryebaum-patch-1
Update waivers.md
2019-10-23 14:54:21 -07:00
Larry Eichenbaum
bd173b01e7
Update waivers.md
Adding DCO
Signed-off-by: Joe Smith  <6776768+larryebaum@users.noreply.github.com>
Edited example to reflect correct input file structure for expiration.
2019-10-22 22:39:10 -07:00
Larry Eichenbaum
a7c73c4e13
Update waivers.md
Revise example text
2019-10-22 21:52:49 -07:00
Ryan Davis
3cc4b4d0b4 Add buildkite caching to our verify pipeline.
I'm not sure why we're doing this ourselves instead of using
buildkite's own artifact caching, but that's fine.

This speeds up the "bundle install" phase from ~3m to ~20s.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 17:44:41 -07:00
Ryan Davis
c93d61da1c Add a non-root user for testing on BK.
Unfortunately, we have a lot of failing tests when we run as a
non-root user and the files are owned by root. We can't chmod the
checkout to the non-root user as it is a shared mount in docker and
that's not allowed to the outside world.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 17:40:41 -07:00
Miah Johnson
3c908b4c1b Make our 2.7 test always return true
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-22 14:08:52 -07:00
Ryan Davis
d201d1fbc2 Fixed the rest of the minitest deprecations by removing FuncTestRunResult.
Folded the json & other payloads into plain ivars on the test.
Found and removed some unused code while I was there.

Fixes #4533.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-22 12:15:28 -07:00
Chef Expeditor
aebcd3c119 Bump version to 4.18.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-21 21:26:54 +00:00