From Fedora Project Wiki
(Redirected from QA:Testcase ipa migrate stage)
Description
This test case ensures the ipa-migrate
command in stage mode (dry run) functions as expected, analyzing but not transferring data from a remote IPA server to a local IPA server.
Setup
- Install Fedora 41 on both local and remote servers.
- Set up a remote IPA server with the domain
testrelm.test
and ensure it is running. - Create users, groups, HBAC, and sudo rules on the remote IPA server.
- Set up a local IPA server with the same domain
testrelm.test
and ensure it is running.
How to test
- Install the IPA server on the remote system and configure it with domain
testrelm.test
. - Create sample entries on the remote IPA server:
* Users * Groups * HBAC Rules * Sudo Rules
- Install and configure the IPA server on the local system with the same domain
testrelm.test
. - Run the
ipa-migrate
command in stage mode as a dry run: - [root@local ~]# ipa-migrate stage-mode remote.testrelm.test -x -w pwd
- Review the output and logs generated by the
ipa-migrate
command.
Expected Results
The following must be true to consider this a successful test run:
- The
ipa-migrate
command executes without errors. - The output indicates successful analysis of the remote server with no data migrated.
- The
ipa user-find
command on the local server only lists the defaultadmin
user and no migrated users or groups. - The
ipa sudorule-find
andipa hbacrule-find
commands return no migrated entries on the local server. - Migration log (
/var/log/ipa-migrate.log
) confirms that the operation was a dry run with analyzed but not migrated entries.
Optional
Optionally test additional flags or combinations for dry-run operations to ensure flexibility and robustness in stage mode.