Commit 8dd2db04 authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: lint test

parent 576b7681
...@@ -30,7 +30,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -30,7 +30,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
preference.setPreferredCloudContractEnabled(True) preference.setPreferredCloudContractEnabled(True)
self.tic() self.tic()
self.project = self.addProject() self.project = self.addProject()
self._makeComputeNode() self._makeComputeNode(self.project)
self._makeSoftwareProductCatalog(self.project) self._makeSoftwareProductCatalog(self.project)
self._installSoftwareOnTheComputeNode([ self._installSoftwareOnTheComputeNode([
self.previous_software_release.getUrlString(), self.previous_software_release.getUrlString(),
...@@ -168,8 +168,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -168,8 +168,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
def testInstanceTree_createUpgradeDecision_no_newer(self): def testInstanceTree_createUpgradeDecision_no_newer(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person) compute_node, _ = self._makeComputeNode(self.project)#, owner=person)
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
...@@ -197,8 +197,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -197,8 +197,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(upgrade_decision, None) self.assertEqual(upgrade_decision, None)
def testInstanceTree_createUpgradeDecision_closed_compute_node(self): def testInstanceTree_createUpgradeDecision_closed_compute_node(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person, allocation_scope="close/outdated") compute_node, _ = self._makeComputeNode(self.project, allocation_scope="close/outdated")
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
...@@ -233,8 +233,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -233,8 +233,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
getUrlString()) getUrlString())
def testInstanceTree_createUpgradeDecision_create_once_transaction(self): def testInstanceTree_createUpgradeDecision_create_once_transaction(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person, allocation_scope="open/personal") compute_node, _ = self._makeComputeNode(self.project, allocation_scope="open/personal")
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
...@@ -267,8 +267,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -267,8 +267,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(up_decision, None) self.assertEqual(up_decision, None)
def testInstanceTree_createUpgradeDecision(self): def testInstanceTree_createUpgradeDecision(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person) compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
...@@ -308,8 +308,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -308,8 +308,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
def testInstanceTree_createUpgradeDecision_with_exist(self): def testInstanceTree_createUpgradeDecision_with_exist(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person) compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
...@@ -348,8 +348,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -348,8 +348,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
software_release3.getUrlString()) software_release3.getUrlString())
def testInstanceTree_createUpgradeDecision_rejected(self): def testInstanceTree_createUpgradeDecision_rejected(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person) compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
...@@ -387,8 +387,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins): ...@@ -387,8 +387,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(up_decision, None) self.assertEqual(up_decision, None)
def testInstanceTree_createUpgradeDecision_rejected_2(self): def testInstanceTree_createUpgradeDecision_rejected_2(self):
person = self._makePerson() person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(owner=person) compute_node, _ = self._makeComputeNode(self.project)#, owner=person)
self._makeComputePartitions(compute_node) self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project) software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease( software_release = self._requestSoftwareRelease(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment