Commit 40db81a5 authored by Łukasz Nowak's avatar Łukasz Nowak

Pass all parameters correctly.

Additionaly request non shared partition.
parent ed9be1b1
...@@ -1138,12 +1138,17 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin): ...@@ -1138,12 +1138,17 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
self.login(self.start_requested_software_instance.getReference()) self.login(self.start_requested_software_instance.getReference())
self.start_requested_software_instance.requestInstance = Simulator( self.start_requested_software_instance.requestInstance = Simulator(
self.instance_request_simulator, 'requestInstance') self.instance_request_simulator, 'requestInstance')
response = self.portal_slap.requestComputerPartition(self.computer_id, response = self.portal_slap.requestComputerPartition(
partition_id, 'req_release', 'req_reference', computer_id=self.computer_id,
'<marshal><bool>1</bool></marshal>', computer_partition_id=partition_id,
'<marshal><dictionary id="i2"/></marshal>', software_release='req_release',
'<marshal><dictionary id="i2"/></marshal>', software_type='req_type',
'<marshal><string>started</string></marshal>') partition_reference='req_reference',
partition_parameter_xml='<marshal><dictionary id="i2"/></marshal>',
filter_xml='<marshal><dictionary id="i2"/></marshal>',
state='<marshal><string>started</string></marshal>',
shared_xml='<marshal><bool>0</bool></marshal>',
)
self.assertEqual(408, response.status) self.assertEqual(408, response.status)
self.assertEqual('private', self.assertEqual('private',
response.headers.get('cache-control')) response.headers.get('cache-control'))
...@@ -1158,4 +1163,4 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin): ...@@ -1158,4 +1163,4 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
finally: finally:
if os.path.exists(self.instance_request_simulator): if os.path.exists(self.instance_request_simulator):
os.unlink(self.instance_request_simulator) os.unlink(self.instance_request_simulator)
131 132
\ No newline at end of file \ No newline at end of file
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