self.adapter.applyLicense(self.getDefaultPool())
autoupdate = self.agent.getLicensedFeature("AutoUpdate")
autoupdate.disable()
- xenrt.TEC().logverbose("%s"%self.getHost("RESOURCE_HOST_0").execdom0("xenstore-ls -f /guest_agent_features"))
- xenrt.TEC().logverbose("exists %s"%self.getHost("RESOURCE_HOST_0").xenstoreExists("/guest_agent_features/Guest_agent_auto_update/parameters/enabled"))
- xenrt.TEC().logverbose("active %s"%self.getHost("RESOURCE_HOST_0").xenstoreRead("/guest_agent_features/Guest_agent_auto_update/parameters/enabled") == "1")
#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")
autoupdate.setUserVMUser()
test = autoupdate.checkKeyPresent()
- xenrt.TEC().logverbose("test variable: %s ",test)
- assertions.assertFalse(test,"DisableAutoUpdate reg key is present")
- self._shouldNotBePinged(trigger,server)
+ assertions.assertFalse(test) # ,"DisableAutoUpdate reg key is present")
+ self._shouldNotBePinged(trigger, server)
autoupdate.enable()
- assertions.assertTrue(autoupdate.checkKeyPresent(),"DisableAutoUpdate reg key is not present")
+ assertions.assertTrue(autoupdate.checkKeyPresent(), "DisableAutoUpdate reg key is not present")
self._shouldNotPinged(trigger,server)
autoupdate.setUserPoolAdmin()
autoupdate.enable()