]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
change assertfalse to true
authorCraig Orendi <craig.orendi@citrix.com>
Tue, 3 Nov 2015 13:22:23 +0000 (13:22 +0000)
committerCraig Orendi <craig.orendi@citrix.com>
Tue, 3 Nov 2015 13:22:23 +0000 (13:22 +0000)
exec/testcases/xenserver/tc/dotnetagentlicensing.py

index 3d6bbfa897117dc49fd2bab08db262b787919819..ebbf13463b10f69aa059f7ca1c1665f74f3e736d 100755 (executable)
@@ -240,20 +240,20 @@ class ToggleAUHierarchy(DotNetAgentTestCases):
         self.adapter.applyLicense(self.getDefaultPool())
         autoupdate = self.agent.getLicensedFeature("AutoUpdate")
         autoupdate.disable()
-        #assertions.assertFalse(autoupdate.checkKeyPresent() and not autoupdate.isActive(),"Xapi does not indicate that AutoUpdate is disabled")
-        xenrt.TEC().logverbose("%s"%self.getHost("RESOURCE_HOST_0").execdom0("xenstore-ls -f /guest_agent_features"))
-        xenrt.TEC().logverbose("%s"%self.getHost("RESOURCE_HOST_0").xenstoreExists("/guest_agent_features/Guest_agent_auto_update/parameters/enabled"))
-        assertions.assertFalse(self.getHost("RESOURCE_HOST_0").xenstoreExists("/guest_agent_features/Guest_agent_auto_update/parameters/enabled"))
+        assertions.assertTrue(autoupdate.checkKeyPresent() and not autoupdate.isActive(),"Xapi does not indicate that AutoUpdate is disabled")
+        #xenrt.TEC().logverbose("%s"%self.getHost("RESOURCE_HOST_0").execdom0("xenstore-ls -f /guest_agent_features"))
+        #xenrt.TEC().logverbose("%s"%self.getHost("RESOURCE_HOST_0").xenstoreExists("/guest_agent_features/Guest_agent_auto_update/parameters/enabled"))
+        #assertions.assertFalse(self.getHost("RESOURCE_HOST_0").xenstoreExists("/guest_agent_features/Guest_agent_auto_update/parameters/enabled"))
         autoupdate.setUserVMUser()
-        assertions.assertFalse(autoupdate.checkKeyPresent(),"DisableAutoUpdate reg key is present")
+        assertions.assertTrue(autoupdate.checkKeyPresent(),"DisableAutoUpdate reg key is present")
         self._shouldNotBePinged(trigger,server)
         autoupdate.enable()
         self._shouldBePinged(trigger,server)
         autoupdate.setUserPoolAdmin()
         autoupdate.disable()
-        assertions.assertFalse(autoupdate.checkKeyPresent() and not autoupdate.isActive(),"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()
-        assertions.assertFalse(autoupdate.checkKeyPresent(),"registry does not indicate that AutoUpdate is enabled")
+        assertions.assertTrue(autoupdate.checkKeyPresent(),"registry does not indicate that AutoUpdate is enabled")
         self._shouldNotBePinged(trigger,server)
 
 class URLHierarchy(DotNetAgentTestCases):