Skip to content

Commit

Permalink
ipatests: add check that ipa-adtrust-install generates sane smb.conf
Browse files Browse the repository at this point in the history
Related to: https://pagure.io/freeipa/issue/6951

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
  • Loading branch information
sorlov-rh committed Nov 26, 2019
1 parent 975c1a3 commit e2a7e73
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ipatests/test_integration/test_commands.py
Expand Up @@ -623,3 +623,14 @@ def is_tls_version_enabled(tls_version):
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)

0 comments on commit e2a7e73

Please sign in to comment.