Skip to content

Commit

Permalink
(PE-19438) Mock scp_from for do_install
Browse files Browse the repository at this point in the history
The new functionality in `do_install` to copy the `conf.d` folder
  • Loading branch information
Brandon High authored and jpartlow committed Mar 10, 2017
1 parent 80b78e0 commit 1353f7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/beaker-pe/install/pe_utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ def slice_installer_options(host)
allow( subject ).to receive( :hosts ).and_return( hosts )
#create answers file per-host, except windows
expect( subject ).to receive( :create_remote_file ).with( hosts[0], /answers/, /q/ ).once
# copy the pe.conf
expect( subject ).to receive( :scp_from ).and_return(true)
#run installer on all hosts
expect( subject ).to receive( :on ).with( hosts[0], /puppet-enterprise-installer/ ).once
expect( subject ).to receive( :install_msi_on ).with ( any_args ) do | host, msi_path, msi_opts, opts |
Expand Down Expand Up @@ -1041,6 +1043,7 @@ def slice_installer_options(host)
allow( subject ).to receive( :configure_type_defaults_on ).with( host )
end

expect( subject ).to receive( :scp_from ).and_return(true)
subject.do_install( hosts, opts )
end

Expand Down Expand Up @@ -1106,6 +1109,7 @@ def slice_installer_options(host)
allow( subject ).to receive( :configure_type_defaults_on ).with( host )
end

expect( subject ).to receive( :scp_from ).and_return(true)
subject.do_install( hosts, opts )
end

Expand Down Expand Up @@ -1176,6 +1180,7 @@ def slice_installer_options(host)
allow( subject ).to receive( :configure_type_defaults_on ).with( host )
end

expect( subject ).to receive( :scp_from ).and_return(true)
subject.do_install( hosts, opts )
end

Expand Down

0 comments on commit 1353f7b

Please sign in to comment.