Commit Graph

516 Commits

Author SHA1 Message Date
Slawomir Jankowski
873be2bf3a Fix test for casadm help
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-19 15:56:12 +02:00
Robert Baldyga
ed0052f502 Merge pull request #486 from katlapinka/trim-eviction
Add test verifying if trim request does not cause eviction on CAS device
2020-08-19 15:48:03 +02:00
Robert Baldyga
fce22f9d19 Merge pull request #481 from Ostrokrzew/rename
Change duplicated name of test to avoid conflicts
2020-08-19 15:47:21 +02:00
Katarzyna Lapinska
0b455ada64 Add test verifying if trim request do not cause eviction on CAS device
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-08-17 14:30:08 +02:00
Katarzyna Lapinska
4a2ead3934 Add trim stress test
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-08-17 14:27:48 +02:00
Robert Baldyga
0c64a44cf5 Merge pull request #495 from Ostrokrzew/zero_meta
Swap formatting NVMe to metadata zeroing in functional tests CAS API
2020-08-17 10:47:57 +02:00
Katarzyna Lapinska
1714a9855c Add reboot if executor can not connect to DUT in test prepare
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-08-17 09:19:31 +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
13c8525448 Test for removing core when the other one is mounted
and core numeration is custom - each core ID starts with the same digit.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-13 13:55:46 +02:00
Slawomir Jankowski
b8e840ceab Test for removing core when the other one is mounted
and core numeration is automatic - each core ID starts with different digit.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-13 13:55:07 +02:00
Slawomir Jankowski
77ade8fda2 Change duplicated name of test to avoid conflicts
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-13 13:43:38 +02:00
Slawomir Jankowski
4b39811c43 Add 'os_dependent' marker to tests
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-08-12 15:39:03 +02:00
Robert Baldyga
f16077c4ff Update TF: random seed and test summary improvements
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-08-12 13:33:48 +02:00
Robert Baldyga
e7e1abd89b Merge pull request #499 from imjfckm/fix-no-marks-tests
Fix TF breaking when no pytest marks present
2020-08-11 16:11:45 +02:00
Jan Musial
19781c95f7 Fix TF breaking when no pytest marks present
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-11 15:36:57 +02:00
Robert Baldyga
1ca64d03e7 Merge pull request #494 from mmichal10/test-purge-ioclass
Test purge ioclass
2020-08-11 14:50:53 +02:00
Michal Mielewczyk
12426cfd3a tests: test for stats after purge
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-08-11 07:16:36 -04:00
Jan Musial
31fda78be4 Use parametrizex in tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-11 13:05:15 +02:00
Jan Musial
d75c49aced Enable TF pair-testing parametrization
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-11 13:03:19 +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
863947ddb8 test api: implement UsageStats arithmetic ops
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-08-10 10:30:36 -04:00
Jan Musial
ebd1c0075b Add switch for specifying buildtype in performance tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-06 14:01:30 +02:00
Jan Musial
46b8ec3c03 Performance test for 100% hit ratio
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-06 14:01:30 +02:00
Jan Musial
06322f6199 Add PerfContainer for storing performance results
Implement new package which primary goal is to collect and validate
performance metrics in managable way then dump them in JSON form for
further processing/storage.

Example usage:

container = PerfContainer()

container.insert_config_param("20.03.0000", ConfigParameter.CAS_VERSION)
container.insert_cache_metric(20000000, IOMetric.read_IOPS)

with open("perf.json", "w") as f:
    json.dump(container.to_serializable_dict(), f)

Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-08-06 14:01:30 +02:00
Robert Baldyga
3acc720cb0 Merge pull request #489 from robertbaldyga/tests-fix-cas-version-parsing
tests: Fix CAS version parsing
2020-08-05 21:54:59 +02:00
Robert Baldyga
11892d56a9 tests: Fix CAS version parsing
As CAS version format changed to custom one, we need to parse it
in non-default way.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-08-05 15:19:29 +02:00
Katarzyna Lapinska
fdf095ea15 Remove partitions from disk after unmounting them
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-08-05 12:00:44 +02:00
Robert Baldyga
6ef7195950 Merge pull request #460 from katlapinka/init-tests
Add init test with different runlevels and test for management device status
2020-07-27 18:35:36 +02:00
Robert Baldyga
5baa34ab41 Merge pull request #419 from Ostrokrzew/ex_conf
Update 'example_config' after changes in TF
2020-07-27 18:35:09 +02:00
Robert Baldyga
124037cf55 Merge pull request #324 from Ostrokrzew/signal
Tests for FLUSH and FUA signals
2020-07-27 18:33:37 +02:00
Slawomir Jankowski
93ace7d520 Check for FLUSH and FUA signals sent to multilevel cache in lazy-write modes
Add test for checking for logs of requests insyslog from OpenCAS
when SCSI_DEBUG module is base-level core device in multilevel cache.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-07-21 10:28:56 +02:00
Slawomir Jankowski
c01956d0e1 Check for FLUSH and FUA signals sent to cache device in lazy-write modes
Add test for checking for logs of requests insyslog from OpenCAS
when SCSI_DEBUG module is cache device.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-07-21 10:28:56 +02:00
Slawomir Jankowski
153eb19c9b Check for FLUSH and FUA signals sent to core device in lazy-write modes
Add test for checking for logs of requests in syslog from OpenCAS
when SCSI_DEBUG module is core device.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-07-21 10:28:56 +02:00
Katarzyna Lapinska
fb8860bf39 Initialize tests cleanup
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-07-15 12:57:03 +02:00
Katarzyna Lapinska
6be612be78 Add init test with different runlevels and test for management device status
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-07-14 13:55:55 +02:00
Robert Baldyga
94dda3a7d5 Merge pull request #442 from katlapinka/stress-dirty-shutdown
Add new stress dirty shutdown test
2020-07-14 13:47:49 +02:00
Slawomir Jankowski
5bc85049a2 Update 'example_config' after changes in TF
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-07-13 12:10:38 +02:00
Robert Baldyga
cfb915867a Merge pull request #449 from katlapinka/dev-capabilities
Add test for devices' capabilities
2020-07-12 09:28:15 +02:00
Robert Baldyga
885ca70699 Merge pull request #456 from imjfckm/fix-force-reinstall
Change force-reinstall test option to behave properly
2020-07-12 09:28:01 +02:00
Robert Baldyga
9c6a4a393c Merge pull request #321 from Ostrokrzew/wb
Lazy-writes modes tests
2020-07-07 08:54:58 +02:00
Katarzyna Lapinska
b13403a9b9 Add test for devices' capabilities
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-07-07 08:40:07 +02:00
Jan Musial
711aa2fe47 Change force-reinstall test option to behave properly
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-07-03 11:53:31 +02:00
Katarzyna Lapinska
5aa1ca7d48 Add missing import to long DI tests 2020-06-29 14:36:02 +02:00
Michal Rakowski
4c3a07c13b tests: add cache start trim test
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-06-25 12:12:51 +02:00
Michal Rakowski
23aea2b7cc Test framework update & conftest fixup
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-06-24 14:40:15 +02:00
Katarzyna Lapinska
aeae7c9765 Add test for checking the ability of CAS to start cache instances upon system boot after dirty shutdown during IO workloads
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-06-22 16:49:49 +02:00
Katarzyna Lapinska
be288d2fac Kill existing fsck process to be able to manage partitions in test prepare
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
2020-06-17 09:03:45 +02:00
Slawomir Jankowski
9116864b92 Update Test-framework submodule
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-15 13:51:39 +02:00
Slawomir Jankowski
b12b0e52f6 Update wb throttling test after TF changes
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-15 13:49:49 +02:00
Slawomir Jankowski
9e5385009d Test for clean remove of core without fs from cache
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-15 13:48:21 +02:00