Created
August 19, 2022 08:30
-
-
Save ares/c7b7e03093f9614dc75d1156d25fa845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/models/nics/bond_test.rb b/test/models/nics/bond_test.rb | |
index 1e4418b67..5a5d86ee2 100644 | |
--- a/test/models/nics/bond_test.rb | |
+++ b/test/models/nics/bond_test.rb | |
@@ -15,14 +15,14 @@ class BondTest < ActiveSupport::TestCase | |
assert bond.virtual | |
end | |
- test 'attached devices are stripped and downcased' do | |
+ test 'attached devices are stripped, case is preserved due to identifiers like on HPE Superdome Flex 280' do | |
bond = FactoryBot.build_stubbed(:nic_bond, :attached_devices => 'Eth0, ETH1 , eth2 ') | |
- assert_equal "eth0,eth1,eth2", bond.attached_devices | |
+ assert_equal "Eth0,ETH1,eth2", bond.attached_devices | |
end | |
test 'attached devices can be also specified as an array' do | |
bond = FactoryBot.build_stubbed(:nic_bond, :attached_devices => ['Eth0', 'ETH1 ', ' eth2 ']) | |
- assert_equal "eth0,eth1,eth2", bond.attached_devices | |
+ assert_equal "Eth0,ETH1,eth2", bond.attached_devices | |
end | |
test 'attached devices interfaces can be accessed as an array' do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment