freeipa/ipatests/pytest_ipa
François Cami a087fd9255 ipatests: move ipa_backup to tasks
* tasks had an ipa_backup() method that was not used anywhere.
* test_backup_and_restore had a backup() method that used to return
  both the path to the backup and the whole result from run_command ;
  The path to the backup can be determined from the result.

Clean up:
* move test_backup_and_restore.backup to tasks.ipa_backup, replacing
  the unused method.
* add tasks.get_backup_dir(host) which runs ipa-backup on host and
  returns the path to the backup directory.
* adjust test_backup_and_restore and test_replica_promotion.

Related: https://pagure.io/freeipa/issue/8217
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Michal Polovka <mpolovka@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2020-04-06 16:53:31 +02:00
..
integration ipatests: move ipa_backup to tasks 2020-04-06 16:53:31 +02: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 Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
deprecated_frameworks.py pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
nose_compat.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
slicing.py Make use of Azure Pipeline slicing 2019-07-16 13:23:21 +03:00