Skip not implemented tests

parent 2a0b4788
...@@ -273,11 +273,14 @@ class TestComputer(SlapMixin): ...@@ -273,11 +273,14 @@ class TestComputer(SlapMixin):
partition_id) partition_id)
self.assertEqual(self.computer.getComputerPartitionList(), []) self.assertEqual(self.computer.getComputerPartitionList(), [])
@unittest.skip("Not implemented")
def test_computer_reportUsage_non_valid_xml_raises(self): def test_computer_reportUsage_non_valid_xml_raises(self):
""" """
Asserts that calling Computer.reportUsage with non DTD Asserts that calling Computer.reportUsage with non DTD
(not defined yet) XML raises (not defined yet) exception (not defined yet) XML raises (not defined yet) exception
""" """
self.computer_guid = self._getTestComputerId() self.computer_guid = self._getTestComputerId()
self.slap = slapos.slap.slap() self.slap = slapos.slap.slap()
self.slap.initializeConnection(self.server_url) self.slap.initializeConnection(self.server_url)
...@@ -288,6 +291,7 @@ class TestComputer(SlapMixin): ...@@ -288,6 +291,7 @@ class TestComputer(SlapMixin):
self.assertRaises(UndefinedYetException, self.computer.reportUsage, self.assertRaises(UndefinedYetException, self.computer.reportUsage,
non_dtd_xml) non_dtd_xml)
@unittest.skip("Not implemented")
def test_computer_reportUsage_valid_xml_invalid_partition_raises(self): def test_computer_reportUsage_valid_xml_invalid_partition_raises(self):
""" """
Asserts that calling Computer.reportUsage with DTD (not defined Asserts that calling Computer.reportUsage with DTD (not defined
...@@ -675,7 +679,6 @@ class TestOpenOrder(SlapMixin): ...@@ -675,7 +679,6 @@ class TestOpenOrder(SlapMixin):
requested_partition_id = 'PARTITION_01' requested_partition_id = 'PARTITION_01'
def server_response(self, path, method, body, header): def server_response(self, path, method, body, header):
parsed_url = urlparse.urlparse(path.lstrip('/')) parsed_url = urlparse.urlparse(path.lstrip('/'))
parsed_qs = urlparse.parse_qs(parsed_url.query)
from slapos.slap.slap import SoftwareInstance from slapos.slap.slap import SoftwareInstance
slap_partition = SoftwareInstance( slap_partition = SoftwareInstance(
slap_computer_id=computer_guid, slap_computer_id=computer_guid,
......
...@@ -1415,6 +1415,7 @@ exit 0""" % {'worked_file': worked_file, 'lockfile': lockfile}) ...@@ -1415,6 +1415,7 @@ exit 0""" % {'worked_file': worked_file, 'lockfile': lockfile})
self.assertEquals(self.error, 1) self.assertEquals(self.error, 1)
self.assertFalse(self.started) self.assertFalse(self.started)
@unittest.skip("Not implemented")
def test_slapgrid_processes_partition_after_global_timeout(self): def test_slapgrid_processes_partition_after_global_timeout(self):
""" """
Test that slapgrid processes again partition after delay defined by Test that slapgrid processes again partition after delay defined by
...@@ -1423,6 +1424,7 @@ exit 0""" % {'worked_file': worked_file, 'lockfile': lockfile}) ...@@ -1423,6 +1424,7 @@ exit 0""" % {'worked_file': worked_file, 'lockfile': lockfile})
# XXX Not implemented # XXX Not implemented
pass pass
@unittest.skip("Not implemented")
def test_slapgrid_processes_partition_after_timeout_defined_by_software_release(self): def test_slapgrid_processes_partition_after_timeout_defined_by_software_release(self):
""" """
Test that if SR of instance defines a "buildotu delay", slapgrid processes Test that if SR of instance defines a "buildotu delay", slapgrid processes
......
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