Skip to content

Commit

Permalink
Added test for devices without hwinfo based on CR
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Mar 8, 2018
1 parent d0205ff commit 6a07b70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/network_autoyast_test.rb
Expand Up @@ -470,6 +470,11 @@ def mock_lan_item(renamed_to: nil)
"rule" => "KERNELS",
"value" => "0000:01:00.0"
},
{
"name" => "eth3",
"rule" => "KERNELS",
"value" => "0000:01:00.4"
},
{
"name" => "eth0",
"rule" => "KERNELS",
Expand Down Expand Up @@ -530,6 +535,7 @@ def mock_lan_item(renamed_to: nil)
.and_return(persistent_udevs)

Yast::LanItems.Read
Yast::LanItems.Items[3] = { "ifcfg" => "eth3" }
end

# see bnc#1056109
Expand All @@ -552,7 +558,7 @@ def mock_lan_item(renamed_to: nil)
end

# check if device names are unique
expect(names.sort).to eql ["eth0", "eth1", "eth2"]
expect(names.sort).to eql ["eth0", "eth1", "eth2", "eth3"]
end
end
end
Expand Down

0 comments on commit 6a07b70

Please sign in to comment.