def run(self, arglist):
     self.adapter.applyLicense(self.getDefaultPool())
     self.adapter.lowerDotNetAgentVersion(self.win1)
     autoupdate = self.agent.getLicensedFeature("AutoUpdate")
     autoupdate.enable()
     xenrt.sleep(60)
     assertions.assertNotNone(autoupdate.checkDownloadedMSI(), "MSI did not download")
     assertions.assertTrue(autoupdate.compareMSIArch(),"Downloaded MSI is wrong architecture")
 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())
     self.adapter.lowerDotNetAgentVersion(self.win1)
     autoupdate = self.agent.getLicensedFeature("AutoUpdate")
     version = self.agent.agentVersion()
     self.agent.restartAgent()
     xenrt.sleep(200)
     assertions.assertNotNone(autoupdate.checkDownloadedMSI(),"Agent did not download MSI")
     assertions.assertNotEquals(version,self.agent.agentVersion(),"Agent Did not install latest version")
Example #4
0
 def run(self, arglist):
     self.adapter.applyLicense(self.getDefaultPool())
     self.adapter.lowerDotNetAgentVersion(self.win1)
     autoupdate = self.agent.getLicensedFeature("AutoUpdate")
     autoupdate.enable()
     xenrt.sleep(60)
     assertions.assertNotNone(autoupdate.checkDownloadedMSI(),
                              "MSI did not download")
     assertions.assertTrue(autoupdate.compareMSIArch(),
                           "Downloaded MSI is wrong architecture")
Example #5
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)
Example #6
0
 def run(self, arglist):
     self.adapter.applyLicense(self.getDefaultPool())
     self.adapter.lowerDotNetAgentVersion(self.win1)
     autoupdate = self.agent.getLicensedFeature("AutoUpdate")
     version = self.agent.agentVersion()
     self.agent.restartAgent()
     xenrt.sleep(200)
     assertions.assertNotNone(autoupdate.checkDownloadedMSI(),
                              "Agent did not download MSI")
     assertions.assertNotEquals(version, self.agent.agentVersion(),
                                "Agent Did not install latest version")
 def run(self, arglist):
     server = self.adapter.setUpServer(self.getGuest("server"),"16000")
     server.createCatalog("99.0.0.0")
     msiHandler = NonCryptoMSIHandler()
     msiHandler.getMSIs(server)
     self.adapter.applyLicense(self.getDefaultPool())
     autoupdate = self.agent.getLicensedFeature("AutoUpdate")
     autoupdate.enable()
     autoupdate.setURL("http://%s:16000"%server.getIP())
     self.agent.restartAgent()
     xenrt.sleep(200)
     assertions.assertNotNone(autoupdate.checkDownloadedMSI(),"msi has not downloaded")
     assertions.assertFalse(msiHandler.installed(self.win1),"Non cryprographically signed msi installed")
Example #8
0
 def run(self, arglist):
     server = self.adapter.setUpServer(self.getGuest("server"), "16000")
     server.createCatalog("99.0.0.0")
     msiHandler = NonCryptoMSIHandler()
     msiHandler.getMSIs(server)
     self.adapter.applyLicense(self.getDefaultPool())
     autoupdate = self.agent.getLicensedFeature("AutoUpdate")
     autoupdate.enable()
     autoupdate.setURL("http://%s:16000" % server.getIP())
     self.agent.restartAgent()
     xenrt.sleep(200)
     assertions.assertNotNone(autoupdate.checkDownloadedMSI(),
                              "msi has not downloaded")
     assertions.assertFalse(msiHandler.installed(self.win1),
                            "Non cryprographically signed msi installed")