Commit Graph

604 Commits

Author SHA1 Message Date
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
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
Jan Musial
0d3b65c6c6 test api: Utility to shorten CAS boot timeout in tests
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
Michal Mielewczyk
aa5e11df9b test api: utility for removing opencas.conf file
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
be8cbcfe43 API fix obligatory parameter in core try add - (core id)
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-07-06 10:41:19 +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