Commit graph

7890 commits

Author SHA1 Message Date
Ryan Davis
f67171fa6b Bump rspec to 3.9 and fix broken tests.
Tests are STILL brittle, but this at least lets us drop old rspec.

Fixes #4575

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-06 16:52:35 -08:00
Chef Expeditor
e14431d6ab Update CHANGELOG.md with details from pull request #4761
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-06 00:26:02 +00:00
Ryan Davis
7cfca95799
Merge pull request #4761 from inspec/mj/sum-coverage
sum multiple test runs together for codeclimate
2019-12-05 16:25:49 -08:00
Ryan Davis
4c3fbe546d
Merge pull request #4765 from inspec/zenspider/bk-refactor
Refactor BK verify script so we can reuse bundle caching across projects easily.
2019-12-05 16:24:32 -08:00
Ryan Davis
e5318f3564 Refactor BK verify script so we can reuse bundle caching across projects easily.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-05 12:17:57 -08:00
Chef Expeditor
b9f8d1ea59 Bump version to 4.18.47 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-05 19:23:34 +00:00
Clinton Wolfe
7d2733df23
Make fetchers fail consistently (#4736)
Make fetchers fail consistently
2019-12-05 14:23:14 -05:00
Ryan Davis
11a22c63c7 Removed duplicate method warning in shadow resource.
Removed from filtertable because the deprecations are in the regular
methods.

Fixes #4213.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-04 17:13:39 -08:00
Ryan Davis
4942a572bb Fix warnings coming from ruby -w
This first pass fixes all our circular requires and duplicate method
warnings that come from:

```
ruby -w -Ilib:test test/functional/helper.rb
```

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-04 17:07:37 -08:00
Ryan Davis
ec3742145c
Merge pull request #4757 from inspec/zenspider/split-lint-out
Split lint to its own step and let all the others just run tests.
2019-12-04 12:52:40 -08:00
Ryan Davis
4b553e96f5
Merge pull request #4756 from inspec/zenspider/add-chef-telemetry
Added chef-telemetry 1.0 to dependencies.
2019-12-04 12:30:57 -08:00
Ryan Davis
933c95e27f Split lint to its own step and let all the others just run tests.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-04 12:25:29 -08:00
Chef Expeditor
55664f753a Bump version to 4.18.46 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-04 20:23:35 +00:00
Ryan Davis
eca23385ea
Merge pull request #4760 from inspec/zenspider/detect+logger
Hook up logger to inspec detect.
2019-12-04 12:23:17 -08:00
Ryan Davis
1e2a4e3734
Merge pull request #4755 from inspec/zenspider/fix-bundle-caching
Fix buildkite bundle caching
2019-12-04 12:22:44 -08:00
Clinton Wolfe
84d4325516 Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:35:13 -05:00
Clinton Wolfe
b6cb418af6 Flatten a conditional
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:58 -05:00
Clinton Wolfe
bba6d70b3b Raise FetcherFailure for url headers missing
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:58 -05:00
Clinton Wolfe
8c53e8a6b9 Remove constructors from raise statements
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:58 -05:00
Clinton Wolfe
b34d489f5c Add .invalid TLD to test hostanmes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:58 -05:00
Clinton Wolfe
6b0877591f Refactor functional test to DRY up
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:19 -05:00
Clinton Wolfe
8679443698 Functional test for git fetcher failure handling
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:19 -05:00
Clinton Wolfe
4bda0ddeeb fixture and implementation for git fetcher failure handling
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:19 -05:00
Clinton Wolfe
c1d1e6d12f functional test for URL fetcher
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:19 -05:00
Clinton Wolfe
8a3213861a Fixture and implementation for URL fetcher
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:32:19 -05:00
Clinton Wolfe
0ddf1687f5 A functional test for the local fetcher
I hate to do this, but unit testing this reveals odd behavior
in the fetcher - fetching in a unit harness appears to always succeed.
I'd like to make this into a unit test, but for now I want to focus on
the fetchers.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:30:08 -05:00
Clinton Wolfe
72f1011979 Fixture and implementation for local fetcher error handling
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-12-04 13:30:08 -05:00
Miah Johnson
e214cda8a7 Fixes #3430
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-12-03 19:28:10 -08:00
Miah Johnson
c2fc429291 enable reek and shellcheck
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-12-03 19:09:01 -08:00
Miah Johnson
05380a654e sum coverage from parallelized tests
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-12-03 19:08:45 -08:00
Ryan Davis
cfa40e3cc4 Added chef-telemetry 1.0 to dependencies.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 18:44:30 -08:00
Chef Expeditor
31e4fea3ff Bump version to 4.18.45 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-04 02:43:54 +00:00
Ryan Davis
af494c193f Hook up logger to inspec detect.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 18:43:52 -08:00
Ryan Davis
c5e38d81c4
Merge pull request #4759 from inspec/zenspider/windows-again-and-again
Bump windows deadline AGAIN.
2019-12-03 18:43:31 -08:00
Ryan Davis
2fdd68c805 Bump windows deadline AGAIN.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 18:41:48 -08:00
Ryan Davis
14e835e4cc Attempt to fix bundle caching.
Unfortunately, I can only test this via commits to BK...

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 15:36:06 -08:00
Josh Brand
3af3df34d7 remove inspec/jq from pkg_deps/pkg_build_deps
It's included as a dep in the scaffolding itself, and the multiple
dependencies cause failures when building (ty @smacfarlane <3)

`jq` is also no longer needed, it was an artifact of legacy testing

Signed-off-by: Josh Brand <jbrand@chef.io>
2019-12-03 18:04:51 -05:00
Ryan Davis
c73569fe6b Updated vars for minitest changes.
N -> MT_CPU

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 15:01:35 -08:00
Ryan Davis
e1966973cc Added SKIP_BUNDLE_CACHE var to .expeditor/buildkite/verify.sh
This lets me test our docker setup locally much quicker as I don't
have to time out on the aws s3 push/pull steps.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 15:00:21 -08:00
Chef Expeditor
107e456407 Update CHANGELOG.md with details from pull request #4753
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-03 22:09:44 +00:00
Miah Johnson
f5dc55eb4e
Merge pull request #4753 from inspec/kg/searchbar
Removes broken search button and icon
2019-12-03 14:09:31 -08:00
kagarmoe
d309c89fcf Removes broken search button and icon
Signed-off-by: kagarmoe <kgarmoe@chef.io>
2019-12-03 10:45:20 -08:00
Chef Expeditor
41897d3beb Bump version to 4.18.44 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-02 21:28:06 +00:00
Miah Johnson
b174273034
Merge pull request #4724 from mbaitelman/add_last_login_user
Add last login date to WindowsUser
2019-12-02 13:27:45 -08:00
Chef Expeditor
b133a48487 Bump version to 4.18.43 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-02 21:27:22 +00:00
Miah Johnson
7a837e16d1
Merge pull request #4745 from inspec/mj/cc-coverage
Enable Codeclimate Test Coverage
2019-12-02 13:27:00 -08:00
Chef Expeditor
bc3d6e634b Bump version to 4.18.42 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-12-02 18:41:25 +00:00
Ryan Davis
fe3c49e705
Merge pull request #4743 from inspec/zenspider/fixtures
Suppress output from rubygems installs.
2019-12-02 10:41:04 -08:00
Chef Expeditor
5d09cfce2f Bump version to 4.18.41 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-11-29 21:08:37 +00:00
Ryan Davis
e9817fe422
Merge pull request #4739 from inspec/zenspider/ruby-2.7
Fix ruby 2.7 warnings/errors
2019-11-29 13:08:15 -08:00