Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions spec/configuration/network_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,16 @@
end
end
end

describe 'At least one non-loopback interface' do
it 'should exist and be up' do
non_loopback_interfaces = interfaces.reject { |iface| iface == 'lo' }
expect(non_loopback_interfaces).not_to be_empty

working_interface = non_loopback_interfaces.find do |iface|
interface(iface).exists? && interface(iface).up?
end

expect(working_interface).not_to be_nil
end
end