From e87357749e17a79cd0c5fc2aad995a1ce66d7727 Mon Sep 17 00:00:00 2001 From: Sergey Orlov Date: Nov 26 2019 10:14:41 +0000 Subject: ipatests: add check that ipa-adtrust-install generates sane smb.conf Related to: https://pagure.io/freeipa/issue/6951 Reviewed-By: Florence Blanc-Renaud --- diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index 086426d..7de0501 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -699,3 +699,14 @@ class TestIPACommand(IntegrationTest): assert not is_tls_version_enabled('tls1') assert not is_tls_version_enabled('tls1_1') assert is_tls_version_enabled('tls1_2') + + def test_samba_config_file(self): + """Check that ipa-adtrust-install generates sane smb.conf + + This is regression test for issue + https://pagure.io/freeipa/issue/6951 + """ + self.master.run_command( + ['ipa-adtrust-install', '-a', 'Secret123', '--add-sids', '-U']) + res = self.master.run_command(['testparm', '-s']) + assert 'ERROR' not in (res.stdout_text + res.stderr_text)