Tim Smith
5f26f592d3
Merge pull request #5325 from inspec/remove_json_schemer
...
Remove the dependency on json_schemer
2020-12-02 11:18:51 -08:00
Tim Smith
7a35751269
Remove the dependency on json_schemer
...
It looks like we're only using this in 3 test files and it conflicts
with new RuboCop releases, which is blocking us shipping that new
release in Chef Infra Client and Workstation
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-12-01 14:17:12 -08:00
Tim Smith
2b68f01514
Remove Gemfile.local support to use Dependabot
...
If you remove this then Dependabot can manage deps, which helps keep us
up to data without manual work.
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-12-01 14:06:12 -08:00
Clinton Wolfe
6493534843
Conditionally pin chef-utils on Ruby 2.5
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-11-30 16:03:32 -05:00
Clinton Wolfe
955ab36922
Update junit tests to use nokogiri
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-09-22 11:40:01 +01:00
Tim Smith
303f530850
Update to Chefstyle 1.2.1
...
Update a few cop names
Remove redundant returns
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-12 13:12:26 -07:00
Clinton Wolfe
e4aa9f1793
Skip HTML validation testing on windows
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:23:54 -04:00
Clinton Wolfe
a131067a09
Add functional test, including html validation
...
This uses html-proofer, which adds in nokogiri as a testing dep.
I expect we'll be using nokogiri soon anyway for the JUnit reporter.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-06-18 14:21:51 -04:00
James Stocks
8ee28c1211
Change ffi pinning
...
ffi 1.13.1 reverts the breaking change in 1.13.0
We can now use any version other than specifically 1.13.0.
Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-10 12:18:23 +01:00
James Stocks
04f36aa055
Pin ffi to 1.12.2 due to Windows crash
...
See https://github.com/ffi/ffi/issues/784
Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-02 16:25:34 +01:00
Clinton Wolfe
f326d8aa56
Avoid simplecov 0.18.3, as it has a NameError bug
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-02-24 13:48:49 -05:00
Clinton Wolfe
b007d1adc7
Pin chef-zero to <15 like chef to allow ruby 2.5 and 2.4 support
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-02-24 13:19:55 -05:00
Miah Johnson
9db7b70e30
remove coveralls; all we need is simplecov
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-11-27 22:12:48 -08:00
Ryan Davis
5dab3e0bbf
Switch to test:parallel K=4 on windows.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-12 14:51:56 -08:00
Ryan Davis
8f1e607d55
Bump chefstyle and fix up flagged code.
...
Very minor.
I want to change a default config but I'll do that in a separate
commit since it is a bigger diff.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 12:57:43 -08:00
Miah Johnson
9d16d775b7
Pin Chefstyle.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-07-09 13:28:29 -07:00
Robb Kidd
30a4f8ea58
use stdlib SecureRandom to generate a password
...
Replaces the now-yanked passgen gem with something available in the Ruby
standard library. Why `.alphanumeric(72)`? This method will reliably
crank out 72-character strings that meet the upper, lower, and numeric
requirement of Azure.
From the docs on the Azure terraform provider:
> NOTE: admin_password must be between 6-72 characters long and must
> satisfy at least 3 of password complexity requirements from the
> following:
> 1. Contains an uppercase character
> 2. Contains a lowercase character
> 3. Contains a numeric digit
> 4. Contains a special character
So, this should suffice.
Signed-off-by: Robb Kidd <robb@thekidds.org>
2019-07-01 14:15:37 -04:00
Ryan Davis
a5309ea392
blindly applied chefstyle -a
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00
Ryan Davis
52423e8a0c
Switched dependency to chefstyle.
...
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 15:07:34 -07:00
Miah Johnson
1a448f6264
We need berkshelf for test-kitchen, but we need chef 14 to support ruby
...
2.4
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:46:22 -07:00
Miah Johnson
c28430a47b
test-kitchen currently requires berkshelf
...
I also discussed with Jerry if we can replace Berks with policyfile for
our testing and it seems unlikely at this point. Will re-evaluate in the
future.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:46:22 -07:00
Miah Johnson
a794506380
berkshelf is making dependency fun. bye.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:46:22 -07:00
Miah Johnson
906f700e75
Open up restrictions on these gems as they were.. out of date.
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:46:22 -07:00
Miah Johnson
e405dd0c80
Put pry with test tools, remove useless group
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:45:39 -07:00
Miah Johnson
23245df6d1
Replace jsonschema with json-schema.
...
Also just use json, its packaged with ruby already.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-01 22:04:36 -07:00
Ryan Davis
7082fbef3d
Add support for Gemfile.local
...
Let me use _my_ tooling!
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-18 13:19:56 -07:00
Tim Smith
96ed4988e3
Temporarily set TK to 1.x
...
Until we figure out the licensing issues
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-05-15 14:50:54 -07:00
Miah Johnson
11b8da3283
Merge branch 'master' into mj/encoding
2019-05-08 12:59:55 -07:00
Miah Johnson
20bafdc4b2
Merge pull request #3988 from inspec/mj/coveralls
...
Add Coveralls.io support to InSpec
2019-05-08 12:58:00 -07:00
Miah Johnson
659b4b373a
Remove # encoding: utf8
magic comments
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 16:06:23 -07:00
Clinton Wolfe
60ec509788
Comment regarding inspec-bin in Gemfile
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 19:37:55 -04:00
tyler-ball
9fc9466d40
Need 1 Gemfile.lock with all deps (inspec and inspec-bin)
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 15:47:33 -06:00
Clinton Wolfe
32950a05b9
Do not depend on inspec-bin from Gemfile
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
e404bafd7a
bundle exec works
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Miah Johnson
b1d5091670
Add Coveralls.io support to InSpec
...
Tie coveralls into simplecov formatters
Add coveralls badge to README
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-26 13:37:55 -07:00
Tim Smith
c2c6b59568
Add ed25519 gems in the omnibus group
...
We want to have these installed in our omnibus package, but we can't
make them direct deps in train because then a gem install of inspec
would need compilers to install these gems.
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-22 17:34:32 -07:00
Tim Smith
6c3abc36ef
Use the upstream unf_ext again
...
The new version was released that includes our Solaris patch as well as Ruby 2.6 support.
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-19 20:18:11 -07:00
Tim Smith
00ce6c02df
Require Ruby 2.4 or later
...
Ruby 2.3 is no longer supported. Drop this release from InSpec and
instead support the 3 latest Ruby releases.
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:19:40 -07:00
Tim Smith
501a39018e
Attempt to switch to new webmock that supports Ruby 2.6+
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-11 14:27:24 -07:00
Clinton Wolfe
ccdd1cfffb
Drop aws-sdk 2, move to train 2, add train-aws 0.1
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:24:46 -04:00
Clinton Wolfe
08aea07c71
Re-add a bespoke unf_ext to our omnibus build
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-03-22 00:22:06 -04:00
Lamont Granquist
e16206f1d0
Move all gem installation to Gemfile/bundle install
...
Do not use omnibus-software gem definitions for installing gems,
and use the Gemfile in the inspec project as the source of truth.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
2019-03-01 17:45:37 -08:00
Tim Smith
074288cdf2
Add comment on the ruby version check in the gemfile
...
Nuke it next year.
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-14 14:03:05 -08:00
Tim Smith
2fe299c4f8
Work around strange bundler failures on Ruby 2.3
...
We should be excluding the integration group but it's trying to install berkshelf no matter what. 🤷
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:59:18 -08:00
Tim Smith
687fb989ca
Pin berkshelf to a sane version
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 19:47:57 -08:00
Clinton Wolfe
cbd0dacd39
Remove temporary reliance on Train branch
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:27:49 -05:00
Clinton Wolfe
2e0af3575f
TEMPORARY - point to train from a github branch
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:24:26 -05:00
Clinton Wolfe
83cdff22e2
Alright, let bundler float
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-25 12:04:22 -05:00
Clinton Wolfe
ecf0ab640f
Merge branch 'master' into cw/bundler-v2
2019-01-25 11:57:45 -05:00
Clinton Wolfe
a523e881da
Force bundler to 2+ so system ruby on Jenkins can resolve
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-25 11:54:43 -05:00