summaryrefslogtreecommitdiff
path: root/test/dbus
Commit message (Collapse)AuthorAgeFilesLines
* lvmdbusd: Add a flag to activate LVs in shared mode to Lv.ActivateVojtech Trefny2023-04-201-1/+1
|
* lvmdbustest: Correct env. logicTony Asleson2023-03-141-2/+2
| | | | Signed-off-by: Tony Asleson <tasleson@redhat.com>
* lvmdbustest: Add notes on error injection testingTony Asleson2023-03-101-0/+6
| | | | | Not doing this by default for automated build testing as it generates a lot of output and slows things down by another ~10%.
* lvmdbustest: Add env. variable to skip signal testingTony Asleson2023-03-101-0/+3
| | | | | This is currently need if we are collecting code coverage data as we don't handle this unit test correctly.
* lvmdbustest: Check for needed env. variablesTony Asleson2023-03-101-2/+6
|
* lvmdbustest: Don't use hard coded /tmp for error inject logTony Asleson2023-03-101-1/+1
|
* lvmdbustest: Shutdown cleanly with "exit"Tony Asleson2023-03-101-5/+20
| | | | | Make the error injection wrapper handle the exit case, so that we can clean up gracefully when instructed to do so.
* lvmdbustest: Only inject 1 missing key errorTony Asleson2023-03-101-3/+7
| | | | | | Previously we were injecting a missing key in the lv, vg, and pv. Given the order of processing in lvmdbusd, this prevented us from exercising all the error paths. Change to returning just 1 instead.
* lvmdbustest: Correctly set up env. for error injectionTony Asleson2023-03-101-0/+2
|
* lvmdbustest: open log file with "a"Tony Asleson2023-03-101-1/+1
| | | | So we retain the log across fork & exec and lvm shell testing.
* lvmdbustest: Test duplicate VG renameTony Asleson2023-03-031-0/+43
|
* lvmdbustest: Add more info on assertsTony Asleson2023-03-021-7/+9
|
* lvmdbustest: Don't hard code to /tmpTony Asleson2023-03-011-1/+1
| | | | During lvm testing they use an alternative tmp directory.
* lvmdbustest: Add more output for test_log_file_optionTony Asleson2023-03-011-1/+3
|
* lvmdbustest.py: Increase udev timeoutTony Asleson2023-03-011-2/+3
|
* lvmdbustest.py: Remove use of root_dir in globTony Asleson2023-02-271-3/+3
| | | | This feature has only been in python since 10/2021.
* lvmdbustest: Check and remove lvm debug collection filesTony Asleson2023-02-201-0/+13
| | | | | In setup/teardown ensure we check for and remove any lvm debug collection, to prevent FS from filling up.
* lvmdbustest: Add test to ensure error collectionTony Asleson2022-11-291-0/+21
| | | | Recreates https://bugzilla.redhat.com/show_bug.cgi?id=2145114
* lvmdbustest: Add test for copy signatureTony Asleson2022-10-201-11/+60
| | | | | Add test to ensure we detect when a PV signature is copied to a block device.
* lvmdbustest: Add test for wipefsTony Asleson2022-10-201-0/+34
| | | | | Ensure that if an external program or user calles wipefs on a PV that we correctly update the state of the daemon.
* lvmdbusd: Correct env. variableTony Asleson2022-09-301-1/+1
| | | | | Make this match the unit test expectation and the form we use for other env. variables.
* lvmdbustest: Add test to stress mode changingTony Asleson2022-09-221-5/+24
| | | | | Add a test to toggle from fork & exec to lvm shell repeatedly, to stress test it.
* lvmdbustest: Re-work setUpTony Asleson2022-09-221-6/+7
| | | | | | Place the addCleanup at the end as we don't want to go through clean up if we don't make it through setUp. If we don't do this we can remove VGs that we didn't create in the unit test.
* lvmdbustest: Refuse to remove a VG we didn't createTony Asleson2022-09-221-1/+5
| | | | | One of our previous commits introduced the side effect that we could inadvertently remove a VG we didn't create, and lose data.
* lvmdbustest: Make vg name suffix more uniqueTony Asleson2022-09-221-1/+3
|
* lvmdbustest: Add wrapper for injecting errorsTony Asleson2022-09-161-0/+323
| | | | Useful for forcing lvmdbusd down error paths.
* lvmdbustest: Check for self.pvsTony Asleson2022-09-161-1/+1
| | | | If we don't make it through setUp, self.pvs will not exist.
* lvmdbustest: Move signals to lastTony Asleson2022-09-161-2/+2
| | | | | When we do the signal testing we default back to fork & exec. Put these on the end to maximize our lvm shell testing until we fix this proper.
* lvmdbustest: Utilize addCleanup in unit testTony Asleson2022-09-161-5/+3
| | | | | Register the clean up with addCleanup so we ensure clean_up gets run regardless of what happens in setUp.
* lvmdbustest: Skip test_nesting if scan_lvs is not enabledTony Asleson2022-09-161-0/+13
|
* lvmdbustest: Skip test_singleton_daemon running systemd svc.Tony Asleson2022-09-161-0/+2
|
* lvmdbustest: Add systemctl daemon startTony Asleson2022-09-161-1/+1
|
* lvmdbustest: Add test for ensuring only 1 instance of daemonTony Asleson2022-09-161-0/+8
|
* lvmdbustest: Add test_sigint testTony Asleson2022-09-161-0/+35
| | | | Get the daemon busy and send it SIGINT to ensure the daemon exits.
* lvmdbustest: Add optional option to _create_num_lvsTony Asleson2022-09-161-8/+12
| | | | This allows us to create the LVs async., thus queuing them up in daemon.
* lvmdbustest: Factor out tearDown implementation for re-useTony Asleson2022-09-161-4/+7
|
* lvmdbustest: Add DaemonInfo classTony Asleson2022-09-161-6/+176
| | | | | This class handles identifying daemon, sending signals to it, and starting it back up again.
* lvmdbusd: Correct typosTony Asleson2022-09-161-1/+1
|
* lvmdbustest: Add test removing incomplete jobTony Asleson2022-09-161-8/+30
| | | | | When you try to remove a job that is incomplete you get a dbus exception. Test for this error condition.
* lvmdbustest: Add test for external eventTony Asleson2022-09-161-0/+10
| | | | | Ensure that when we trigger an external event that we don't incorrectly handle multiple --config options.
* lvmdbustest: Add test for passing log file in optionsTony Asleson2022-09-161-2/+19
|
* lvmdbustest: nesting improvementsTony Asleson2022-09-161-4/+8
|
* lvmdbustest: Remove force exception in _wait_for_jobTony Asleson2022-09-161-10/+0
| | | | | | | | | | | | | | | | | We put this in to test one of the paths in the damon, but unfortunately if we hit the race condition where the job actually is done we will try to call j.Wait(1) after the remove. This fails with: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Wait" with signature "i" on interface "com.redhat.lvmdbus1.Job" doesn't exist Which is caused by the dbus object no longer existing. We could handle this, but the issue is we no longer have the ability to get the result to return, they have been lost. A better solution would be to write a specific unit test to force this code path and handle all the possible outcomes.
* lvmdbustest: Include major number 259Tony Asleson2022-09-161-1/+4
| | | | | When you have > 16 partitions for a block device the major number changes, include them for testing.
* lvmdbustest: Use updated pyudev syntaxTony Asleson2022-09-161-2/+2
| | | | Previous syntax has been deprecated.
* lvmdbustest: Add test for property "Get"Tony Asleson2022-06-302-1/+25
| | | | We typically use "GetAll", so add test for "Get" and check values.
* lvmdbustest: Increase number of LVsTony Asleson2022-06-301-1/+1
| | | | As storage is getting faster, we need to create more LVs to pass this test.
* lvmdbustest: Correct comment spelling/grammarTony Asleson2022-06-301-11/+11
|
* lvmdbustest: Test job remove path when job not completeTony Asleson2022-06-301-0/+11
|
* lvmdbusd: Fix env variable LVM_DBUSD_TEST_MODETony Asleson2022-06-301-4/+8
| | | | Make it more logical.