Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate | Vojtech Trefny | 2023-04-20 | 1 | -1/+1 |
| | |||||
* | lvmdbustest: Correct env. logic | Tony Asleson | 2023-03-14 | 1 | -2/+2 |
| | | | | Signed-off-by: Tony Asleson <tasleson@redhat.com> | ||||
* | lvmdbustest: Add notes on error injection testing | Tony Asleson | 2023-03-10 | 1 | -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 testing | Tony Asleson | 2023-03-10 | 1 | -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. variables | Tony Asleson | 2023-03-10 | 1 | -2/+6 |
| | |||||
* | lvmdbustest: Don't use hard coded /tmp for error inject log | Tony Asleson | 2023-03-10 | 1 | -1/+1 |
| | |||||
* | lvmdbustest: Shutdown cleanly with "exit" | Tony Asleson | 2023-03-10 | 1 | -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 error | Tony Asleson | 2023-03-10 | 1 | -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 injection | Tony Asleson | 2023-03-10 | 1 | -0/+2 |
| | |||||
* | lvmdbustest: open log file with "a" | Tony Asleson | 2023-03-10 | 1 | -1/+1 |
| | | | | So we retain the log across fork & exec and lvm shell testing. | ||||
* | lvmdbustest: Test duplicate VG rename | Tony Asleson | 2023-03-03 | 1 | -0/+43 |
| | |||||
* | lvmdbustest: Add more info on asserts | Tony Asleson | 2023-03-02 | 1 | -7/+9 |
| | |||||
* | lvmdbustest: Don't hard code to /tmp | Tony Asleson | 2023-03-01 | 1 | -1/+1 |
| | | | | During lvm testing they use an alternative tmp directory. | ||||
* | lvmdbustest: Add more output for test_log_file_option | Tony Asleson | 2023-03-01 | 1 | -1/+3 |
| | |||||
* | lvmdbustest.py: Increase udev timeout | Tony Asleson | 2023-03-01 | 1 | -2/+3 |
| | |||||
* | lvmdbustest.py: Remove use of root_dir in glob | Tony Asleson | 2023-02-27 | 1 | -3/+3 |
| | | | | This feature has only been in python since 10/2021. | ||||
* | lvmdbustest: Check and remove lvm debug collection files | Tony Asleson | 2023-02-20 | 1 | -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 collection | Tony Asleson | 2022-11-29 | 1 | -0/+21 |
| | | | | Recreates https://bugzilla.redhat.com/show_bug.cgi?id=2145114 | ||||
* | lvmdbustest: Add test for copy signature | Tony Asleson | 2022-10-20 | 1 | -11/+60 |
| | | | | | Add test to ensure we detect when a PV signature is copied to a block device. | ||||
* | lvmdbustest: Add test for wipefs | Tony Asleson | 2022-10-20 | 1 | -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. variable | Tony Asleson | 2022-09-30 | 1 | -1/+1 |
| | | | | | Make this match the unit test expectation and the form we use for other env. variables. | ||||
* | lvmdbustest: Add test to stress mode changing | Tony Asleson | 2022-09-22 | 1 | -5/+24 |
| | | | | | Add a test to toggle from fork & exec to lvm shell repeatedly, to stress test it. | ||||
* | lvmdbustest: Re-work setUp | Tony Asleson | 2022-09-22 | 1 | -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 create | Tony Asleson | 2022-09-22 | 1 | -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 unique | Tony Asleson | 2022-09-22 | 1 | -1/+3 |
| | |||||
* | lvmdbustest: Add wrapper for injecting errors | Tony Asleson | 2022-09-16 | 1 | -0/+323 |
| | | | | Useful for forcing lvmdbusd down error paths. | ||||
* | lvmdbustest: Check for self.pvs | Tony Asleson | 2022-09-16 | 1 | -1/+1 |
| | | | | If we don't make it through setUp, self.pvs will not exist. | ||||
* | lvmdbustest: Move signals to last | Tony Asleson | 2022-09-16 | 1 | -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 test | Tony Asleson | 2022-09-16 | 1 | -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 enabled | Tony Asleson | 2022-09-16 | 1 | -0/+13 |
| | |||||
* | lvmdbustest: Skip test_singleton_daemon running systemd svc. | Tony Asleson | 2022-09-16 | 1 | -0/+2 |
| | |||||
* | lvmdbustest: Add systemctl daemon start | Tony Asleson | 2022-09-16 | 1 | -1/+1 |
| | |||||
* | lvmdbustest: Add test for ensuring only 1 instance of daemon | Tony Asleson | 2022-09-16 | 1 | -0/+8 |
| | |||||
* | lvmdbustest: Add test_sigint test | Tony Asleson | 2022-09-16 | 1 | -0/+35 |
| | | | | Get the daemon busy and send it SIGINT to ensure the daemon exits. | ||||
* | lvmdbustest: Add optional option to _create_num_lvs | Tony Asleson | 2022-09-16 | 1 | -8/+12 |
| | | | | This allows us to create the LVs async., thus queuing them up in daemon. | ||||
* | lvmdbustest: Factor out tearDown implementation for re-use | Tony Asleson | 2022-09-16 | 1 | -4/+7 |
| | |||||
* | lvmdbustest: Add DaemonInfo class | Tony Asleson | 2022-09-16 | 1 | -6/+176 |
| | | | | | This class handles identifying daemon, sending signals to it, and starting it back up again. | ||||
* | lvmdbusd: Correct typos | Tony Asleson | 2022-09-16 | 1 | -1/+1 |
| | |||||
* | lvmdbustest: Add test removing incomplete job | Tony Asleson | 2022-09-16 | 1 | -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 event | Tony Asleson | 2022-09-16 | 1 | -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 options | Tony Asleson | 2022-09-16 | 1 | -2/+19 |
| | |||||
* | lvmdbustest: nesting improvements | Tony Asleson | 2022-09-16 | 1 | -4/+8 |
| | |||||
* | lvmdbustest: Remove force exception in _wait_for_job | Tony Asleson | 2022-09-16 | 1 | -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 259 | Tony Asleson | 2022-09-16 | 1 | -1/+4 |
| | | | | | When you have > 16 partitions for a block device the major number changes, include them for testing. | ||||
* | lvmdbustest: Use updated pyudev syntax | Tony Asleson | 2022-09-16 | 1 | -2/+2 |
| | | | | Previous syntax has been deprecated. | ||||
* | lvmdbustest: Add test for property "Get" | Tony Asleson | 2022-06-30 | 2 | -1/+25 |
| | | | | We typically use "GetAll", so add test for "Get" and check values. | ||||
* | lvmdbustest: Increase number of LVs | Tony Asleson | 2022-06-30 | 1 | -1/+1 |
| | | | | As storage is getting faster, we need to create more LVs to pass this test. | ||||
* | lvmdbustest: Correct comment spelling/grammar | Tony Asleson | 2022-06-30 | 1 | -11/+11 |
| | |||||
* | lvmdbustest: Test job remove path when job not complete | Tony Asleson | 2022-06-30 | 1 | -0/+11 |
| | |||||
* | lvmdbusd: Fix env variable LVM_DBUSD_TEST_MODE | Tony Asleson | 2022-06-30 | 1 | -4/+8 |
| | | | | Make it more logical. |