Slawomir Jankowski
b72cfff6a9
Overload equality operator in cleaning policy params' classes
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 08:46:13 +01:00
Sławomir Jankowski
4bc64e6471
Merge pull request #323 from katlapinka/flush-progress
...
Add method to get flushing progress
2020-02-11 13:26:27 +01:00
Katarzyna Lapinska
7654e10c96
Add method to get flushing progress
2020-02-11 12:36:47 +01:00
Katarzyna Lapinska
f11a8a5ae3
Rename cache mode trait lazy flush to lazy writes
2020-02-10 11:49:30 +01:00
Daniel Madej
081a05a635
Get cache modes which have any of the provided traits
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-02-07 16:53:09 +01:00
Daniel Madej
475ddb0050
Get all cache modes which traits include those provided as argument
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-02-07 13:04:14 +01:00
Katarzyna Łapińska
5b0413b3fd
Merge pull request #266 from Ostrokrzew/volumes
...
Add volume test
2020-02-06 11:41:08 +01:00
Slawomir Jankowski
a1d7297bb7
Update cli messages module
...
Add new error messages.
Change 'TestRun.fail' to 'TestRun.LOGGER.error'.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-31 15:02:42 +01:00
Ostrokrzew
3c26bb05d7
Add volume test
...
Test for preserving partitions from core device.
Test for preserving partitions at core device, which were made on exported object,
after stopping cache.
Also added two fields to 'Core' class which allows it to use 'create_partitions' function.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-31 11:41:57 +01:00
Katarzyna Łapińska
5c77bbd00b
Merge pull request #303 from rafalste/tests_set_get_params
...
Add tests for casadm --set-param and --get-param options check
2020-01-31 10:28:19 +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
Katarzyna Lapinska
8204fa8a56
Update Init config usage and remove WI cache mode
2020-01-27 10:34:05 +01:00
Daniel Madej
25b0f0dc55
Test API: Statistics refactor
...
Keep all statistics names in one place
Differentiate Core/Cache IO class stats
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-24 16:41:05 +01:00
Katarzyna Łapińska
ed6cf8a76b
Merge pull request #299 from Deixx/stats-flat
...
Refactor statistics
2020-01-24 08:57:54 +01:00
Daniel Madej
9ad85e3338
Update statistics usage to use stats classes
...
Rename set_statistics_deprecated to set_statistics_flat, as flat
statistics are sometimes more useful and actually not deprecated.
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-23 13:39:51 +01:00
Katarzyna Lapinska
4c66fa8b1b
Add cache mode traits
2020-01-23 11:56:51 +01:00
Katarzyna Łapińska
f36e7bf3d6
Merge pull request #293 from Deixx/ioclass-stats-update
...
Updated parsing IO class statistics for cache/core
2020-01-22 07:42:11 +01:00
Rafal Stefanowski
88efaa1940
Fix timedelta precision by importing attotimedelta
...
total_seconds() method from Python's datetime class outputs a Float
precision number which for some numbers multiplied by 10^n gives wrong
values.
total_seconds() method from attotime class wraps a native timedelta
object and outputs a Decimal precision number which fixes this issue.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-21 16:43:54 +01:00
Daniel Madej
8bfa2ad83e
Updated parsing IO class statistics for cache/core
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-21 16:28:17 +01:00
Rafal Stefanowski
1d7dce4b50
Fix duplicated __eq__ function
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-20 17:05:42 +01:00
Daniel Madej
f04a5e6093
Merge pull request #287 from rafalste/fix_duplicated_eq_func
...
Fix duplicated functions and minor PEP8 formatting issues
2020-01-20 16:14:12 +01:00
Rafal Stefanowski
cf67105489
Fix duplicated functions and minor formatting PEP8 issues
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-20 15:18:07 +01:00
Robert Baldyga
74aac27006
Merge pull request #255 from rafalste/tests_cleaning_policy
...
Add tests for cleaning policies operation
2020-01-17 17:22:08 +01:00
Michal Rakowski
9acb679ede
installer.py: determine if CAS is installed on modules presence instead of casadm only
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 15:02:48 +01:00
Michal Rakowski
d9c0c0e83a
cas_module.py: fixup load/unload methods
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 15:02:48 +01:00
Katarzyna Lapinska
53664937ba
Create init config class representation
2020-01-14 09:35:30 +01:00
Rafal Stefanowski
afc513d432
Add minor improvements in tests API
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-09 15:31:36 +01:00
Robert Baldyga
a38f76d28a
tests: Update TF - plugins
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-07 08:59:00 +01:00
Daniel Madej
0d663a37f1
Merge pull request #230 from Ostrokrzew/init2
...
Cache configuration load - every mode - 1 cache 1 or 4 cores
2020-01-02 13:03:46 +01:00
Daniel Madej
b1bd3578db
Merge pull request #223 from mariuszbarczak/introducing-new-io-class-caching-rule-file-name-prefix
...
Introducing a new IO class caching rule - file name prefix
2019-12-30 10:57:47 +01:00
Robert Baldyga
7f86961447
tests: Add test for classification by file name prefix
...
Signed-off-by: Mariusz Barczak <mariusz.barczak@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-12-27 14:09:15 +01:00
Ostrokrzew
b6028a8787
Minor fixes in CAS API
...
Add casting to int in few cleaning policy params.
Fix few typos.
Add equation overload in cleaning policy params' classes.
Signed-off-by: Ostrokrzew <ostrokrzew@protonmail.com>
2019-12-23 11:47:13 +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
Daniel Madej
c51866989f
Merge pull request #224 from katlapinka/cli-msg-validate
...
Add API to validate CAS CLI messages
2019-12-19 12:32:09 +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
Daniel Madej
9cabf06ed4
Merge pull request #242 from rafalste/fix_api_minor_issues
...
Fix minor issues in API
2019-12-18 14:15:09 +01:00
Rafal Stefanowski
b6d9892499
Add string representation for cleaning policy
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-12-18 10:17:27 +01:00
Rafal Stefanowski
a9f74d43a2
Fix Time class output
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-12-18 10:17:06 +01:00
Rafal Stefanowski
b1c90bf574
Fix typo in casadm_parser.py
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-12-18 10:16:27 +01:00
Jan Musiał
743de9a438
Merge pull request #225 from katlapinka/cas-api-plug-and-cache-params
...
Adapt CAS API to handle disk plugging and fix for setting clean…
2019-12-18 09:01:45 +01:00
Katarzyna Lapinska
bc9fb51482
Add API to validate CAS CLI messages
2019-12-18 09:00:37 +01:00
Rafal Stefanowski
b1e653a61c
Add string representation for cache mode
...
When relating to CacheMode enum, returned value was for example "CacheMode.WT"
which doesn't look very pretty in logs or output.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-12-16 11:13:35 +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
Rafal Stefanowski
1899b1e853
Add new statistics API
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-12-11 16:00:03 +01:00
Katarzyna Łapińska
60200e9fb8
Merge pull request #203 from robertbaldyga/dont-copy-results
...
tests: Don't copy previous results to DUT during CAS installation
2019-12-03 09:00:35 +01:00
Rafal Stefanowski
c168244fa6
Fix attribute reference
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-12-02 14:35:08 +01:00
Katarzyna Łapińska
c5af20daee
Merge pull request #185 from Deixx/test-fixes
...
Test fixes
2019-11-29 15:10:12 +01:00
Robert Baldyga
263f3137da
Raise exception instead of using TestRun.exception()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-29 13:04:25 +01:00
Daniel Madej
695d9a688f
Changes after review
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-11-27 15:27:48 +01:00