Skip to content

Commit

Permalink
(QA-2620) update package install for pe-client-tools to use package n…
Browse files Browse the repository at this point in the history
…ame not file name
  • Loading branch information
Zach Reichert committed Aug 24, 2016
1 parent e29ed49 commit 120aae3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/beaker-pe/pe-client-tools/install_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def install_pe_client_tools_on(hosts, opts = {})
elsif host['platform'] =~ /osx/
host.generic_install_dmg(package_name, package_base, installer)
else
host.install_package( package_name )
host.install_package( product )
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/beaker-pe/pe-client-tools/installer_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ClassPEClientToolsMixedWithPatterns
hosts.each do |host|
allow(subject). to receive(:fetch_http_file).with("http://builds.delivery.puppetlabs.net/pe-client-tools/#{opts[:pe_client_tools_sha]}/artifacts/el/6/PC1/x86_64", "pe-client-tools-#{opts[:pe_client_tools_version]}-1.el6.x86_64.rpm", "tmp/repo_configs")
allow(host). to receive(:external_copy_base)
expect(host).to receive(:install_package).with("pe-client-tools-#{opts[:pe_client_tools_version]}-1.el6.x86_64.rpm")
expect(host).to receive(:install_package).with("pe-client-tools")
subject.install_pe_client_tools_on(host, opts)
end
end
Expand Down

0 comments on commit 120aae3

Please sign in to comment.