]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
remove format
authorCraig Orendi <craig.orendi@citrix.com>
Fri, 2 Oct 2015 10:59:58 +0000 (11:59 +0100)
committerCraig Orendi <craig.orendi@citrix.com>
Tue, 3 Nov 2015 10:22:28 +0000 (10:22 +0000)
exec/testcases/xenserver/tc/dotnetagentlicensing.py
exec/xenrt/lib/xenserver/dotnetagentlicensing.py

index cca6a67e9f1cccfad58ed8c2b911aca277f318c7..8ffe36c5eae1f1b8a2429ce48242932bb8221a63 100755 (executable)
@@ -172,4 +172,14 @@ class AllHostsLicensed(DotNetAgentTestCases):
         if vss.isLicensed():
             raise xenrt.XRTFailure("Xenstore indicates VSS is Licensed")
         if autoUpdate.isLicensed():
-            raise xenrt.XRTFailure("Xenstore indicates AutoUpdate is Licensed")
\ No newline at end of file
+            raise xenrt.XRTFailure("Xenstore indicates AutoUpdate is Licensed")
+
+class ToggleAUHierarchy(DotNetAgentTestCases):
+
+    def run(self, arglist):
+        server = self.adapter.setUpServer(self.getGuest("server"),"16000")
+        self.adapter.applyLicense(self.getDefaultPool())
+        autoupdate = self.agent.getLicensedFeature("AutoUpdate")
+        autoupdate.disable()
+        if not autoupdate.checkKeyPresent() or autoupdate.isActive():
+            raise xenrt.XRTFailure("Xapi does not indicate that AutoUpdate is disabled")
\ No newline at end of file
index 3c40934edd5837f9ae5eba15ac2d6c763a3542b8..7b3045d3b05b87c91c45ff45849f57fd94293bde 100755 (executable)
@@ -53,7 +53,7 @@ class SimpleServer(object):
 
     def addRedirect(self):
         #self.guest.execguest("printf \"HTTP/1.1 301 Moved Permanently\\nLocation: http://%s:16000\\n\" | nc -l 15000&"%(self.getIP()), timeout=10)
-        self.guest.execguest("nc -l 15000&"%(self.getIP()), timeout=10)
+        self.guest.execguest("nc -l 15000&", timeout=10)
 
     def getIP(self):
         return self.guest.getIP()