]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Tickle tests to work out what is going on
authorChris Harding <chris.harding@citrix.com>
Wed, 11 Nov 2015 12:29:05 +0000 (12:29 +0000)
committerChris Harding <chris.harding@citrix.com>
Wed, 11 Nov 2015 12:29:05 +0000 (12:29 +0000)
exec/testcases/xenserver/tc/dotnetagentlicensing.py

index b5c24298c3a8795a4c3d65086eaec3b5dfec0c59..9486a0f3400250e3e39f1904f0fac2336705a388 100755 (executable)
@@ -240,18 +240,14 @@ class ToggleAUHierarchy(DotNetAgentTestCases):
         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()