Commit 23a974eb authored by Corey Innis's avatar Corey Innis

Add /sbin and /usr/sbin to $PATH before trying to call ifconfig

CentOS 7 has moved it to an unusual place but we don't want to
break everyone else. [#91294022]
Signed-off-by: default avatarcaleb miles <cmiles@pivotal.io>
parent 2a23e310
......@@ -86,7 +86,7 @@ describe 'network configuration' do
expect(bosh("deployment #{deployment.to_path}")).to succeed
expect(bosh('deploy')).to succeed
expect(ssh(public_ip, 'vcap', 'ifconfig', ssh_options)).to include(second_static_ip)
expect(ssh(public_ip, 'vcap', 'PATH=/sbin:/usr/sbin:$PATH; ifconfig', ssh_options)).to include(second_static_ip)
end
it 'deploys multiple manual networks' do
......@@ -99,8 +99,8 @@ describe 'network configuration' do
expect(bosh("deployment #{deployment.to_path}")).to succeed
expect(bosh('deploy')).to succeed
expect(ssh(public_ip, 'vcap', 'ifconfig', ssh_options)).to include(static_ips[0])
expect(ssh(public_ip, 'vcap', 'ifconfig', ssh_options)).to include(static_ips[1])
expect(ssh(public_ip, 'vcap', 'PATH=/sbin:/usr/sbin:$PATH; ifconfig', ssh_options)).to include(static_ips[0])
expect(ssh(public_ip, 'vcap', 'PATH=/sbin:/usr/sbin:$PATH; ifconfig', ssh_options)).to include(static_ips[1])
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment