From a5ea28ee119dcf7f474ba9bc019fb4925c899d35 Mon Sep 17 00:00:00 2001 From: David Mulder Date: Thu, 14 Jan 2021 13:17:45 -0700 Subject: [PATCH] gpmc test use password authentication The the samba-tool commands fail when using kerberos (this also needs to be fixed). --- tests/gpmc.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/gpmc.py b/tests/gpmc.py index 0faa4fa..89d6b5c 100644 --- a/tests/gpmc.py +++ b/tests/gpmc.py @@ -9,9 +9,20 @@ def __open_gpmc(self): for _ in range(0, 3): self.press('Down') self.press('Enter') - self.assertSeen('To continue, type an Active Directory administrator password') - for _ in range(0, 3): - self.press('Tab') + self.assertSeen('To continue, type an Active Directory administrator password', timeout=30) + for _ in range(0, 50): + self.press('BSpace') + self.press(self.creds.get_username()) + self.press('Tab') + for _ in range(0, 50): + self.press('BSpace') + self.press(self.get_password()) + self.press('Tab') + for _ in range(0, 50): + self.press('BSpace') + self.press(self.creds.get_domain()) + for _ in range(0, 4): + self.press('BTab') self.press('Enter') self.assertSeen('Group Policy Management Console') # Make sure we see the Administrator in the Users list