Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds spec tests for Ruby 2.7 and 3.0, as well as Chef 17.
This requires installing a newer version of
rvm
, because the default version present in the image doesn't know Ruby 3.0.Updates the tests to be compatible with Ruby 3.0:
fauxhai
gem had to be updated to8.3.1
to include this fix: Resolve warning about usage of URI.open chefspec/fauxhai#351, without which the tests fail (becauseopen
alone can only refer toFile.open
, notURI.open
in Ruby 3.0)fauxhai
gem update deprecated a bunch of platforms: Fedora 26 & 27, Debian 7.11 and 8.9. They have been replaced with Fedora 31 & 32, Debian 8.11.dnf_package
and notyum_package
.Updates the tests & rake tasks to be compatible with Chef 17:
zypper_repository
resource automatically transforms thegpgkey
entry into an array. The corresponding test had to be modified to take the Chef >= 17 and Chef < 17 cases into account.chef
modules used in release rake tasks have disappeared. As a temporary workaround, these are lazy-loaded so that they don't make Chef 17 CI tests fail.