Katarzyna Treder
b724419a4f
Move git to tools
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 14:32:50 +01:00
Katarzyna Treder
4e8ea659da
Move fstab to tools
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 14:28:35 +01:00
Katarzyna Treder
4dca1c3c00
Move linux command and wait method to common tools
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 13:58:04 +01:00
Katarzyna Treder
cde7a3af16
Move error device to storage devices
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 13:47:18 +01:00
Katarzyna Treder
5121831bd8
Move singleton to common utils
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 13:24:57 +01:00
Katarzyna Treder
4a6d6d39cd
Move asynchronous to connection utils
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:50:43 +01:00
Katarzyna Treder
9460151ee5
Move output to connection utils
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:31:14 +01:00
Katarzyna Treder
81e792be99
Move Time to types
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:20:31 +01:00
Katarzyna Treder
d4e562caf9
Move size.py to types
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:18:38 +01:00
Katarzyna Treder
3953e8b0f8
Add initramfs update to LVM tests and conftest
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-11-25 14:46:37 +01:00
Kamil Gierszewski
e54732ef81
test-conftest: move dict creation outside loop function
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:10 +01:00
Kamil Gierszewski
677a5019fb
test-conftest: Don't clean-up drives that won't be used
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:10 +01:00
Kamil Gierszewski
bf7711354d
test-conftest: More readable RAID teardown
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:10 +01:00
Kamil Gierszewski
b8ccf403f0
test-conftest: Kill IO faster in prepare/teardown
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:10 +01:00
Kamil Gierszewski
720475f85c
tests: update_test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:09 +01:00
Kamil Gierszewski
ed85411750
test-conftest: Use cached device_ids + fix posix path
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:09 +01:00
Kamil Gierszewski
4626d87471
test-conftest: Don't prepare disks if test doesn't use them
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:09 +01:00
Kamil Gierszewski
92a8424dd0
test-conftest: reformat conftest
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-11-25 14:20:09 +01:00
Katarzyna Treder
6e3ac806b7
Fix tests after LVM API refactor
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-11-13 13:28:16 +01:00
Katarzyna Treder
cc0f4b1c8f
Add test for loading corrupted metadata
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-11-12 12:17:26 +01:00
Kamil Gierszewski
c15b4d580b
tests: Fix after changing function name
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:38 +01:00
Kamil Gierszewski
908672fd66
test-api: add string representation of SeqCutOffPolicy
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:37 +01:00
Kamil Gierszewski
4ebc00bac8
tests: fix fault injestion interrupt test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:32:37 +01:00
Kamil Gierszewski
9ab60fe679
tests: change path type in test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-29 15:28:29 +01:00
Daniel Madej
0c0b10535e
[tests] Update CLI messages and test
...
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-28 16:07:33 +01:00
Daniel Madej
a2f3cc1f4a
Mtab check optional
...
There are situations when /etc/mtab is not present in the
system (e.g. in certain container images). This blocks
stop/remove operations. With making this check optional
the duty of checking mounts falls to kernel.
Test modified to check operations with and without mtab.
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-28 16:07:33 +01:00
Daniel Madej
75fd39ed7b
Update/fix to test_concurrent_caches_flush
...
No need to run fio in background. This fixes the issue that
one of the tests didn't wait for fio to finish before
checking stats.
More informative error messages.
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-15 09:46:36 +02:00
Katarzyna Treder
20ee2fda1f
Small fixes in security tests
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-10-15 09:36:36 +02:00
Kamil Gierszewski
5cada7a0ec
tests: add disabling udev in fault injection test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:53 +02:00
Kamil Gierszewski
1c26de3e7f
tests: update getting metadata size on device in memory consumption test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:53 +02:00
Kamil Gierszewski
a70500ee44
tests: fix init test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:52 +02:00
Kamil Gierszewski
2f188f9766
tests: add dirty data check to acp test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:52 +02:00
Kamil Gierszewski
6ce978f317
tests: fix io class tests
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:51 +02:00
Kamil Gierszewski
cf68fb226b
tests: fix dmesg getting in test
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:50 +02:00
Kamil Gierszewski
004062d9fd
tests: fix test file path
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:50 +02:00
Kamil Gierszewski
4b74c65969
tests: fix checksec permissions
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:49 +02:00
Kamil Gierszewski
51962e4684
tests: refactor test_inactive_cores
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 10:36:49 +02:00
Kamil Gierszewski
daea1a433a
tests: fix test_simulation_startup
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 02:42:56 +02:00
Kamil Gierszewski
c32650af0b
tests: fix test recovery
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-11 02:42:56 +02:00
Katarzyna Treder
375fce5a19
Add tests for io classification statistics per core
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-10-10 20:45:24 +02:00
Kamil Gierszewski
625cec7838
tests: update tests
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-09 14:47:48 +02:00
Daniel Madej
0999e601b8
Remove redundant unmount
...
remove_partitions() includes unmounting them
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-04 08:58:35 +02:00
Daniel Madej
c2662072a4
Fix mdadm --zero-superblock problem in cleanup
...
Cleanup handled mounted partitions but not the whole device
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-04 08:46:57 +02:00
Daniel Madej
663b42804d
Update test_stats_values test
...
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:19:03 +02:00
Daniel Madej
6e781fe464
Update test_stats_max tests
...
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:19:03 +02:00
Daniel Madej
aa0dc4d7ee
Thorough update of test_block_stats.py
...
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:19:03 +02:00
Michal Mielewczyk
1ae15bdb6b
tests: Fix test_flush_over_640_gibibytes_with_fs
...
Don't interrupt the test if prerequisites are not met
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
c41d5d7176
tests: Fix test_flush_over_640_gibibytes_with_fs
...
4h timeout for copying and calculating crc
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
f2f98226d8
tests: Fix test_flush_over_640_gibibytes_with_fs
...
As crc32 is supposed to be slightly faster than md5 use it to detect DC
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00
Michal Mielewczyk
d456674c9a
tests: fix test_flush_over_640_gibibytes_with_fs
...
The test requires quite some space(640G) to prepare a file on a separate
(not-cached) filesystem. Creating the file in rootfs is prone to (vague) errors
due to limited space.
To make sure that the test has all the required space available, create the file
on a separate disk
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:40 +02:00