freeipa/ipatests/pytest_ipa
Rob Crittenden 3766fb9863 ipa-restore: adapt for 389-ds switch to LMDB
ipa-restore is relying on the presence of specific directories,
e.g. /var/lib/dirsrv/slapd-/db/ipaca, to detect
which backends are in use (userRoot or ipaca).

With the switch to LMDB, these directories do not exist and the
restore fails finding the ipaca backend.

Use lib389.cli_ctl.dblib.run_dbscan utility instead to
check which backends are present.

This method was been introduced in 389ds 2.1.0 and works with
Berkeley DB and LMDB.

Add a --data option to the ipa-backup and ipa-restore tasks to do
only an LDIF backup and restore. Also add the ability to restore by
backend.

Add new tests to do a data-only backup and restore.

Fixes: https://pagure.io/freeipa/issue/9526

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2024-02-23 14:11:25 +01:00
..
integration ipa-restore: adapt for 389-ds switch to LMDB 2024-02-23 14:11:25 +01:00
__init__.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
additional_config.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
beakerlib.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
declarative.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
deprecated_frameworks.py ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
nose_compat.py ipatests: Remove no longer needed 'capture' compatibility 2020-04-21 13:24:50 +02:00
slicing.py Make use of Azure Pipeline slicing 2019-07-16 13:23:21 +03:00