freeipa/ipatests
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
..
azure Remove Fedora repository fastmirror selection 2020-03-28 19:55:10 +01:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions update prci definitions for test_sssd.py 2020-04-03 11:15:57 +02:00
pytest_ipa ipatests: move ipa_backup to tasks 2020-04-06 16:53:31 +02:00
test_cmdline pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_install pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_integration ipatests: move ipa_backup to tasks 2020-04-06 16:53:31 +02:00
test_ipaclient Fix Pytest4.x warning about message 2019-06-19 19:20:14 +10:00
test_ipalib pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_ipaplatform Don't configure KEYRING ccache in containers 2019-01-18 11:33:11 +01:00
test_ipapython pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_ipaserver ipatests: Properly kill gpg-agent 2020-02-12 18:08:32 +02:00
test_ipatests_plugins ipatests: Allow zero-length arguments 2020-02-14 09:29:20 +02:00
test_webui pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_xmlrpc Allow rename of a host group 2020-03-31 09:21:37 +03:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Azure: Allow to run integration tests 2020-02-25 18:02:12 +02:00
create_external_ca.py Test external CA with DNS name constraints 2019-08-06 12:39:46 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
ipa-run-tests ipatests: Allow zero-length arguments 2020-02-14 09:29:20 +02:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
test_util.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
util.py ipatests: add context manager for declaring part of test as xfail 2020-04-03 11:15:57 +02:00