Commit Graph

962 Commits

Author SHA1 Message Date
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
Daniel Madej
205af2ab99 Cleanup
UsageStats addition methods
InactiveUsage class

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:12:37 +02:00
Daniel Madej
65879e01cd Small statistics refactor
Extracted common parts to separate methods
Added get_stat_value()

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-03 17:06:36 +02:00
Robert Baldyga
dd0701ded1
Merge pull request #1548 from Deixx/io-class-stats-without-id
Enable displaying IO class stats w/o IO class id
2024-10-03 13:15:16 +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
Michal Mielewczyk
1a2a7e9276 Update TF: User-defined timeouts for FS utils
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-10-03 12:53:38 +02:00
Daniel Madej
7e2c46b827 Enable displaying IO class stats w/o IO class id
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-02 17:51:31 +02:00
Robert Baldyga
1fd718fcb0
Merge pull request #1536 from Deixx/perf-100p-refactor
Update test_4k_100p_hit_reads_wt
2024-10-02 10:33:06 +02:00
Robert Baldyga
d692204c20
Merge pull request #1523 from katlapinka/kasiat/promotion-api
Add API for setting promotion policy params
2024-10-02 10:32:44 +02:00
Robert Baldyga
67d9379c5f
Merge pull request #1543 from Deixx/mstream-seq-cutoff-fix
Update for test_multistream_seq_cutoff_functional
2024-10-02 10:32:26 +02:00
Daniel Madej
3c20937d7f Update for test_multistream_seq_cutoff_functional
Throw exception when dd runs out of space
Shorter logs
Blocks instead of bytes in error message

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-10-02 08:42:20 +02:00
Daniel Madej
829dbf9ba5 Update for test_parallel_core_flushing
Add oflag=direct
Stop cache before calculating backend md5 sums
Check all cores before ending test on fail
Print flushing progress in log
Check occupancy and dirty for each core
Minor fix and refactor

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-09-30 17:26:19 +02:00
Kamil Gierszewski
5f170b11b3
test-api: reverse cache stop
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:54 +02:00
Kamil Gierszewski
16227e90ed
test-api: update cli messages
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:54 +02:00
Kamil Gierszewski
39c4a3be4e
tests: refactor test_init_status
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:54 +02:00
Kamil Gierszewski
b3cb1251cc
tests: refactor test_clean_reboot
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:53 +02:00
Kamil Gierszewski
61ff8f60c5
tests: reformat test_clean_reboot
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:53 +02:00
Kamil Gierszewski
41460f0e6c
tests: fix incremental load test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:53 +02:00
Kamil Gierszewski
9cf90e61b6
tests: fix udev test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:52 +02:00
Kamil Gierszewski
97e3002d21
tests: fix plug usage
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:52 +02:00
Kamil Gierszewski
96a0f1fa43
test-api: fix class variable types in statistics.py
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:52 +02:00
Kamil Gierszewski
66c6291b7a
test-api: add inactive stats
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-30 09:57:52 +02:00
Daniel Madej
5d10c512b2 Remove metadata_size_on_disk from Cache init
Not used and might cause an exception in cleanup in specific
scenarios

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-09-30 08:20:41 +02:00
Daniel Madej
0d19498eb5 Update test_4k_100p_hit_reads_wt
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2024-09-26 16:20:05 +02:00
Kamil Gierszewski
6d71961292
test-api: fix core_pool remove
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 22:40:48 +02:00
Kamil Gierszewski
64e4b8d9a7
tests: fix test_cli_help test
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 17:16:50 +02:00
Kamil Gierszewski
d0d0fdb9c8
test-api: reformat cli_help_messages.py
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 17:14:47 +02:00
Kamil Gierszewski
8d4262079e
tests: fix test_negative_start_cache
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 13:20:41 +02:00
Kamil Gierszewski
b8d6f8403e
test-api: fix cache mode change
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 12:54:12 +02:00
Kamil Gierszewski
df8705373c
tests: fix test for cleaning policy
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 12:54:12 +02:00
Katarzyna Treder
ae2d14dfb2 Fix for core IO class statistics
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-18 09:04:47 +02:00
Kamil Gierszewski
cc5d796978 test-api: fix core pool parse
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-16 10:22:33 +02:00
Kamil Gierszewski
173810ad6d tests: fix tests after tf disk recognition refactor
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-16 10:18:50 +02:00
Katarzyna Treder
8c0f4f5ad1 Add API for setting promotion policy params
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-13 21:27:55 +02:00
Katarzyna Treder
73eb0c399b Update test-framework submodule version
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-13 11:59:50 +02:00
Katarzyna Treder
a1ff17bbd3 Change path type to string in fs_utils remove command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-13 11:35:36 +02:00
Robert Baldyga
de16763bec
Merge pull request #1496 from Kamoppl/kamilg/update_tests
tests: update tests
2024-09-10 14:35:18 +02:00
Katarzyna Treder
b15076a22e Fuzzy tests for casadm 'print statistics' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
e8fbc624ed Fuzzy tests for casadm 'set param' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
4efdf36f45 Fuzzy tests for casadm 'load io class' command and for io class config
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
b8364ea593 Fuzzy tests for casadm 'get param' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
1861758c6a Fuzzy tests for casadm 'flush' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
7f843fd6bf Fuzzy tests for casadm 'set cache mode' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
aeb0321393 Fuzzy tests for casadm 'stop' and 'remove' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
fd7cf1ad7d Fuzzy tests for casadm 'start cache' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
f4bfd5398e Fuzzy tests for casadm 'io class list' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
981946de7d Fuzzy tests for casadm 'add core' command
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
8156abdd12 Add missing peach fuzzer config files
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Katarzyna Treder
619a6c8e2a Refactor common fuzzy files
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-10 12:01:27 +02:00
Kamil Gierszewski
df3c759de8
test-conftest: fix git
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:39:08 +02:00
Kamil Gierszewski
36903a2c67
test-api: update cas api after reformat
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:39:08 +02:00
Kamil Gierszewski
d40e2a519d
test-api: reformat api files
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:39:07 +02:00
Kamil Gierszewski
077820f1c0
test-conftest: remove autoinstall and update conftest
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:24:38 +02:00
Kamil Gierszewski
61371a1efc
test-api: update requirements
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:24:38 +02:00
Kamil Gierszewski
d48e9fc80d
test-api: update cas api
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:24:38 +02:00
Kamil Gierszewski
e8bdcdae4f
tests: update tests
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-09 12:54:20 +02:00
Robert Baldyga
f0727cce62
Merge pull request #1503 from mmichal10/block-standy
Block standby
2024-09-09 11:16:42 +02:00
Michal Mielewczyk
0f0ef79b89 Disable standby mode
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-06 13:23:07 +02:00
Robert Baldyga
45a43e146f
Merge pull request #1500 from katlapinka/kasiat/remove-duplicate
Remove test trim duplicate and update the original one
2024-09-04 15:59:18 +02:00
Katarzyna Treder
e711dc981d Remove test trim duplicate and update the original one
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-04 13:47:18 +02:00
Robert Baldyga
5ca92d422d
Merge pull request #1402 from robertbaldyga/tests-fix-invalid-mark
tests: Fix invalid mark
2024-09-04 13:41:45 +02:00
Katarzyna Treder
9e0d7df3a2 Add write performance test
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-09-04 11:29:36 +02:00
Katarzyna Treder
ba559a2b67 Fix TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-25 12:18:42 +02:00
Katarzyna Treder
80a74a11f4 Update to work with TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-16 15:07:04 +02:00
Katarzyna Treder
221bc61769 Add TF submodule
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-12 13:13:52 +02:00
Katarzyna Treder
675c37b640 Remove TF files
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-07-12 13:11:55 +02:00
Mateusz Kozlowski
a7a87fc83c test-framework: Changing the template html < and > to lt/gt entities
Some xpath parsers get confused by the explicit < and > characters.

Signed-off-by: Mateusz Kozlowski <mateusz.kozlowski@solidigm.com>
2023-03-31 10:53:44 +02:00
Robert Baldyga
5dc6133a09
Merge pull request #1399 from jwirkus/add_fuzzy_tests_api
Add fuzzy tests API
2023-01-03 15:34:05 +01:00
Robert Baldyga
54f54d684a
Merge pull request #1407 from KlaudiaJ/performance1
Add basic read hit performance tests for CAS.
2022-12-27 11:36:10 +01:00
Robert Baldyga
849f59855c tests: Embed test framework within OCL repository
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-12-23 12:53:55 +01:00
Robert Baldyga
d240de2368
Merge pull request #1417 from robertbaldyga/add-missing-settle
smoke_test: Add missing udevadm settle
2022-12-20 09:16:18 +01:00
Karolina Rogowska
e9f138bc8d
Merge pull request #1396 from DocentSzachista/test-pin-wt-MT
tests: add test for pinned IO class eviction after unpinning that class
2022-12-13 15:31:03 +01:00
Robert Baldyga
052eb82db8 smoke_test: Add missing udevadm settle
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-12-07 17:26:37 +01:00
jwirkus
2f4d2f70c5 Add fuzzy tests API
Signed-off-by: jwirkus <jakubx.wirkus@intel.com>
2022-11-30 13:42:26 +01:00
Klaudia Jablonska
08e15b6bdc Add basic read hit performance tests for CAS.
Tested in 'Write-Through' and 'Write-Back' mode.

Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-11-29 17:22:26 +01:00
Karolina Rogowska
f1161e04d7
Merge pull request #1368 from rafalste/packaging_api
test/api: Add packaging functionality
2022-11-23 15:33:04 +01:00
Damian Raczkowski
b3456a6268 tests: add test for pinned IO class eviction after unpinning that class
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-11-10 14:56:37 +01:00
Robert Baldyga
f657644507 tests: Fix invalid mark
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-11-07 11:25:16 +01:00
Robert Baldyga
6dbdb94b2d
Merge pull request #710 from karolinavelkaja/cas_dss_lvm_test
adding new lvm test: test_io_class_lvm_on_cas
2022-10-28 10:55:06 +02:00
Robert Baldyga
537ba381f1
Merge pull request #697 from karolinavelkaja/many_cores_on_many_lvms_test
adding new lvm test: test_many_cores_on_many_lvms
2022-10-28 10:54:51 +02:00
Robert Baldyga
f867fb9785
Merge pull request #682 from karolinavelkaja/cache1_core4_lvm4_test
adding new lvm test: test_many_lvms_on_many_cores
2022-10-28 10:54:36 +02:00
Robert Baldyga
8df9052925
Merge pull request #694 from karolinavelkaja/many_lvms_on_single_core_test
adding new lvm test: test_many_lvms_on_single_core
2022-10-28 10:54:03 +02:00
Kamil Gierszewski
9b2a3490c5 test_fix:change help message
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-10-27 13:07:13 +02:00
Karolina Rogowska
52f3289577
Merge pull request #1392 from DocentSzachista/fix-flush-test-message
test-fix: change help message in cli_help_messages to proper one
2022-10-27 12:53:28 +02:00
Karolina Rogowska
520133b46c
Merge pull request #717 from karolinavelkaja/fault_injection_max_io_greater_in_core_test
adding test: test_max_io_greater_in_core
2022-10-27 11:34:33 +02:00
Karolina Rogowska
475312469d adding test: test_max_io_greater_in_core
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 16:05:40 +02:00
Karolina Rogowska
595b58f316 adding new lvm test: test_many_lvms_on_single_core
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 15:48:18 +02:00
Karolina Rogowska
ad6ca39694 adding new lvm test: test_many_cores_on_many_lvms
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 15:46:04 +02:00
Robert Baldyga
92b8788f98
Merge pull request #591 from karolinavelkaja/memory_consumption_test
add test 'test_memory_metadata_consumption'
2022-10-25 15:43:21 +02:00
Karolina Rogowska
3bdc2d5cd5 adding new lvm test: test_io_class_lvm_on_cas
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-25 15:39:44 +02:00
Karolina Rogowska
4fd7873bb6 add new test: test_many_lvms_on_many_cores
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-24 15:30:31 +02:00
Karolina Rogowska
ad40f2b226
Merge pull request #1388 from DocentSzachista/fix-one-core-fail
test fix: add parametrize parameter as argument to function
2022-10-21 09:34:53 +02:00
Damian Raczkowski
2e6ccd2ad9 test-fix: change help message in cli_help_messages to proper one
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-20 05:02:56 +02:00
Karolina Rogowska
1c1ef3024f add test 'test_memory_metadata_consumption' with 2 test cases
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-19 17:22:32 +02:00
Damian Raczkowski
ca2b7b86cf test fix: add parametrize parameter to funcion
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-19 09:05:50 +02:00
Karolina Rogowska
82e4c46b8b marking tests that are os-dependent
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-17 17:03:55 +02:00
Karolina Rogowska
ebcae02f81 marking kedr tests as skipped
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-17 17:03:55 +02:00
Robert Baldyga
49e31a1e7e
Merge pull request #650 from karolinavelkaja/lvm_api_ocl
LVM api (ocl)
2022-10-17 16:58:02 +02:00
Karolina Rogowska
54428ddf26 lvm api (ocl)
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-10-13 16:47:34 +02:00
Robert Baldyga
0ff4698f29
Merge pull request #1349 from DocentSzachista/test-multilevel-cache
tests: add multilevel cache test
2022-10-13 14:10:23 +02:00
Karolina Rogowska
4f30283e0a
Merge pull request #1337 from DocentSzachista/OC1-348
tests: refactor fault_injection tests
2022-10-12 13:13:52 +02:00
Robert Baldyga
97c8df0995
Merge pull request #1373 from DocentSzachista/merge_flush_and_cache
Merge flush and cache commands
2022-10-12 12:38:14 +02:00
Rafal Stefanowski
71e2b5f586 test: Adapt weak-modules test to changes in packaging API
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-10-06 10:56:40 +02:00
Rafal Stefanowski
d91e46ebb8 test/api: Add packaging functionality
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-10-06 10:56:40 +02:00
Damian Raczkowski
f67543e7b3 update CAS API to adapt changes in casadm
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-06 09:08:57 +02:00
Damian Raczkowski
f57b01ee31 tests: refactor fault_injection tests
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-10-05 12:29:39 +02:00
Robert Baldyga
f953c14c2e
Merge pull request #1315 from AdamSeyda/adding_test_cli_help_spelling
Add test test_cli_help_spelling
2022-10-04 14:37:06 +02:00
Robert Baldyga
5ac02a8377
Merge pull request #1361 from DocentSzachista/dss-pin-02
tests: add stress test for IO class pinning eviction
2022-10-04 14:10:46 +02:00
Adam Seyda
f4e17bc1ec Add test test_ci_read_write
Signed-off-by: Adam Seyda <adam.seyda@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-10-03 19:44:26 +02:00
Adam Seyda
3f7cf3c670 Add test test_cli_help_spelling
Signed-off-by: Adam Seyda <adam.seyda@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-10-03 19:43:27 +02:00
Kamil Gierszewski
9417301453 test_fix:fix_test_cli_help_and_version
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-10-03 16:54:43 +02:00
Robert Baldyga
6af0c5dbfe
Merge pull request #1353 from arutk/apf
Fix ALRU wake up time test and documentation
2022-09-30 11:04:39 +02:00
Adam Rutkowski
39fbe873df Fix test_cleaning_policy_config ALRU assumptions
ALRU does not have a configurable sleep time between active awakenings
of the cleaning thread. Once it starts cleaning, it does not back off
unless staleness time and/or activity threshold constraints force it
to do so.

Changing test_cleaning_policy_config assumptions so that it only checks
whether minimum expected amount of data is cleaned rather than assume
exact amount of data to be cleaned.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-30 18:18:10 +02:00
Karolina Rogowska
a7df579991
Merge pull request #1365 from arutk/trte
tests: remove test_trim_eviction
2022-09-28 15:29:22 +02:00
Rutkowski, Adam J
73716e89ca tests: remove test_trim_eviction
There are multiple issues with this test, but regardless
of them it seems that it duplicates existing trim tests.

The intention of the test is to verify that there is no
eviction when inserting to cache after a trim. This
is equivalent to checking that a trim reduced cache
occupancy, and this is done in other trim test
(test_trim_device_discard_support).

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-28 14:22:12 +02:00
Damian Raczkowski
77f296db11 tests: add stress test for IO class pinning eviction
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-09-28 11:11:21 +02:00
Robert Baldyga
3aaef69905
Merge pull request #1357 from karolinavelkaja/power_hit_init_test_byid_fix
tests: fix cache device path
2022-09-27 12:52:55 +02:00
Robert Baldyga
7b126005eb
Merge pull request #1356 from Kgierszx/fix_test_recover_cache_verify
test: fix_recovery_cache_verify_core
2022-09-27 10:12:19 +02:00
Robert Baldyga
abb48a9cc4
Merge pull request #1362 from arutk/fcet
tests: do not run test_core_device_error in lazy write cache modes
2022-09-27 10:10:44 +02:00
Klaudia Jablonska
1cf2af7ed4 Refactor IO class tests
Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-09-26 12:38:46 +02:00
Rutkowski, Adam J
349ec69f65 Do not run test_core_device_error in lazy write cache modes
This test has multiple assumptions that do not hold for WB/WO:
1. it assumes primary storage errors would propagate to user I/O
2. cache is stopped with metadata flush, which would fail
3. after stopping CAS core content is verified with fio
4. cache is so small that it overfills, resulting in PT I/O further
complicating error accounting.

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-26 11:10:06 +02:00
Rutkowski, Adam J
d6eebc2cc3 test framework: method to get cache modes without given trait
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-26 11:09:42 +02:00
Robert Baldyga
2da9753a10
Merge pull request #1359 from karolinavelkaja/core_device_error_test_logging_fix
tests: fix for proper logging of error values
2022-09-22 17:32:14 +02:00
Rafal Stefanowski
e07b7ae630 Fix file extensions in permission test
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-22 14:24:14 +02:00
Karolina Rogowska
42bff04465 fix for proper logging of error values
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-22 12:39:55 +02:00
Robert Baldyga
5e38c25f49
Merge pull request #1358 from arutk/fif
Fix dd flags in test_lazy_writes_clean tests
2022-09-22 11:46:49 +02:00
Rutkowski, Adam J
52c978f931 Fix dd flags in test_lazy_writes_clean tests
Change dd flag specification so that "direct" is specified for
the tested device (CAS exp object or core), regardless of I/O
direction (read vs write).

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-09-21 17:11:24 +02:00
Karolina Rogowska
1b04be0140 fix cache device path
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-21 15:43:37 +02:00
Kamil Gierszewski
dbe8fec99b test: fix_recovery_cache_verify_core
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-09-21 14:29:36 +02:00
Robert Baldyga
c46a3beb3f Fix license headers in tests
Some tests added after license cleanup still have bad license header.
Change it to the proper one.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-21 11:59:34 +02:00
Robert Baldyga
70cc908b39
Merge pull request #1345 from robertbaldyga/consolidate-cas-modules
Consolidate Open CAS modules
2022-09-19 14:55:30 +02:00
Robert Baldyga
8d55e3987f Update tests after cas_disk removal
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Robert Baldyga
3c3369bcc7
Merge pull request #1332 from karolinavelkaja/partitions_test_fix_ocl
tests: fix test_partition_create_cas
2022-09-16 06:55:12 +02:00
Robert Baldyga
ccb6c0a3e3
Merge pull request #1346 from pdebski21/test_one_core_fail_dirty
Add test one core fail dirty
2022-09-14 14:28:51 +02:00
Piotr Debski
d6bdc06cfc Add test one core fail dirty
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-09-14 14:12:29 +02:00
Damian Raczkowski
29e20ad10d tests: add multilevel cache test
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-09-14 11:12:50 +02:00
Damian Raczkowski
3450f88eb1 refactor compare_md5 and move functions to common.py
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-09-14 11:11:31 +02:00
Robert Baldyga
a9260524e0
Merge pull request #1277 from pdebski21/test_fixes3
Tests fixes
2022-09-13 09:41:45 +02:00
Adam Rutkowski
236418a373
Merge pull request #1336 from karolinavelkaja/refactor_tests_under_initialize_load
tests: refactor test_initialize_load file
2022-09-12 15:26:11 +02:00
Piotr Debski
5aba9efda1 fix for test test_one_core_fail
Occupancy does not change when cache data is dirty and dd is executed for cache in write-only mode. Fix required to prefill cache with clean data.

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-09-12 09:28:00 +02:00
Adam Rutkowski
bc417e03c4 enable skipped failover tests
Excessive reboot times have not been observed for some time now.
I wasn't able to reproduce them by hand either.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-09-08 16:20:54 +02:00
Rafal Stefanowski
91f5d497ef copyright/license: Add missing file extensions
Proper file extensions help 'copyright header checker' find files
that should contain copyright info. Extensions also clearly indicate
file type, and help to fit in with the file naming convention.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:23:11 +02:00
Adam Rutkowski
b5d4ee3c14
Merge pull request #940 from Deixx/test-cleaning
Add test for configuring cleaning policies
2022-09-06 16:32:46 +02:00
Robert Baldyga
987f53b1ff
Merge pull request #1281 from arutk/foati
failover advanced tests implementation
2022-09-06 13:16:18 +02:00
Robert Baldyga
787baf322e
Merge pull request #1330 from rafalste/update_dependencies
Remove python3-packaging from dependencies
2022-09-02 15:49:55 +02:00
Karolina Rogowska
ac6e30322a refactor test_initialize_load -rename test and remove 2 tests no longer valid
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-31 16:13:20 +02:00
Rutkowski, Adam J
8764338582 fix test_incremental_load_hidden_core
Cache state after load with missig cores should be "incomplete"
rather than "running.

Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-08-31 13:33:32 +02:00