From ce58edccf61b70a591be70067002a60209be8e74 Mon Sep 17 00:00:00 2001 From: Pranay Singh Date: Mon, 10 Jan 2022 23:52:47 +0530 Subject: [PATCH] testing for command on instance and cleaning out comments Signed-off-by: Pranay Singh --- lib/chef_apply/target_host/aix.rb | 6 ++---- spec/unit/target_host/aix_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/chef_apply/target_host/aix.rb b/lib/chef_apply/target_host/aix.rb index 346841c58..85f15513f 100644 --- a/lib/chef_apply/target_host/aix.rb +++ b/lib/chef_apply/target_host/aix.rb @@ -13,8 +13,8 @@ def mkdir(path) end def chown(path, owner) - owner ||= user - run_command!("chown #{owner} '#{path}'") + # owner ||= user + # run_command!("chown #{owner} '#{path}'") nil end @@ -27,8 +27,6 @@ def make_temp_dir end def install_package(target_package_path) - # command = "pkg install -g #{target_package_path} chef" - # command = "installp -ld #{target_package_path}" command = "installp -aXYgd #{target_package_path} all" run_command!(command) end diff --git a/spec/unit/target_host/aix_spec.rb b/spec/unit/target_host/aix_spec.rb index a47c19fab..36697c163 100644 --- a/spec/unit/target_host/aix_spec.rb +++ b/spec/unit/target_host/aix_spec.rb @@ -38,10 +38,10 @@ context "#install_package" do context "run the correct pkg run command " do - let(:expected_command) { "installp -ld chef-12.0.0-rc.0-1.powerpc.bff" } + let(:expected_command) { "installp -aXYgd chef-12.0.0-rc.0-1.powerpc.bff" } it "should run the correct install command" do expect(subject).to receive(:run_command!).with expected_command - subject.install_package("/my/chef-17.3.48-1.i386.p5p") + subject.install_package("/my/chef-12.0.0-rc.0-1.powerpc.bff") end