mirror of
https://github.com/samba-team/samba.git
synced 2025-12-18 08:23:51 +03:00
pytest/netcmd: test samba-tool testparm global section
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: David Mulder <dmulder@suse.com>
This commit is contained in:
committed by
Douglas Bagnall
parent
5075df4575
commit
e0d96197fd
@@ -94,6 +94,14 @@ class TestParmTests(NetCmdTestCase):
|
||||
"--section-name=tmp"],
|
||||
retcode=None)
|
||||
|
||||
def test_section_globals(self):
|
||||
# We can have '[global]' and '[globals]'
|
||||
for name in ['global', 'globals']:
|
||||
self.run_netcmd(cmd_testparm,
|
||||
[f"--configfile={self.smbconf.name}",
|
||||
f"--section-name={name}"],
|
||||
retcode=None)
|
||||
|
||||
def test_no_such_section(self):
|
||||
out, err = self.run_netcmd(cmd_testparm,
|
||||
["--configfile=%s" % self.smbconf.name,
|
||||
|
||||
Reference in New Issue
Block a user