Commit graph

7380 commits

Author SHA1 Message Date
Ryan Davis
33dacc4044 ResourceDSL#name should actually return the name if it is going to be named like a getter.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
ebf90ca140 Added Resource.backfill_supports! to provide platform inheritance.
This make it so resources like yaml (which subclasses json) have their
platform information filled in properly.

This still isn't being called. Not sure where the right entry point
is... but the method is now available and allowed me to do analysis on
the rest of the resources.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
7e013e0a48 Mark json as an 'os' platform.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
915fdd0396 Mark mssql_session as a windows platform.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
e5e1a745cc Fixed run_inspec_with_plugin to merge run options properly.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
e469af9d70 Remove (test?) cruft modifying $LOAD_PATH in plugin loader.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
b626c37386 Improve debugging of json parse failures in functional tests.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Ryan Davis
d7a2e047f4 Rename describe.rb to describe_base.rb
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-21 13:30:14 -07:00
Chef Expeditor
c7909b7dd7 Bump version to 4.18.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-17 22:19:39 +00:00
Miah Johnson
348d23cf13
Merge pull request #4612 from inspec/mj/complete-profile
Use a good profile with inspec check test
2019-10-17 15:19:22 -07:00
Miah Johnson
23f31a0a72 Use a good profile with inspec check test
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-17 14:55:58 -07:00
Chef Expeditor
ab0fa7aa38 Update CHANGELOG.md with details from pull request #4611
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-17 21:42:14 +00:00
Miah Johnson
1233f91a7c
Merge pull request #4611 from inspec/mj/1017fixes01
Dont trigger yet
2019-10-17 14:42:00 -07:00
Miah Johnson
8968f89d5d Dont trigger yet
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-17 14:37:14 -07:00
Chef Expeditor
4a56b00525 Update CHANGELOG.md with details from pull request #4610
Obvious fix; these changes are the result of automation not creative thinking.
2019-10-17 21:28:57 +00:00
Miah Johnson
ee5be28608
Merge pull request #4610 from inspec/mj/1017fixes
Empty resources yml until I build it.
2019-10-17 14:28:45 -07:00
Miah Johnson
cb001d8654 Empty resources yml until I build it.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-17 14:26:51 -07:00
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
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
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