Commit Graph

49 Commits

Author SHA1 Message Date
Kamil Gierszewski
db3dc068f8
test-api: refactor casadm to use TestRun cache/core list
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2025-01-10 14:54:45 +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
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
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
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
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
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
b8d6f8403e
test-api: fix cache mode change
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-23 12:54:12 +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
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
d48e9fc80d
test-api: update cas api
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
2024-09-10 10:24:38 +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
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
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
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
Karolina Rogowska
d706619187 cas api: add casadm commands for standby cache
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-02-23 00:36:18 +01:00
Rafal Stefanowski
acec05060d Fix license
Change license to BSD-3-Clause

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-10-28 12:46:42 +02:00
Robert Baldyga
4b084ea082
Merge pull request #932 from karolinavelkaja/stop_all_caches_refactor
cosmetic changes for exception logging in stop_all_caches()
2021-09-10 09:16:31 +02:00
klapinsk
d4b3f26241 Remove inactive commands tests and API update
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2021-09-08 13:03:57 +02:00
Karolina Rogowska
249e0a5a7e cosmetic changes for exception logging in stop_all_caches()
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2021-08-20 15:44:32 +02:00
Robert Baldyga
ff4dca4622 Add sequential cutoff promotion count to test API
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-23 07:55:46 +01:00
Robert Baldyga
96a6b02c79
Merge pull request #658 from katlapinka/script-remove-core
Add remove core script command to tests API
2021-03-06 19:58:07 +01:00
Slawomir Jankowski
7a9405a58e Update zero metadata API and tests
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-02-25 14:41:39 +01:00
Katarzyna Lapinska
b8158f9ceb Add remove core script command to tests API
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2021-02-16 11:47:11 +01:00
Rafal Stefanowski
43f43068ad Update copyright statements (2021)
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-01-21 13:15:38 +01:00
Slawomir Jankowski
17f440de10 Update TF and functional tests API
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-22 16:29:33 +01:00
Daniel Madej
f3dd047917 Reload cas_cache if its params need to be changed
Before starting cache, the method checks if current kernel module params
are equal to configured (or default if configuration is default). If not
then kernel module is reloaded with proper parameters.

Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-10-13 09:36:44 +02:00
Robert Baldyga
960cf6e085
Merge pull request #479 from Ostrokrzew/core_rem
Add tests for a core removal when the other one is mounted
2020-08-26 11:02:25 +02:00
Katarzyna Lapinska
dfdbd9abbe Add detach command to test's API and fix for attach command
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-08-24 12:41:03 +02:00
Slawomir Jankowski
1f437a065f Fix adding core to cache with custom ID
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-13 13:56:11 +02:00
Slawomir Jankowski
52fb80d7b4 Remove formatting NVMe from test's API
Add metadata zeroing to test's API

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-10 19:14:41 +02:00
Michal Mielewczyk
25b1fb086e test api: fix purge command wrapper name
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-25 05:11:29 -04:00
Michal Mielewczyk
c28babde8b tests: Wrappers for purge commands
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-12 11:32:01 -04:00
Jan Musial
8d86cdfa3b Allow whole range of ALRU parameters in test API
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-03-11 11:27:48 +01:00
Daniel Madej
ccbce2a9b7 Test API: Filesystem on core + set sequential cut-off fix
Copy exported object's filesystem to core device on fs creation
Fix set_param_cutoff function

Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-31 12:55:31 +01:00
Rafal Stefanowski
15c8973f45 Add tests for casadm --set-param and --get-param options check
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-27 12:07:12 +01:00
Michal Rakowski
135863e744
Merge pull request #235 from katlapinka/add-detached-core
Enable try-add method in CAS test-framework API
2019-12-20 09:54:03 +01:00
Katarzyna Lapinska
ad90a69284 Enable try-add method in CAS test-framework API 2019-12-19 07:55:06 +01:00
Jan Musial
3908ab261b Minor fixes in CAS API
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-12-18 15:02:52 +01:00
Katarzyna Lapinska
70955c1274 Adapt CAS API to handle disk plugging and fix for setting cleaning/cutoff params 2019-12-13 09:14:09 +01:00
Katarzyna Łapińska
c5af20daee
Merge pull request #185 from Deixx/test-fixes
Test fixes
2019-11-29 15:10:12 +01:00
Michał Mielewczyk
43a4a92821
Merge pull request #195 from rafalste/flush_handling
tests: Improve flush handling during cache mode change
2019-11-25 16:53:51 +01:00
Rafal Stefanowski
901fc402fd tests: Improve flush handling during cache mode change
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-11-25 09:27:59 +01:00
Michal Rakowski
56b9ec1794 tests: sequential cut off related methods fixup
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-11-20 07:52:06 +01:00
Daniel Madej
034fa9b61c Use CmdException for casadm outputs
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-11-12 18:55:22 +01:00
Robert Baldyga
4fb82abeca Move OCL tests from test-framework repository
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-18 15:27:21 +02:00