self.adapter.applyLicense(self.getDefaultPool())
autoupdate = self.agent.getLicensedFeature("AutoUpdate")
autoupdate.disable()
- #assertions.assertTrue(autoupdate.checkKeyPresent() and not autoupdate.isActive(),"Xapi does not indicate that AutoUpdate is disabled")
- assertions.assertTrue(self.getHost("RESOURCE_HOST_0").xenstoreExists("/guest_agent_features/Guest_agent_auto_update/parameters/enabled"),"Xapi does not indicate that AutoUpdate is disabled")
+ assertions.assertTrue(autoupdate.checkKeyPresent() and not autoupdate.isActive(),"Xapi does not indicate that AutoUpdate is disabled")
autoupdate.setUserVMUser()
- test = autoupdate.checkKeyPresent()
- assertions.assertFalse(test) # ,"DisableAutoUpdate reg key is present")
+ assertions.assertFalse(autoupdate.checkKeyPresent(),"DisableAutoUpdate reg key is present")
self._shouldNotBePinged(trigger, server)
autoupdate.enable()
assertions.assertTrue(autoupdate.checkKeyPresent(), "DisableAutoUpdate reg key is not present")
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")
class NoVSSOnNonServer(DotNetAgentTestCases):
self.adapter.lowerDotNetAgentVersion(self.win1)
autoupdate = self.agent.getLicensedFeature("AutoUpdate")
version = self.agent.agentVersion()
- self.adapter.lowerDotNetAgentVersion()
self.agent.restartAgent()
xenrt.sleep(200)
assertions.assertNotNone(autoupdate.checkDownloadedMSI(),"Agent did not download MSI")
if self.os.winRegExists(self.HIVE_CONST, self.KEY_CONST, self.AU_CONST, healthCheckOnFailure=False):
key = self.os.winRegLookup(self.HIVE_CONST, self.KEY_CONST, self.AU_CONST, healthCheckOnFailure=False)
if key:
- xenrt.TEC().logverbose("-----return True----")
return True
- xenrt.TEC().logverbose("-----return False----")
return False