def run(self, arglist): self.adapter.applyLicense(self.getDefaultPool()) autoupdate = self.agent.getLicensedFeature("AutoUpdate") self.agent.restartAgent() xenrt.sleep(30) assertions.assertNone( autoupdate.checkDownloadedMSI(), "Agent Downloaded MSI when it was the latest version")
def __defaultServerPinged(self,shouldbe): self.agent.restartAgent() xenrt.sleep(30) if shouldbe: assertions.assertNotNone(self.autoupdate.checkDownloadedMSI(),"MSI did not download from default url") else: assertions.assertNone(self.autoupdate.checkDownloadedMSI(), "MSI was downloaded when it shouldnt be") self.adapter.removeMSIs(self.win1)
def __defaultServerPinged(self, shouldbe): self.agent.restartAgent() xenrt.sleep(30) if shouldbe: assertions.assertNotNone(self.autoupdate.checkDownloadedMSI(), "MSI did not download from default url") else: assertions.assertNone(self.autoupdate.checkDownloadedMSI(), "MSI was downloaded when it shouldnt be") self.adapter.removeMSIs(self.win1)
def run(self, arglist): self.adapter.applyLicense(self.getDefaultPool()) autoupdate = self.agent.getLicensedFeature("AutoUpdate") self.agent.restartAgent() xenrt.sleep(30) assertions.assertNone(autoupdate.checkDownloadedMSI(),"Agent Downloaded MSI when it was the latest version")