Skip to content

Commit

Permalink
[Test] In test_raid_correctly_configured, remove a not impactful
Browse files Browse the repository at this point in the history
warning messages from the mdadm scan output.

Signed-off-by: Giacomo Marciani <[email protected]>
  • Loading branch information
gmarciani committed Jun 20, 2024
1 parent 3d68ea0 commit d46b766
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration-tests/tests/storage/storage_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,13 @@ def test_raid_correctly_configured(remote_command_executor, raid_type, volume_si
mdadm_conf = remote_command_executor.run_remote_command(
"sudo cat /etc/mdadm.conf || sudo cat /etc/mdadm/mdadm.conf"
).stdout
assert_that(mdadm_conf).contains(expected_entry)
# We remove from the mdadm scan output all the warning messages that are considered not problematic.
sanitized_expected_entry = re.sub(
r"mdadm: Value .* cannot be set as name\. Reason: Not POSIX compatible\. Value ignored\.\n?",
"",
expected_entry,
)
assert_that(mdadm_conf).contains(sanitized_expected_entry)


def test_raid_correctly_mounted(remote_command_executor, mount_dir, volume_size):
Expand Down

0 comments on commit d46b766

Please sign in to comment.