Skip to content

Commit a5ea28e

Browse files
committed
gpmc test use password authentication
The the samba-tool commands fail when using kerberos (this also needs to be fixed).
1 parent e87befd commit a5ea28e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tests/gpmc.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,20 @@ def __open_gpmc(self):
99
for _ in range(0, 3):
1010
self.press('Down')
1111
self.press('Enter')
12-
self.assertSeen('To continue, type an Active Directory administrator password')
13-
for _ in range(0, 3):
14-
self.press('Tab')
12+
self.assertSeen('To continue, type an Active Directory administrator password', timeout=30)
13+
for _ in range(0, 50):
14+
self.press('BSpace')
15+
self.press(self.creds.get_username())
16+
self.press('Tab')
17+
for _ in range(0, 50):
18+
self.press('BSpace')
19+
self.press(self.get_password())
20+
self.press('Tab')
21+
for _ in range(0, 50):
22+
self.press('BSpace')
23+
self.press(self.creds.get_domain())
24+
for _ in range(0, 4):
25+
self.press('BTab')
1526
self.press('Enter')
1627
self.assertSeen('Group Policy Management Console')
1728
# Make sure we see the Administrator in the Users list

0 commit comments

Comments
 (0)