Skip to content

Commit

Permalink
CHEF-1917 Fixed the knife-windows verify test failure (#523)
Browse files Browse the repository at this point in the history
* updated ruby version and verify pipeline
* removed chef from gemfile

Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 authored Apr 19, 2023
1 parent bc0f794 commit 05559e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
15 changes: 3 additions & 12 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,13 @@ expeditor:

steps:

- label: run-lint-and-specs-ruby-2.7
- label: run-lint-and-specs-ruby-3.1
command:
- .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
image: ruby:2.7-buster

- label: run-lint-and-specs-ruby-3.0
command:
- .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
image: ruby:3.0-buster

image: ruby:3.1-buster
- label: run-lint-and-specs-windows
command:
- gem install chef-utils
Expand All @@ -36,4 +27,4 @@ steps:
executor:
docker:
host_os: windows
image: rubydistros/windows-2019:3.0
image: rubydistros/windows-2019:3.1
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ if ENV["GEMFILE_MOD"]
puts "GEMFILE_MOD: #{ENV["GEMFILE_MOD"]}"
instance_eval(ENV["GEMFILE_MOD"])
else
gem "chef", git: "https://github.com/chef/chef", branch: "main"
gem "ohai", git: "https://github.com/chef/ohai", branch: "main"
gem "knife"
end
Expand Down
4 changes: 2 additions & 2 deletions knife-windows.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Gem::Specification.new do |s|
s.summary = %q{Plugin that adds functionality to Chef Infra's Knife CLI for configuring/interacting with nodes running Microsoft Windows}
s.description = s.summary

s.required_ruby_version = ">= 2.7.0"
s.add_dependency "chef", ">= 15.11"
s.required_ruby_version = ">= 3.1"
s.add_dependency "chef", ">= 18.2"
s.add_dependency "winrm", "~> 2.1"
s.add_dependency "winrm-elevated", "~> 1.0"

Expand Down

0 comments on commit 05559e6

Please sign in to comment.