Commit 2a23e310 authored by Corey Innis's avatar Corey Innis

Do not use abosolute path for ifconfig in BATs

It may not be where we expect, but should be on the PATH
Signed-off-by: default avatarcaleb miles <cmiles@pivotal.io>
parent 080e961f
......@@ -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', '/sbin/ifconfig', ssh_options)).to include(second_static_ip)
expect(ssh(public_ip, 'vcap', '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', '/sbin/ifconfig', ssh_options)).to include(static_ips[0])
expect(ssh(public_ip, 'vcap', '/sbin/ifconfig', ssh_options)).to include(static_ips[1])
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])
end
end
end
......@@ -75,7 +75,7 @@ describe 'CentOS 7 OS image', os_image: true do
end
describe file('/usr/sbin/ifconfig') do
it { should be_executable }
it { should be_executable }
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