]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
allHostsLicensed
authorCraig Orendi <craig.orendi@citrix.com>
Thu, 1 Oct 2015 10:56:57 +0000 (11:56 +0100)
committerCraig Orendi <craig.orendi@citrix.com>
Tue, 3 Nov 2015 10:22:10 +0000 (10:22 +0000)
exec/testcases/xenserver/tc/dotnetagentlicensing.py

index 48f2f855a177ac551da97bb868dc9f6c9cc229d4..0e88e4cb335ef4148839d1e66f302f91968790df 100755 (executable)
@@ -97,7 +97,7 @@ class DotNetAgentTestCases(xenrt.TestCase):
 class TempTest(DotNetAgentTestCases):
 
     def run(self,arglist):
-        self.adapter.cleanupLicense(self.getDefaultPool())
+        self.adapter.cleanupLicense(self.getDefaultPool()
         #server = self.adapter.setUpServer(self.getGuest("server"),"16000")
         self.adapter.applyLicense(self.getDefaultHost())
         #autoupdate = self.agent.getLicensedFeature("AutoUpdate")
@@ -163,16 +163,15 @@ class HTTPRedirect(DotNetAgentTestCases):
 class AllHostsLicensed(DotNetAgentTestCases):
 
     def run(self, arglist):
-        self.adapter.applyLicense(self.getDefaultHost())
+        self.adapter.applyLicense(self.getDefaultPool())
         vss = self.agent.getLicensedFeature("VSS")
         autoUpdate = self.agent.getLicensedFeature("AutoUpdate")
-     #   if not vss.isLicensed():
-    #        raise xenrt.XRTFailure("Xenstore indicates VSS is Not Licensed")
-     #   if not autoUpdate.isLicensed():
-    #        raise xenrt.XRTFailure("Xenstore indicates AutoUpdate is Not Licensed")
-  
         if not vss.isLicensed():
-            raise xenrt.XRTFailure("Xenstore indicates VSS is Licensed")
+            raise xenrt.XRTFailure("Xenstore indicates VSS is Not Licensed")
         if not autoUpdate.isLicensed():
-            raise xenrt.XRTFailure("Xenstore indicates AutoUpdate is Licensed")
-        self.adapter.applyLicense(self.getHost("RESOURCE_HOST_1"))
\ No newline at end of file
+            raise xenrt.XRTFailure("Xenstore indicates AutoUpdate is Not Licensed")
+        self.adapter.releaseLicense(self.getHost("RESOURCE_HOST_1"))
+        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