Robert Baldyga
779d9e96b4
tests: fault_injection: Fix block to request calculation
...
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2025-04-07 13:12:57 +02:00
Robert Baldyga
783e0229a5
tests: fault_injection: Disable udev, purge cache and reset stats
...
Improve accounting precision by eliminating noise.
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2025-04-01 23:14:08 +02:00
Katarzyna Treder
d973b3850e
Introduce tests for cache attach/detach feature
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2025-02-28 12:18:02 +01:00
Katarzyna Treder
e740ce377f
Fix imports
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-31 12:06:18 +01:00
Katarzyna Treder
f7e7d3aa7f
Disk tools and fs tools refactor
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 18:58:26 +01:00
Katarzyna Treder
58d89121ad
Fix names: rename types to type_def
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 18:10:46 +01:00
Katarzyna Treder
8a5d531a32
OS tools refactor
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-11 07:58:50 +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
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
d4e562caf9
Move size.py to types
...
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:18:38 +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
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
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
625cec7838
tests: update tests
...
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-10-09 14:47:48 +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
Michal Mielewczyk
0f0ef79b89
Disable standby mode
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-09-06 13:23:07 +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
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
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
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
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
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
Karolina Rogowska
1b04be0140
fix cache device path
...
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-09-21 15:43:37 +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
Robert Baldyga
a9260524e0
Merge pull request #1277 from pdebski21/test_fixes3
...
Tests fixes
2022-09-13 09:41:45 +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
Robert Baldyga
3350c801ae
Merge pull request #1264 from pskwarlo/tsadcp
...
Add test_standby_activate_different_cache_path test
2022-08-08 17:34:30 +02:00
Pawel Skwarlo
32a87f1e0e
Test for activating different cache path
...
Signed-off-by: Pawel Skwarlo <pawel.skwarlo@intel.com>
2022-08-08 14:54:47 +00:00
Robert Baldyga
b01b1c7c4f
Merge pull request #1282 from pdebski21/mark_standby_injection_tests
...
Add CI marks to standby fault injection tests
2022-08-06 13:45:43 +02:00
Robert Baldyga
f0991a4d0a
Merge pull request #1291 from pdebski21/test_fixes4
...
Test fixes
2022-08-06 13:36:28 +02:00
Piotr Debski
11b7f081f1
Fix for test test_interrupt_core_remove
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-08-01 13:54:21 +02:00
Karolina Rogowska
e437523622
Merge pull request #1284 from pdebski21/include_standby_tests_ci_scope
...
Include standby tests for CI scope
2022-07-27 12:38:35 +02:00
Michal Mielewczyk
c13dd5bc88
tests: improve standby fault injection tests
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-07-25 13:00:35 +02:00
Piotr Debski
d678612c35
Include standby tests for CI scope
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-25 10:31:06 +02:00
Robert Baldyga
c899abe1b3
Add missing license headers
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-07-22 09:17:16 +02:00
Piotr Debski
5dfe5aa611
Add CI marks to standby fault injection tests
...
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-20 11:26:26 +02:00
Krzysztof Majzerowicz-Jaszcz
fce070cace
Fix for tests using get_metadata_size()
...
Since OCF has changed how metadata size is reported (OCF PR #744 ),
get_metadata_size() became get_metadata_size_on_device() and tests
using it are changed accordingly.
OCF version with required changes included in this commit
Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-07-07 09:37:49 +02:00
Krzysztof Majzerowicz-Jaszcz
09d36d5e11
API fix for casadm standby init
...
Cache line size parameter is handled inconsistently in standby init and
start cache methods.
This patch fixes this inconsistency so both methods accept a proper
CacheLineSize object.
Some of the existing tests needed fixing as well, as included in this
patch.
Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-07-05 20:25:05 +02:00
pskwarlo
3ff56e77de
Test for activating the same cache path
...
Signed-off-by: Pawel Skwarlo <pawel.skwarlo@intel.com>
2022-07-04 10:59:58 +02:00
Katarzyna Łapińska
685b68516a
Merge pull request #1202 from anikielx/test_parallel_core_flushing
...
Add test_parallel_core_flushing
2022-05-24 13:56:27 +02:00
Adriana Nikelska
7084137dcb
Add test_parallel_core_flushing
...
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-05-13 10:26:45 +02:00
Michal Mielewczyk
00b3464644
tests: test_activate_neg_core_size
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-25 15:11:05 +02:00
Michal Mielewczyk
150c20608c
tests: test_activate_incomplete_cache
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-25 15:11:05 +02:00
Michal Mielewczyk
f05443c06b
tests: more meaningful name for test_standby.py
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-25 11:18:18 +02:00
Karolina Rogowska
70834a74cd
Merge pull request #1184 from mmichal10/test-standby-neg-cache-id
...
Test standby neg cache
2022-04-21 12:33:48 +02:00