Commit graph

7674 commits

Author SHA1 Message Date
Miah Johnson
0ccd26ef84
Merge pull request #4599 from inspec/mj/habitat-pipeline
Add habitat/test pipeline for testing our habitat builds.
2019-10-17 13:55:04 -07:00
Miah Johnson
d47d25e5cc
Merge pull request #4501 from inspec/mj/habitat-windows
Habitat plan for Windows
2019-10-17 13:54:50 -07:00
Miah Johnson
406d9e4d59 We only need to install a specific hab version on Windows
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-17 12:57:03 -07:00
Chef Expeditor
344d99f510 Bump version to 4.18.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-17 19:49:55 +00:00
Miah Johnson
245f681cb8
Merge pull request #4601 from inspec/mj/tk
Re-organize test-kitchen files. Add BK Pipeline
2019-10-17 12:49:31 -07:00
Chef Expeditor
0542ac5b30 Bump version to 4.18.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-17 19:39:13 +00:00
Miah Johnson
e634ae495b
Merge pull request #4577 from inspec/mj/batsignal
Goodbye Gordon!
2019-10-17 12:38:53 -07:00
Miah Johnson
427d8dbac0 By not declaring a version we get the default, which is 2019.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-17 10:41:59 -07:00
Miah Johnson
227a97991d Add blank pipeline to allow iteration in next PR
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:53:05 -07:00
Miah Johnson
6cb0d148a6 Let codeclimate ignore included inspec profiles
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:47:26 -07:00
Miah Johnson
87b9d569ca Allow rubocop to ignore our test-kitchen files
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:43:15 -07:00
Miah Johnson
216da3f90a Let codeclimate ignore our test files.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:43:15 -07:00
Miah Johnson
e2e6042cf2 Split up kitchen suites by resource type.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:43:15 -07:00
Miah Johnson
633a1a1d79 Add pipeline to manage test kitchen builds and a trigger
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:43:15 -07:00
Miah Johnson
46a2e17ffc Update directory in kitchen configuration files
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:41:03 -07:00
Miah Johnson
e298f0f44b move find_files inspec policy to kitchen directory
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:41:03 -07:00
Miah Johnson
e8ae9012ea Move inspec-verify kitchen tests into more obvious directory
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:41:03 -07:00
Miah Johnson
97a258ae69 Use a more obvious directory structure for kitchen testing
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:41:03 -07:00
Miah Johnson
bcca77d6a4 Add ruby 2.7 preview
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:25:30 -07:00
Miah Johnson
6e88b3ceb9 Fix rubocop warnings
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
ff7891132a Cleanup plan before merge
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
46e7b00add Fix Rakefile and wtf
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
0589e2edc9 hooked on phonics worked for me!
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
d3cfb38dc2 Invoke-Check is used for testing..
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
d7487ed70a Execute the correct rake task
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
9543ed8ecc Add a Rakefile as our main Rakefile also requires 'train'
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
4544ff30aa Add a very simple test for Windows Habitat builds.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
8b9bb3983a Shouldn't have a cache of git-ref'd gems as we dont have any.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
0ca4e66bc6 Add vendor/bin to pkg directories, should let us get appbundler.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
76cf8aafea We have no gems using a git reference. This stacktraces during build.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
9f9dc504f0 Add Rakefile to inspec-bin to allow rake install to function.
Without the Rakefile `rake install` looped forever.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
aa87212e9f Basically cargo-copy https://github.com/chef/chef/blob/habiwindochef/habitat/plan.ps1
Thanks @robbkidd =)

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
1b41dfb12e wip?
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
e9cca66b1c basics
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
01bea50c43 copy paste plan.sh -> plan.ps1 and change for Powershell
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 21:01:19 -07:00
Miah Johnson
6f460b9c3b Remove this. It slows things down.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 20:57:31 -07:00
Miah Johnson
005bca0f45 copy-pasta
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 20:13:54 -07:00
Miah Johnson
544db45c5e Untested and probably broken test scripts =)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 20:05:12 -07:00
Miah Johnson
002e274d8e Pipeline definition for testing habitat builds
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 19:56:47 -07:00
Miah Johnson
c1f6df1500 Add windows to build_targets on builder
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 19:55:54 -07:00
Miah Johnson
498cbb7e84 Add a test pipeline for habitat builds.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 18:25:29 -07:00
Ryan Davis
fe34eb7869 Moved quick_resource and Fake helpers to test/helpers/resources.rb
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-16 16:54:07 -07:00
Ryan Davis
fc8ea79ad0 Fixed parsing yum output on centos8.
* Renamed and added extra test data to distinguish between centos 7 & centos 8.
* Renamed and added extra tests to cover centos 8.
* Fixed missing repo data by checking at the end if we were still in parse mode.

Fixes #4517

Signed-off-by: Ryan Davis <zenspider@chef.io>
Cc: Miah Johnson <miah@chia-pet.org>
2019-10-16 16:54:07 -07:00
Ryan Davis
201d98fd26 Refactored and added an alternative test mock resource system.
test/unit/resources/json_test.rb had the start of a setup to directly
instantiate resources. I've refactored that up to helper.rb and
extended it with some helper methods so we can directly specify what a
resource command should respond with. For many/most of our tests, this
should be sufficient.

Finally, I switched our yum tests over to use the new setup. This will
allow us to address #4517 and extend the tests for centos8 output
differences with ease. Ease, folks... ease.

Signed-off-by: Ryan Davis <zenspider@chef.io>
Cc: Miah Johnson <miah@chia-pet.org>
2019-10-16 16:54:07 -07:00
Miah Johnson
d48bb56087 Every other example has the value set to 1, so I changed this for consistency.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 10:15:49 -07:00
Miah Johnson
4ec9f302b0 example -> example.tmp
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 10:15:49 -07:00
Miah Johnson
c3eb686b51 Remove debug
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 10:15:49 -07:00
Miah Johnson
301905e8de b0rk b0rk
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 10:15:49 -07:00
Miah Johnson
41bc8fd7a0 Clean up some tests
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 10:15:49 -07:00
Miah Johnson
ae3ee6f657 Finish rename of example -> example-tmp.rb
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 10:13:24 -07:00