示例#1
0
 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")
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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")