freeipa/ipatests/pytest_ipa/integration
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
..
__init__.py ipatests: collect samba logs when setting up trust to AD 2022-04-13 18:37:12 +02:00
config.py pylint: Fix cyclic-import 2023-01-10 08:30:58 +01:00
create_bridge.py ipatests: rename 'ipatuura' directory to 'scim' in bridge tests 2023-09-11 09:12:51 +02:00
create_caless_pki.py Use datetime.timezone.utc instead of newer datetime.UTC alias 2023-09-29 15:06:33 -04:00
create_keycloak.py ipatests: add Keycloak Bridge test 2022-09-20 14:54:04 -04:00
env_config.py Test installation with (fake) userspace FIPS 2019-11-14 16:01:15 +01:00
expect.py ipatests: log command spawned by pexpect 2021-03-29 14:55:23 +03:00
fips.py ipatests: update the fake fips mode expected message 2022-12-19 15:38:05 +01:00
firewall.py pylint: Fix cyclic-import 2023-01-10 08:30:58 +01:00
host.py ipatests: allocate pseudo-terminal only for specific command 2021-03-29 14:55:23 +03:00
resolver.py pylint: Fix cyclic-import 2023-01-10 08:30:58 +01:00
tasks.py ipa-restore: adapt for 389-ds switch to LMDB 2024-02-23 14:11:25 +01:00
transport.py ipatests: allocate pseudo-terminal only for specific command 2021-03-29 14:55:23 +03:00