Skip to content

Commit

Permalink
Add the unit test data
Browse files Browse the repository at this point in the history
  • Loading branch information
seankingyang committed Mar 22, 2024
1 parent 672caae commit 295ee5e
Show file tree
Hide file tree
Showing 2 changed files with 15,868 additions and 0 deletions.
11 changes: 11 additions & 0 deletions checkbox-support/checkbox_support/parsers/tests/test_udevadm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,17 @@ def test_two_dms_one_with_ubutnu_save(self):
devices = self.parse("two_dms_one_with_ubuntu_save")
self.assertEqual(len(devices), 1)

def test_VRAID_machine(self):
"""
The machine with VRAID will have the different _stack length.
See: https://github.com/canonical/checkbox/issues/482
For details.
"""
devices = self.parse("With_VRAID", with_partitions=True)
self.assertEqual(self.count(devices, "RAID"), 4)
self.assertEqual(self.count(devices, "DISK"), 7)


def verify_devices(self, devices, expected_device_list):
"""
Verify we have the expected quantity of each device given in the list,
Expand Down
Loading

0 comments on commit 295ee5e

Please sign in to comment.