freeipa/ipatests/test_integration
Sergey Orlov c2b230ce64
ipatests: replace ad hoc backup with FileBackup helper
Test test_smb_mount_and_access_by_different_users was failing with message
```
kdestroy: Permission denied while initializing krb5
```

This happened because the previous test
`test_smb_access_for_ad_user_at_ipa_client` was calling the fixture
`enable_smb_client_dns_lookup_kdc` which was doing backup of krb5.conf
in a wrong way:
- mktemp (to create a temp file)
- cp /etc/krb5.conf to the temp file
- ...
- mv tempfile /etc/krb5.conf

This flow looses the file permissions, because mktemp creates a file
using the default umask, which results in -rw------- permissions.
The copy does not modify the permissions, and the mv keeps the
permissions from the source => /etc/krb5.conf now has -rw-------.

Fixes: https://pagure.io/freeipa/issue/8115
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2019-11-11 15:09:23 +01:00
..
__init__.py Add marker needs_ipaapi and option to skip tests 2017-12-11 20:40:06 +01:00
base.py ipatests: adapt test_trust.py for changes in multihost fixture 2019-04-01 10:24:46 -04:00
test_advise.py Test smart card advise scripts 2018-12-11 13:46:52 +01:00
test_authselect.py Remove unused tests 2019-01-17 14:36:27 +01:00
test_automember.py Tests for autounmembership feature 2019-06-06 16:51:55 +02:00
test_backup_and_restore.py Check file ownership and permission for dirsrv log instance 2019-10-01 08:17:55 -04:00
test_ca_custom_sdn.py test_integration: add tests for custom CA subject DN 2019-10-17 08:17:46 +02:00
test_caless.py Fix errors found by Pylint-2.4.3 2019-10-21 18:01:32 +11:00
test_cli_ipa_not_configured.py ipatests: Test for ipa-backup with ipa not configured 2019-08-27 12:04:45 +02:00
test_commands.py ipatests: add test to check that only TLS 1.2 is enabled in Apache 2019-11-01 13:49:09 -04:00
test_crlgen_manage.py Test: add new tests for ipa-crlgen-manage 2019-03-14 09:39:55 +01:00
test_customized_ds_config_install.py Speed up test_customized_ds_config_install 2018-11-08 17:46:38 +01:00
test_dns_locations.py Py3: Replace six.text_type with str 2018-09-27 16:11:18 +02:00
test_dnssec.py Mark failing test as xfail for use of python-dns make_ds method 2019-08-22 09:43:51 -03:00
test_external_ca.py Removes several pylint warnings. 2019-09-27 09:38:32 +02:00
test_forced_client_reenrollment.py ipatests/test_integration/test_forced_client_reenrollment.py: Use unshare 2018-12-03 11:26:08 +01:00
test_http_kdc_proxy.py ipatests/test_integration/test_http_kdc_proxy.py: Use new firewall import 2018-12-03 11:26:08 +01:00
test_idviews.py Add integration tests for idviews 2018-12-07 11:39:23 +01:00
test_installation.py Installation of replica against a specific server 2019-10-07 08:08:35 +02:00
test_kerberos_flags.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_legacy_clients.py Removes several pylint warnings. 2019-09-27 09:38:32 +02:00
test_membermanager.py Add tests for member management 2019-11-11 09:31:14 +01:00
test_netgroup.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_nfs.py ipatests: remove xfail in TestIpaClientAutomountFileRestore 2019-08-29 17:34:27 +02:00
test_ntp_options.py ipatests: refactor TestNTPoptions 2019-07-31 14:21:37 +02:00
test_ordering.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_pki_config_override.py Fix and extend pki config override test 2019-04-24 17:08:24 +02:00
test_pkinit_manage.py test: add non-reg test checking pkinit after server install 2019-02-20 09:18:38 +01:00
test_replica_promotion.py ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion 2019-10-01 09:37:36 +02:00
test_replication_layouts.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_server_del.py ipatests/test_integration/test_server_del.py: Enable dns in fw for dnssec 2018-12-07 17:29:59 +01:00
test_service_permissions.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_simple_replication.py ipatests: add integration test for ipa-replica-manage list 2019-05-28 15:02:49 -04:00
test_smb.py ipatests: replace ad hoc backup with FileBackup helper 2019-11-11 15:09:23 +01:00
test_sssd.py ipatests: add tests for cached_auth_timeout in sssd.conf 2019-09-19 10:26:58 +02:00
test_sudo.py ipatests: fix wrong xfail in test_domain_resolution_order 2019-08-30 10:16:52 +02:00
test_testconfig.py ipatests: allow AD hosts to be placed in separate domain config objects 2019-04-01 10:24:46 -04:00
test_topologies.py Fix comparison-with-callable 2018-11-13 13:37:58 +01:00
test_topology.py Removes several pylint warnings. 2019-09-27 09:38:32 +02:00
test_trust.py ipatests: in DNS zone file add A record for name server 2019-11-05 17:24:24 +01:00
test_uninstallation.py Replace imports from ipaserver 2019-05-16 13:20:38 +02:00
test_upgrade.py ipatests: test ipa-server-upgrade in CA-less deployment 2019-07-22 13:33:24 +10:00
test_user_permissions.py ipatests: fix TestUserPermissions::test_selinux_user_optimized 2019-06-13 23:24:01 +02:00
test_vault.py Add a shared-vault-retrieve test 2018-11-21 15:41:00 +01:00
test_winsyncmigrate.py Fix test_webui.test_selinuxusermap 2019-07-15 14:41:23 +03:00