mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Backup ipa-custodia conf and keys
https://pagure.io/freeipa/issue/7247 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Simo Sorce <ssorce@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Tomas Krizek
parent
49c77d7781
commit
8bbeedc93f
@@ -25,6 +25,7 @@ Test the `ipapython/ipautil.py` module.
|
||||
import nose
|
||||
import pytest
|
||||
import six
|
||||
import tempfile
|
||||
|
||||
from ipapython import ipautil
|
||||
|
||||
@@ -470,3 +471,9 @@ def test_backcompat():
|
||||
assert rc is result.returncode
|
||||
assert out is result.output
|
||||
assert err is result.error_output
|
||||
|
||||
|
||||
def test_flush_sync():
|
||||
with tempfile.NamedTemporaryFile('wb+') as f:
|
||||
f.write(b'data')
|
||||
ipautil.flush_sync(f)
|
||||
|
||||
Reference in New Issue
Block a user