Commit 7c5735a3 authored by Łukasz Nowak's avatar Łukasz Nowak

Follow changed exception type in slap library.

parent 1b9db4bb
...@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin): ...@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_formated_computer + '\ sequence_string = self.prepare_formated_computer + '\
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
SelectNewSoftwareReleaseUri \ SelectNewSoftwareReleaseUri \
CheckNotFoundSoftwareReleaseAvailableAfterRegisterCall \ CheckNameErrorSoftwareReleaseAvailableAfterRegisterCall \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
...@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin): ...@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_formated_computer + '\ sequence_string = self.prepare_formated_computer + '\
SelectNewSoftwareReleaseUri \ SelectNewSoftwareReleaseUri \
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseBuildingAfterRegisterCall \ CheckNameErrorSoftwareReleaseBuildingAfterRegisterCall \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
...@@ -12,7 +12,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -12,7 +12,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_formated_computer + '\ sequence_string = self.prepare_formated_computer + '\
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
SelectNewSoftwareReleaseUri \ SelectNewSoftwareReleaseUri \
CheckNotFoundSoftwareReleaseDestroyedAfterRegisterCall \ CheckNameErrorSoftwareReleaseDestroyedAfterRegisterCall \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
...@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin): ...@@ -16,7 +16,7 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_formated_computer + '\ sequence_string = self.prepare_formated_computer + '\
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
SelectNewSoftwareReleaseUri \ SelectNewSoftwareReleaseUri \
CheckNotFoundSoftwareReleaseErrorAfterRegisterCall \ CheckNameErrorSoftwareReleaseErrorAfterRegisterCall \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
...@@ -1969,7 +1969,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1969,7 +1969,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.assertTrue(isinstance(computer.getSoftwareReleaseList()[0], self.assertTrue(isinstance(computer.getSoftwareReleaseList()[0],
slap.SoftwareRelease)) slap.SoftwareRelease))
def stepCheckNotFoundSoftwareReleaseBuildingAfterRegisterCall(self, def stepCheckNameErrorSoftwareReleaseBuildingAfterRegisterCall(self,
sequence, **kw): sequence, **kw):
""" """
Check that calling SoftwareRelease.building after just registration raises a Check that calling SoftwareRelease.building after just registration raises a
...@@ -1980,7 +1980,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1980,7 +1980,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.slap.initializeConnection(self.server_url, timeout=None) self.slap.initializeConnection(self.server_url, timeout=None)
software_release = self.slap.registerSoftwareRelease(url) software_release = self.slap.registerSoftwareRelease(url)
self.assertRaises(slap.NotFoundError, software_release.building) self.assertRaises(NameError, software_release.building)
def stepCheckNotFoundSoftwareReleaseDestroyedCall(self, sequence, **kw): def stepCheckNotFoundSoftwareReleaseDestroyedCall(self, sequence, **kw):
computer_guid = sequence["computer_reference"] computer_guid = sequence["computer_reference"]
...@@ -1992,16 +1992,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1992,16 +1992,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
software_release._computer_guid = computer_guid software_release._computer_guid = computer_guid
self.assertRaises(slap.NotFoundError, software_release.destroyed) self.assertRaises(slap.NotFoundError, software_release.destroyed)
def stepCheckNotFoundSoftwareReleaseDestroyedAfterRegisterCall(self, sequence, def stepCheckNameErrorSoftwareReleaseDestroyedAfterRegisterCall(self, sequence,
**kw): **kw):
url = sequence["software_release_uri"] url = sequence["software_release_uri"]
self.slap = slap.slap() self.slap = slap.slap()
self.slap.initializeConnection(self.server_url, timeout=None) self.slap.initializeConnection(self.server_url, timeout=None)
software_release = self.slap.registerSoftwareRelease(url) software_release = self.slap.registerSoftwareRelease(url)
self.assertRaises(slap.NotFoundError, software_release.destroyed) self.assertRaises(NameError, software_release.destroyed)
def stepCheckNotFoundSoftwareReleaseAvailableAfterRegisterCall(self, sequence, def stepCheckNameErrorSoftwareReleaseAvailableAfterRegisterCall(self, sequence,
**kw): **kw):
""" """
Check that calling SoftwareRelease.available after just registration raises a Check that calling SoftwareRelease.available after just registration raises a
...@@ -2012,9 +2012,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2012,9 +2012,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.slap.initializeConnection(self.server_url, timeout=None) self.slap.initializeConnection(self.server_url, timeout=None)
software_release = self.slap.registerSoftwareRelease(url) software_release = self.slap.registerSoftwareRelease(url)
self.assertRaises(slap.NotFoundError, software_release.available) self.assertRaises(NameError, software_release.available)
def stepCheckNotFoundSoftwareReleaseErrorAfterRegisterCall(self, sequence, def stepCheckNameErrorSoftwareReleaseErrorAfterRegisterCall(self, sequence,
**kw): **kw):
""" """
Check that calling SoftwareRelease.error after just registration raises a Check that calling SoftwareRelease.error after just registration raises a
...@@ -2025,7 +2025,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2025,7 +2025,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.slap.initializeConnection(self.server_url, timeout=None) self.slap.initializeConnection(self.server_url, timeout=None)
software_release = self.slap.registerSoftwareRelease(url) software_release = self.slap.registerSoftwareRelease(url)
self.assertRaises(slap.NotFoundError, software_release.error, "ErrorLog") self.assertRaises(NameError, software_release.error, "ErrorLog")
def stepCheckNotFoundComputerPartitionBuildingAfterRegisterCall(self, sequence, def stepCheckNotFoundComputerPartitionBuildingAfterRegisterCall(self, sequence,
**kw): **kw):
......
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