From: Rob van der Linde Date: Wed, 6 Mar 2024 03:49:21 +0000 (+1300) Subject: tests: models: fix username should be account_name X-Git-Tag: tdb-1.4.11~1419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c004fdd0f34ec009fa4f24535ffb5773ee506e37;p=thirdparty%2Fsamba.git tests: models: fix username should be account_name The reason this didn't fail, is because it doesn't save the Computers. This gets fixed in the next commit. Signed-off-by: Rob van der Linde Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/samba_tool/domain_models.py b/python/samba/tests/samba_tool/domain_models.py index b78e865d85e..875a343e93e 100644 --- a/python/samba/tests/samba_tool/domain_models.py +++ b/python/samba/tests/samba_tool/domain_models.py @@ -88,10 +88,10 @@ class ComputerModelTests(SambaToolCmdTest): self.assertEqual(comp2.account_name, "comp2$") # User accidentally left out '$' in username. - comp3 = Computer(name="comp3", username="comp3") + comp3 = Computer(name="comp3", account_name="comp3") self.assertEqual(comp3.account_name, "comp3$") - comp4 = Computer(cn="comp4", username="comp4$") + comp4 = Computer(cn="comp4", account_name="comp4$") self.assertEqual(comp4.account_name, "comp4$")