mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
python:tests: Add missing result checks for samba_tool.gpo tests
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15308 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c4dba61e36
commit
69442ae107
@ -266,6 +266,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
|
||||
os.environ["PASSWORD"]),
|
||||
"--restore-metadata")
|
||||
|
||||
self.assertCmdSuccess(result, out, err,
|
||||
"Ensure gpo restore successful")
|
||||
|
||||
gpo_guid = "{%s}" % out.split("{")[1].split("}")[0]
|
||||
|
||||
(result, out, err) = self.runsubcmd("gpo", "backup", gpo_guid,
|
||||
@ -320,6 +323,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
|
||||
os.environ["PASSWORD"]),
|
||||
"--restore-metadata")
|
||||
|
||||
self.assertCmdSuccess(result, out, err,
|
||||
"Ensure gpo restore successful")
|
||||
|
||||
gpo_guid = "{%s}" % out.split("{")[1].split("}")[0]
|
||||
gpo_guid1 = gpo_guid
|
||||
|
||||
@ -342,6 +348,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
|
||||
os.environ["PASSWORD"]),
|
||||
"--restore-metadata")
|
||||
|
||||
self.assertCmdSuccess(result, out, err,
|
||||
"Ensure gpo restore successful")
|
||||
|
||||
gpo_guid = "{%s}" % out.split("{")[1].split("}")[0]
|
||||
gpo_guid2 = gpo_guid
|
||||
|
||||
@ -405,6 +414,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
|
||||
os.environ["PASSWORD"]),
|
||||
"--restore-metadata")
|
||||
|
||||
self.assertCmdSuccess(result, out, err,
|
||||
"Ensure gpo restore successful")
|
||||
|
||||
gpo_guid = "{%s}" % out.split("{")[1].split("}")[0]
|
||||
gpo_guid1 = gpo_guid
|
||||
|
||||
@ -425,6 +437,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
|
||||
os.environ["PASSWORD"]),
|
||||
"--restore-metadata")
|
||||
|
||||
self.assertCmdSuccess(result, out, err,
|
||||
"Ensure gpo restore successful")
|
||||
|
||||
gpo_guid = "{%s}" % out.split("{")[1].split("}")[0]
|
||||
gpo_guid2 = gpo_guid
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user