Skip to content

Commit

Permalink
gpmc test use password authentication
Browse files Browse the repository at this point in the history
The the samba-tool commands fail when using
kerberos (this also needs to be fixed).
  • Loading branch information
dmulder committed Jan 14, 2021
1 parent e87befd commit a5ea28e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tests/gpmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5ea28e

Please sign in to comment.