1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +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:
Douglas Bagnall 2022-08-05 10:48:06 +12:00 committed by Douglas Bagnall
parent 5075df4575
commit e0d96197fd
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -0,0 +1 @@
^samba.tests.netcmd.samba.tests.netcmd.TestParmTests.test_section_globals