Commit 0ed37ee5 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_pdm: Add test for UpgradeDecision_getAggregateUrlString

parent c5a7a1a2
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>document_portal_type="Softwware Release"</string> </value>
<value> <string>document_portal_type="Software Release"</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -467,6 +467,17 @@ class TestSlapOSPDMSkins(TestSlapOSPDMMixinSkins):
found_software_release = upgrade_decision.UpgradeDecision_getAggregateValue("Software Release")
self.assertEqual(None, found_software_release)
def testUpgradeDecision_getAggregateUrlString_SoftwareRelease(self):
software_release = self._makeSoftwareRelease()
upgrade_decision = self._makeUpgradeDecision()
upgrade_decision_line = self._makeUpgradeDecisionLine(upgrade_decision)
upgrade_decision_line.setAggregateValue(software_release)
url_string = upgrade_decision.UpgradeDecision_getAggregateUrlString()
self.assertNotEqual(None, url_string)
self.assertEqual(software_release.getUrlString(), url_string)
def testSoftwareRelease_createUpgradeDecision_compute_node(self):
person = self._makePerson()
compute_node, _ = self._makeComputeNode(owner=person)
......
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