Compare commits

..

2 Commits

Author SHA1 Message Date
a374ec73b4 Add login success print test 2022-10-11 20:20:08 -05:00
b0457865d6 change test user 2022-10-11 20:15:17 -05:00
2 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,8 @@ def login(config, user, password, sysid):
ssh.run_ssh(config, command, 'scripts') ssh.run_ssh(config, command, 'scripts')
sleep(1) sleep(1)
filename = sysid + "success.txt" filename = sysid + "success.txt"
if ssh.check_for_file(config, filename, 'receivelogin') == False: output = ssh.check_for_file(config, filename, 'receivelogin')
if output == False:
filename = sysid + "fail.txt" filename = sysid + "fail.txt"
if ssh.check_for_file(config, filename, 'receivelogin') == False: if ssh.check_for_file(config, filename, 'receivelogin') == False:
raise ValueError("Unable to determine login status") raise ValueError("Unable to determine login status")
@ -24,3 +25,4 @@ def login(config, user, password, sysid):
return False return False
else: else:
return True return True
fprint(output)

View File

@ -49,8 +49,8 @@ class TaskBarIcon(wx.adv.TaskBarIcon):
#self.close_popup() #self.close_popup()
def on_login(self, event): def on_login(self, event):
settings["username"] = "Cole" settings["username"] = "frontend"
settings["password"] = "12345" settings["password"] = "qwertyuiop"
settings["login"] = True settings["login"] = True
def on_exit(self, event): def on_exit(self, event):