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

slapos_pdm: lint test

parent 576b7681
......@@ -30,7 +30,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
preference.setPreferredCloudContractEnabled(True)
self.tic()
self.project = self.addProject()
self._makeComputeNode()
self._makeComputeNode(self.project)
self._makeSoftwareProductCatalog(self.project)
self._installSoftwareOnTheComputeNode([
self.previous_software_release.getUrlString(),
......@@ -168,8 +168,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
def testInstanceTree_createUpgradeDecision_no_newer(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person)
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)#, owner=person)
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease(
......@@ -197,8 +197,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(upgrade_decision, None)
def testInstanceTree_createUpgradeDecision_closed_compute_node(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person, allocation_scope="close/outdated")
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project, allocation_scope="close/outdated")
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease(
......@@ -233,8 +233,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
getUrlString())
def testInstanceTree_createUpgradeDecision_create_once_transaction(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person, allocation_scope="open/personal")
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project, allocation_scope="open/personal")
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease(
......@@ -267,8 +267,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(up_decision, None)
def testInstanceTree_createUpgradeDecision(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person)
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease(
......@@ -308,8 +308,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
def testInstanceTree_createUpgradeDecision_with_exist(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person)
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease(
......@@ -348,8 +348,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
software_release3.getUrlString())
def testInstanceTree_createUpgradeDecision_rejected(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person)
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
software_release = self._requestSoftwareRelease(
......@@ -387,8 +387,8 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(up_decision, None)
def testInstanceTree_createUpgradeDecision_rejected_2(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person)
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)#, owner=person)
self._makeComputePartitions(compute_node)
software_product = self._makeSoftwareProduct(self.project)
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