Tony Asleson
d0f94e763d
lvmdbustest: Add test for property "Get"
...
We typically use "GetAll", so add test for "Get" and check values.
2022-06-30 10:55:16 -05:00
Tony Asleson
73121e3f07
lvmdbustest: Increase number of LVs
...
As storage is getting faster, we need to create more LVs to pass this test.
2022-06-30 10:55:16 -05:00
Tony Asleson
8fa8dfdb8c
lvmdbustest: Correct comment spelling/grammar
2022-06-30 10:55:16 -05:00
Tony Asleson
55059e002a
lvmdbustest: Test job remove path when job not complete
2022-06-30 10:55:16 -05:00
Tony Asleson
b3d7aff6a3
lvmdbusd: Fix env variable LVM_DBUSD_TEST_MODE
...
Make it more logical.
2022-06-30 10:55:16 -05:00
Tony Asleson
47c61907b4
lvmdbusd: Change unit test vdo minimum size
2022-06-30 10:55:16 -05:00
Zdenek Kabelac
8a550fa3e8
tests: test_pv_symlinks works only with /dev dir
...
Skip test with LVM_TEST_DEVDIR != /dev
2021-03-28 00:21:38 +01:00
Zdenek Kabelac
1f7bd719d0
tests: restore removed prefix
...
During debugging this prefix was unintentionally lost, restore.
2021-03-27 23:19:08 +01:00
Zdenek Kabelac
93336685f6
tests: update dbus test_nesting
...
Test has to use PV with suffix pv[0..9] otherwise
it's ignored by test suite filter.
Better fix for VG names to use prefix LVMTEST.
Skip the test for runs without LVM_TEST_DEVDIR != /dev
2021-03-26 20:39:41 +01:00
Zdenek Kabelac
25c665d555
tests: dbus update
...
Always use PREFIX for vg header - all tests must use this prefix,
VGs without are not allowed.
Modify pv_symlink test - as the test was checking unsupportable
combination - since lvm2 commands withing testsuite are only
allowed to manipulate with /dev/mapper/LVMTESTXXXX path -
nothing else allowed and fails on being filtered.
2021-03-26 13:13:26 +01:00
Vojtech Trefny
8f1068c02d
lvmdbusd: Add support for LVM writecache
2020-08-06 13:54:34 -05:00
Vojtech Trefny
c496ba6505
lvmdbusd: Add function to convert LV into a VDO pool
2020-01-09 13:07:55 -06:00
Vojtech Trefny
c3ef41f620
lvmdbusd: Add VDO enable/disable compress & dedup
...
Added methods to vdo pool interface to allow enabling and
disabling of VDO:
* Compression
* Deduplication
2020-01-09 13:07:47 -06:00
Marian Csontos
a2a993d995
tests: VDO detection in dbus tests
2019-12-16 12:06:42 +01:00
Tony Asleson
508d1808b0
lvmdbustest.py: Use local data instead of fetching
...
Avoid making more dbus calls to get information we already have. This
also avoids us getting an error where a dbus object representation is
being deleted by another process while we are trying to gather information
about it across the wire.
2019-10-30 10:38:40 -05:00
Tony Asleson
f91df163e2
lvmdbustest.py: Improve concurrent test handling
...
Filter out LVs too, so that we can run more than 1 instance of the
unit test at the same time.
2019-10-30 10:38:40 -05:00
Tony Asleson
f961311436
lvmdbustest.py: Add tests for LV interface
...
Add tests for all the different LV types with the standard LV dbus
interface. These tests shook out a couple of new bugs.
2019-10-30 10:38:40 -05:00
Tony Asleson
9e15c83673
testlib.py: Add interface instance vars.
2019-10-30 10:38:40 -05:00
Tony Asleson
b7aab9ba59
testlib.py: WS corrections
2019-10-30 10:38:40 -05:00
Tony Asleson
89373761c8
lvmdbustest.py: Add basic vdo test
2019-10-30 10:38:40 -05:00
Tony Asleson
ed7e365ae5
testlib.py: Correct dbus signature verification
...
This allows us to fully verify introspection data matches what we are
getting.
2019-10-30 10:38:40 -05:00
Tony Asleson
5971da2c72
lvmdbusd: VDO Pool LV representation
...
VDO pool LVs are represented by a new dbus interface VgVdo. Currently
the interface only has additional VDO properties, but when the
ability to support additional LV creation is added we can add a method
to the interface.
2019-10-30 10:38:40 -05:00
Tony Asleson
455498f206
lvmdbustest.py: Create common func. _create_cache_lv
2019-10-30 10:38:40 -05:00
Tony Asleson
c786636afb
lvmdbustest.py: Add nested helper function major_minor
2019-10-30 10:38:40 -05:00
Tony Asleson
e1d3a6c552
lvmdbustest.py: WS corrections
2019-10-30 10:38:40 -05:00
Tony Asleson
5b224d58f7
lvmdbustest.py: Add cache LV rename test
2019-10-30 10:38:40 -05:00
Tony Asleson
9d2ef05c5d
lvmdbusd: Add cfg.vdo_support
...
Will be used to add vdo interfaces on demand.
2019-10-30 10:38:40 -05:00
Tony Asleson
ceb808d26f
lvmdbustest.py: Remove 2 TODOs
...
This issue has been resolved, sizes > 2**32-1 not supported.
2019-10-30 10:38:40 -05:00
Tony Asleson
c5f4f2efb6
lvmdbustest.py: Add func. _pv_scan
2019-10-30 10:38:40 -05:00
Tony Asleson
69d4847975
lvmdbustest.py: Use existing _create_lv
2019-10-30 10:38:40 -05:00
Tony Asleson
293f6d2795
lvmdbustest.py: Add func. _create_thin_lv
2019-10-30 10:38:40 -05:00
Tony Asleson
a4666f63ad
lvmdbustest.py: Add func. _all_pv_object_paths
...
This is needed in a number of places.
2019-10-30 10:38:40 -05:00
Tony Asleson
b8d4969117
lvmdbustest.py: Add function for lv path check
2019-10-30 10:38:40 -05:00
Tony Asleson
22a22a735f
lvmdbusdtest.py: Use common function for tag add
2019-10-30 10:38:40 -05:00
Tony Asleson
62136c056a
lvmdbustest.py: Remove duplicate setup code
...
Remove the same copy & pasted code which simply creates a VG to
use.
2019-10-30 10:38:40 -05:00
Tony Asleson
bafe5d15b1
lvmdbusd: Add check for reserved name '_vdata'
...
Added for vdo support.
2019-10-30 10:38:40 -05:00
Tony Asleson
b7c64fe8e2
lvmdbustest.py: Add blurb about scan_lvs = 1
...
When developing and testing on a local system, to get the unit
test to pass the test_nesting test, editing the test conf will achieve
the success too.
2019-10-30 10:38:40 -05:00
Tony Asleson
a7034fa420
tests/dbus: Re-enable nesting and pvcreate via symlink
...
If we are running the test where the device is /dev/* we will will
run the unit tests 'test_nesting' and 'test_pv_symlinks'. Otherwise
we will skip them.
2018-12-20 10:27:30 -06:00
Zdenek Kabelac
6029d6d8d8
tests: disable symlink test
...
It's quite unclear what the test is meant to do - disable it just like
within python test.
2018-05-21 11:59:39 +02:00
Zdenek Kabelac
b2574c2f3a
python: use // for integer division
2018-05-18 16:25:44 +02:00
Zdenek Kabelac
43fb32e761
python: use python3 paths directly
...
Do not use /usr/bin/env for path of python3 as this is seen
as 'unwanted' and should be avoided.
2018-05-18 16:25:44 +02:00
Marian Csontos
512b2adc77
test: D-Bus test_nesting requires filter
2017-11-09 11:57:59 +01:00
Marian Csontos
223c594f0e
test: Fix dbus testing using testsuite
...
- Must reread all objects as PVs might be removed.
- Never consider testsuite provided PVs nested, or tearDown fails to
remove any outstanding VGs on them.
2017-05-26 15:39:20 +02:00
Marian Csontos
7687ab82c8
test: Use _pv suffix for nested devices
...
Testsuite uses global_filter to accept only test devices with
suffix matching /_pv[0-9_]*$/ set by generate_config in aux.sh.
2017-05-26 08:33:39 +02:00
Tony Asleson
fcce7e1660
lvmdbustest.py: Add PV symlink testing
...
We fixed this issue once before and it's back, add a test to make
sure it never comes back again!
https://bugzilla.redhat.com/show_bug.cgi?id=1318754
https://bugzilla.redhat.com/show_bug.cgi?id=1445654
2017-05-05 10:30:06 -05:00
Tony Asleson
e50fb06792
lvmdbustest.py: Add nested testing
...
Make sure when a LV is used as a PV the dbus service works correctly.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
2017-04-26 07:30:45 -05:00
Tony Asleson
6de3a9b4d0
lvmdbustest.py: Handle nested setUp & tearDown
...
Handle cleaning up correctly if a LV is used as a PV.
2017-04-26 07:10:18 -05:00
Tony Asleson
97b6486b27
lvmdbustest.py: Correct debug & assert order
...
If we do the assert first we won't get to the print statement.
2017-03-09 16:39:47 -06:00
Tony Asleson
ee7946ed82
lvmdbustest.py: Correct call_lvm doc
2017-03-09 16:39:47 -06:00
Tony Asleson
28754145d8
lvmdbustest.py: Add unit test for external PV create
...
Ensure a PV created outside of the dbus service is immediately found by
service user.
2017-03-09 16:39:47 -06:00