Commit Graph

687 Commits

Author SHA1 Message Date
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
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
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
Robert Baldyga
88dff6ead3
Merge pull request #1329 from robertbaldyga/seq-cutoff-threshold-issue
Fix seq cutoff min threshold calculation
2022-08-31 10:58:10 +02:00
Krzysztof Majzerowicz-Jaszcz
9c45851147 Fix for test_cas_startup_negative_missing_core
Bad parameter fix for this test

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-08-30 16:40:34 +02:00
Karolina Rogowska
06a72d16be fix test_partition_create_cas
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-30 16:33:38 +02:00
Robert Baldyga
49ef039f8c tests: Fix units in test_seq_cutoff_set_invalid_threshold test
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-08-29 17:48:30 +02:00
Karolina Rogowska
e7d1706082 fix test_ioclass_wlth
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-29 16:42:04 +02:00
Karolina Rogowska
eb1a4cc480
Merge pull request #1183 from jwirkus/add_fuzzy_tests_1
Add fuzzy statistics and fuzzy io class tests
2022-08-25 14:50:48 +02:00
Robert Baldyga
44ab772107
Merge pull request #1317 from KlaudiaJ/kj-ci-basic-test
Add to CI basic test for data integrity.
2022-08-23 20:21:48 +02:00
Klaudia Jablonska
5b01022430 Add to CI basic test for data integrity.
Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-08-23 16:40:24 +02:00
Rutkowski, Adam J
042e2a0b5b failover advanced tests implementation
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-08-23 12:23:36 +02:00
Karolina Rogowska
7882e26468 change test file name to "test_incremental_load_ci" (was duplicated)
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-22 15:21:38 +02:00
Rafal Stefanowski
2309a79d03 test: Add file permissions test
Test files and directories permissions of git repo,
build artifacts and installed files.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-08-22 14:32:24 +02:00
Karolina Rogowska
a1484b2412 fix tests: proper config file path
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-19 16:49:41 +02:00
Karolina Rogowska
8a4a2d9272
Merge pull request #1297 from pdebski21/tests_incremental_load
Tests incremental load - CI
2022-08-19 13:10:50 +02:00
Karolina Rogowska
47a08c4718
Merge pull request #1302 from pdebski21/test_simulation_startup_from_config
Simulate startup test
2022-08-19 11:57:02 +02:00
Karolina Rogowska
39e3a0f6a7
Merge pull request #1309 from DocentSzachista/OC1-277
tests: add test for adding invalid cores devices to caches
2022-08-19 11:55:57 +02:00
Piotr Debski
293de4a9eb Tests incremental load for ci
Tests rewritten form open-cas-linux/test/smoke_test/incremental_load

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-08-19 10:13:13 +02:00
Michał Mielewczyk
711dc59a81
Merge pull request #1311 from rafalste/dut_cas_version
Install particular CAS version on DUT before test
2022-08-18 15:34:33 +02:00
Karolina Rogowska
8b2a897275
Merge pull request #1293 from karolinavelkaja/fix_test_cli_help
tests: fix test_cli_help
2022-08-18 15:23:38 +02:00
Karolina Rogowska
af098d8f77
Merge pull request #1294 from rafalste/test_weak_modules
test: Add weak modules test
2022-08-18 15:23:29 +02:00
Karolina Rogowska
a48732bd4b
Merge pull request #1299 from pskwarlo/tmcf
Test manual casadm flush - CI.
2022-08-18 15:09:33 +02:00
Karolina Rogowska
b6cb200307
Merge pull request #1313 from karolinavelkaja/fix_tests_io_class_occupancy
fix tests: proper io class config path
2022-08-18 14:23:00 +02:00
Rafal Stefanowski
58ba99aa4a test/api: Check for particular CAS version before test
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-08-18 14:06:00 +02:00
Karolina Rogowska
4db29b2665
Merge pull request #1296 from pdebski21/tests_ci_recovery
Recovery tests - CI
2022-08-18 14:03:24 +02:00
Karolina Rogowska
9acaccf13f fix tests - proper io class config path
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-18 13:27:06 +02:00
Karolina Rogowska
0262065aab
Merge pull request #1289 from karolinavelkaja/fix_test_user_cli
tests: fix step "Try to zero metadata with 'sudo'." in test_user_cli
2022-08-18 11:02:38 +02:00
jwirkus
8ff10a48ba add fuzzy statistics and fuzzy io class tests
Signed-off-by: jwirkus <jakubx.wirkus@intel.com>
2022-08-16 18:20:16 +02:00
Karolina Rogowska
75ed4130f0
Merge pull request #1303 from DocentSzachista/OCI-264
add components version verification
2022-08-16 16:21:49 +02:00
Piotr Debski
d736388d63 Recovery tests - CI
Bash tests rewritten to test-framework form open-cas-linux/test/smoke_test/recovery

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-08-16 12:30:31 +02:00
Damian Raczkowski
d7482cea0a tests: add test for adding invalid cores devices to caches
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-08-12 23:04:29 +02:00
Pawel Skwarlo
4c1101027f Test manual casadm flush - CI.
Signed-off-by: Pawel Skwarlo <pawel.skwarlo@intel.com>
2022-08-12 08:26:43 +00:00
Michał Mielewczyk
f82719231d
Merge pull request #1305 from arutk/drbdcmf
Update DRBD API usage (create-md requires force param)
2022-08-12 08:39:32 +02:00
Rutkowski, Adam J
0a742831f4 Update DRBD API usage (create-md requires force param)
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
2022-08-11 13:21:53 +02:00
Piotr Debski
98e2cb02c5 Tests fixes for test_write_fetch_partial_misses and test_write_fetch_full_misses
correct base device path - fixes for test_write_fetch_partial_misses and test_write_fetch_full_misses

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-08-11 12:30:35 +02:00
Piotr Debski
fc07d06c7b Simulate startup test
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-08-10 15:05:34 +02:00
DocentSzachista
15d5809507 tests: add components version verification test
Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
2022-08-10 00:13:10 +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
Robert Baldyga
17fe6976bc
Merge pull request #1295 from pskwarlo/tcp
Test cleaning policy.
2022-08-06 09:48:32 +02:00
Pawel Skwarlo
d7f80d25af Black module code formatting fix.
Signed-off-by: Pawel Skwarlo <pawel.skwarlo@intel.com>
2022-08-04 15:28:20 +00:00
Pawel Skwarlo
2df39d052d Test cleaning policy.
Signed-off-by: Pawel Skwarlo <pawel.skwarlo@intel.com>
2022-08-04 15:21:57 +00:00
Karolina Rogowska
ed93873bd8 fix test_cli_help
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-04 12:19:41 +02:00
Karolina Rogowska
6d57168de4 fix step "Try to zero metadata with 'sudo'." in test_user_cli
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-08-04 12:17:13 +02:00
Karolina Rogowska
b987fb32a2
Merge pull request #1290 from karolinavelkaja/fix_test_check_number_of_processes
tests: fix test_check_number_of_processes
2022-08-03 16:47:36 +02:00
Rafal Stefanowski
70c8df40f3 test: Add weak modules test
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-08-01 15:19:25 +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
Karolina Rogowska
170f62a2ba fix test_check_number_of_processes
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-07-26 16:57:13 +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
9081ce3bb6
Merge pull request #1286 from robertbaldyga/license-headers-__init__.py
Add missing license headers
2022-07-22 14:48:00 +02:00
Karolina Rogowska
606cc14ba9 add basic test for starting cas for CI
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-07-22 09:32:50 +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
Robert Baldyga
f54a5e4be1
Merge pull request #1283 from mmichal10/test-wlth
tests: add test_ioclass_wlth test
2022-07-21 13:58:48 +02:00
Robert Baldyga
bf822ada23
Merge pull request #1279 from jfckm/startup-negative-tests
Startup negative tests
2022-07-21 13:57:38 +02:00
Michal Mielewczyk
c3e5ea86d7 tests: add test_ioclass_wlth test
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-07-21 12:57:30 +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
Robert Baldyga
5190c1dd8b
Merge pull request #1236 from KlaudiaJ/standby-start-stop
Tests: Add test_standby_start_stop
2022-07-18 11:16:54 +02:00
Jan Musial
6ca22c380d tests: Negative CAS boot config tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-07-18 11:01:53 +02:00
Jan Musial
301e5208df test api: Add clean-up for open-cas.service drop-in files
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-07-18 11:01:26 +02:00
Michal Mielewczyk
3092e3bef3 tests: add test_failover_config_startup
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-07-18 09:43:03 +02:00
Michal Mielewczyk
7b9a7ddcfb tests: add test_cas_startup_lazy
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-07-18 09:43:03 +02:00
Klaudia Jablonska
866cb4d3ce Tests: Add test_ passive_start_stop
Test if cache can be started in standby state and stopped without activation.

Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
2022-07-15 17:05:56 +02:00
Karolina Rogowska
66bcc059ae
Merge pull request #1190 from katlapinka/ioclass
Add IO class dss tests
2022-07-14 13:08:28 +02:00
Robert Baldyga
7443c1e694
Merge pull request #1273 from jfckm/example-escape
Example test for EmergencyEscape
2022-07-14 12:38:45 +02:00
Robert Baldyga
09b9f28505
Merge pull request #1276 from pdebski21/test_fixes2
Fixes for tests
2022-07-13 16:37:44 +02:00
Robert Baldyga
a8e3dcc91a
Merge pull request #1270 from arutk/foats
failover advanced test scenarios
2022-07-12 15:31:10 +02:00
Piotr Debski
510394a66e invalid check for core device path in list caches
fix for tests test_remove_detached_cores and test_remove_inactive_devices

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-12 14:11:26 +02:00
Piotr Debski
28d471d04c remove inactive core fix in test_print_statistics_inactive
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-12 12:35:05 +02:00
Jan Musial
f97c0bb3d4 Example test for EmergencyEscape
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-07-11 16:36:30 +02:00
Adam Rutkowski
a8be9d4bf3 failover advanced test scenarios
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-07-11 14:15:13 +02:00
Jan Musial
6ad9e468c9 Tests scenarios for CAS startup incl failover
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-07-11 12:39:39 +02:00
Krzysztof Majzerowicz-Jaszcz
27d8a6c956 Implementation of test_cache_activation_time
This patch implements a test to check the performance of cache
standby-activate.

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-07-07 17:14:07 +02:00
Robert Baldyga
dc027bd368
Merge pull request #1269 from kmajzero/fix_test_with_metadata_size_calculation
Fix for tests using get_metadata_size()
2022-07-07 12:32:41 +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
Robert Baldyga
1b75bb2455
Merge pull request #1263 from pdebski21/test_standby_activate_with_corepool
Test standby activate with core from corepool
2022-07-06 15:57:44 +02:00
Piotr Debski
ee296dcdf0 Test standby activate with core from corepool
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-06 15:25:21 +02:00
Robert Baldyga
ede99f4db4
Merge pull request #1265 from pdebski21/fix_test_core_pool
Fix core pool tests
2022-07-06 11:18:47 +02:00
Karolina Rogowska
7dcc77bdec
Merge pull request #1262 from mmichal10/fix-discard-test
tests: fix test_trim_device_discard_support
2022-07-06 10:59:49 +02:00
Piotr Debski
e3dec000df Fix for core pool tests
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-06 10:41:19 +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
Robert Baldyga
e82b07746e
Merge pull request #1249 from Kgierszx/fix_active_cli_test
tests:fix_test_active_neg_cli_params
2022-07-05 12:08:49 +02:00
Michal Mielewczyk
304f09e171 tests: fix test_trim_device_discard_support
Instead of using workarounds, make sure to flush all the data to the disk

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-07-05 11:59:04 +02:00
Robert Baldyga
ea7ebe7237
Merge pull request #1229 from pskwarlo/faultinjection
Test for activating the same cache path
2022-07-05 09:50:55 +02:00
Kamil Gierszewski
e07bfd12ad tests:fix_test_active_neg_cli_params
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-07-04 16:13:40 +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
Kamil Gierszewski
6ac153e1ac tests: Fix DRBD cleanup
Signed-off-by: Kamil Gierszewski <kamilx.gierszewski@intel.com>
2022-06-29 17:14:32 +02:00
Piotr Debski
b7792bbb56 Tests standby init with preexisting metdata and filesystem
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-06-29 13:44:26 +02:00
Michal Mielewczyk
67aac6de1d tests: reformat test_trim_eviction
This commit doesn't introduce any changes to the flow of the tests.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-06-17 11:18:17 +02:00
Michal Mielewczyk
9ad1d878a2 tests: fix test_trim_eviction
Replace ddrescue with dd

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-06-17 11:16:37 +02:00
Adam Rutkowski
9d7afc4674
Merge pull request #1223 from mmichal10/fix-trim-test
tests: fix trim test
2022-06-10 16:30:25 +02:00
Adam Rutkowski
f1d22fab96
Merge pull request #1216 from mmichal10/failover-advanced-test
tests: Advanced failover test
2022-06-10 11:25:42 +02:00
Michal Mielewczyk
800d6a0eeb tests: fix trim test
Since XFS is quite lazy with sending discards, create additional file to ensure
that the requests are actually issued

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-06-09 14:50:02 +02:00
Michal Mielewczyk
15984f7368 tests: add test_functional_activate_twice_new_host
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-06-06 13:33:19 +02:00
Michal Mielewczyk
2358ae1af4 tests: add test_functional_activate_twice_round_trip
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-06-06 13:33:19 +02:00
Sonia BENDIG-Pszczolińska
6e053d1577
Merge pull request #1197 from katlapinka/ioclass-neg-config
Add IO class test for loading wrong IO class configuration
2022-06-06 08:40:04 +02:00
Katarzyna Lapinska
a495181adb Add IO class test for loading wrong IO class configuration
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2022-06-02 15:38:42 +02:00
Michał Mielewczyk
a4817fd5e3
Merge pull request #1195 from anikielx/progress_bar
Add progress bar tests
2022-06-02 14:14:45 +02:00
Michał Mielewczyk
5aafbd8d62
Merge pull request #1174 from anikielx/test_clean_load
Add test_clean_load
2022-06-02 14:04:04 +02:00
Michał Mielewczyk
62d91e922c
Merge pull request #1204 from anikielx/test_switch_cleaning_policy
Add test_switch_cleaning_policy
2022-06-02 13:56:44 +02:00
Michal Mielewczyk
93b27b7894 tests: test for support of different io sizes
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-06-01 14:52:59 +02:00
Adriana Nikelska
2c0b1e8311 Add test_switch_cleaning_policy
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-05-25 13:36:17 +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
Karolina Rogowska
5c48da5f72
Merge pull request #1206 from pdebski21/test_activate_neg_cache_line_size
Test standby activate with cache line size mismatch
2022-05-23 16:23:58 +02:00
Michal Mielewczyk
0fd9eeafa1 tests: add tests for propagating FLUSH signlas
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-05-23 11:11:54 +02:00
Piotr Debski
40fb2a916e Test standby activate with cache line size mismatch
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-05-18 09:52:42 +02:00
Michal Mielewczyk
9b42d936ca tests: exctract scsi_debug module API to the TF
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-05-18 09:31:40 +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
Karolina Rogowska
bc7375a953
Merge pull request #1191 from katlapinka/di-async-update
Update data integrity test for async method change in TF
2022-05-12 14:20:49 +02:00
Michał Mielewczyk
5e8cec9723
Merge pull request #1199 from mmichal10/example-drbd-test
Example drbd test
2022-05-12 13:21:28 +02:00
Klaudia Jablonska
d19a775f1e tests: example DRBD test
Signed-off-by: Klaudia Jablonska <klaudia.jablonska@intel.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-05-12 10:28:55 +02:00
Piotr Debski
80689baa81 Test activate without detach
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-05-11 09:59:49 +02:00
Michal Mielewczyk
11ba68ec6a test api: ram disk cleanup&teardown
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-05-06 12:24:28 +02:00
Michal Mielewczyk
0ba7f0f81e test api: drbd cleanup&teardown
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-05-06 12:24:28 +02:00
Adriana Nikelska
cb57e064b3 Add progress bar tests
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-05-05 11:28:47 +02:00
Katarzyna Lapinska
8b8b2bcc26 Add IO class dss tests
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2022-05-04 14:16:37 +02:00
Katarzyna Lapinska
7b1aa8ee74 Update data integrity test for async method change in TF
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2022-04-26 09:15:02 +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
Michal Mielewczyk
251485b7b0 tests: add test_activate_neg_cache_id
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-21 07:53:09 +02:00
Karolina Rogowska
a3e6284e4c
Merge pull request #1182 from mmichal10/test-standby-corrupt-md
Test standby corrupt md
2022-04-20 12:45:26 +02:00
Robert Baldyga
83227dff04
Merge pull request #1181 from karolinavelkaja/add_force_to_test_recovery_unplug_cache_raw
add force to start cache
2022-04-20 12:00:58 +02:00
Michal Mielewczyk
ca1da2510a tests: add test_activate_corrupted_after_dump
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-20 08:45:17 +02:00
Michal Mielewczyk
5dd65bb64b tests: add test_load_corrupted
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-20 08:45:17 +02:00
Michal Mielewczyk
ab99c08504 tests: add test_activate_corrupted
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-20 08:45:17 +02:00
Adriana Nikelska
d245c49cc3 Add test_clean_load
Signed-off-by: Adriana Nikelska <adrianax.nikielska@intel.com>
2022-04-19 12:03:32 +02:00
Piotr Debski
290a72054d Test start standby cache with mutually exclusive parameters
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-04-19 10:35:35 +02:00
Karolina Rogowska
c47cf47777 add force to start cache
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-04-14 14:20:47 +02:00
Michal Mielewczyk
66df560c4a tests: add test_standby_neg_cli_management
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-14 10:47:25 +02:00
Piotr Debski
927270cca1 Test standby activate with negative cli parameters
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-04-07 20:20:26 +02:00
Michal Mielewczyk
e0744fa230 tests: standby negative cli test
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-04-07 09:15:37 +02:00
Rafal Stefanowski
b14bf05ff8 Add missing license info
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:31:15 +02:00
Karolina Rogowska
f0c994934b
Merge pull request #1106 from mmichal10/test-discard-start
tests: fix test_trim_start_discard
2022-03-23 13:55:54 +01:00
Michal Mielewczyk
7abae88298 tests: refactor ioclass directory based test
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-23 08:08:46 +01:00
Michal Mielewczyk
e526345ef7 tests: fix test_trim_start_discard
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-22 07:45:47 +01:00
Michal Mielewczyk
e46b732b28 tests: test for propagating discard reqs to cache
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-21 11:48:45 +01:00
Michal Mielewczyk
5550dbaf09 tests: fix capabilities test
Adjust manner of calculating some of the traits to the newer kernel version.

New way of calculating them have been introduced in kernel with commit
97f433c3601a24d3513d06f575a389a2ca4e11e4.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-11 12:47:18 +01:00
Daniel Madej
5c16010061 Data Integrity test with device unplugged during IO
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-03-03 12:56:33 +01:00
Karolina Rogowska
6f4398cdea
Merge pull request #1066 from Deixx/insert-error
Fix insert error tests
2022-03-02 12:50:58 +01:00
Michal Mielewczyk
d44254586f tests: use greater file in recovery tests
To prevent flushing all dirty cache lines before the power shutdown, create
bigger file.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-25 14:36:13 +01:00
Michał Mielewczyk
2cc7c96305
Merge pull request #1068 from mmichal10/fix-trim-test
tests: fix trim eviction test
2022-02-22 11:56:30 +01:00
Michal Mielewczyk
6a33024304 tests: fix trim eviction test
Instead of creating a test file twice (once with `direct` flag and once with
`sync` flag), prepare it only once (with `sync` flag). Additionally allow
classifier to settle after the IO.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-21 09:14:43 +01:00
Karolina Rogowska
05b6922a74
Merge pull request #1067 from mmichal10/fix-flushing-test
tests: allow the flushing thread to flush
2022-02-18 15:43:03 +01:00
Karolina Rogowska
12f7355316
Merge pull request #1064 from Deixx/is-it-a-fix
Stopping unplugged cache - changed behavior
2022-02-18 15:10:44 +01:00
Michal Mielewczyk
2f5afff8f2 tests: allow the flushing thread to flush
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-18 12:28:53 +01:00
Karolina Rogowska
583af2e229
Merge pull request #1056 from karolinavelkaja/ioclass_id_as_condition_test_fix
fix for test_ioclass_id_as_condition - adding 1s delay before io
2022-02-18 11:27:09 +01:00
Daniel Madej
e18946d1b9 Fix insert error tests
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-17 16:36:34 +01:00
Robert Baldyga
3787957bdf
Merge pull request #1062 from mmichal10/fix-ioclass-tests
Fix ioclass tests
2022-02-17 15:16:09 +01:00
Robert Baldyga
9424df4e2b
Merge pull request #972 from Deixx/multidut
Multidut execution and example
2022-02-17 13:27:29 +01:00
Michal Mielewczyk
8ff5dcb364 tests: delay in directory based ioclass test
After setting directory based IO classification rule and creating the directory
sleep for a few seconds to allow the classifier to settle.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-17 09:21:39 +01:00
Karolina Rogowska
ddf1339adb fix for test_ioclass_id_as_condition
need to add delay before io - CAS not being able to resolve directory to inode so quickly
https://github.com/Open-CAS/open-cas-linux/issues/1046

Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-02-16 15:51:30 +01:00
Michal Mielewczyk
6ad0562b53 tests: more robust verififaction in ioclass tests
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-16 08:15:17 +01:00
Daniel Madej
82b8d0d323 Stopping unplugged cache - changed behavior
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-15 12:34:00 +01:00
Daniel Madej
baac399c43 Test updates addressing test fail false positives
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-15 11:48:05 +01:00
Karolina Rogowska
851cd2c940 test_seq_cutoff_multi_core improved to has 2 variants
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-01-14 14:59:37 +01:00
Slawomir Jankowski
0b299b7d96 Fix interruption tests
Add helper functions and use them in interruption tests.
Fix tests descriptions and messages.
Update test according to current behaviour of cache mode switching.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-11-08 11:27:45 +01:00
Daniel Madej
6ad8f7b13b Example test for multidut execution
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2021-10-29 13:06:39 +02:00