From a41f7d0386f82dc070fa22227feacfe59c9c217b Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Wed, 27 Jul 2011 03:51:07 -0300 Subject: [PATCH] Include specifc test to check first request is NotReady --- .../Vifib/tests/testVifibSlapWebService.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/master/product/Vifib/tests/testVifibSlapWebService.py b/master/product/Vifib/tests/testVifibSlapWebService.py index 28c80509d..dfdb8bb76 100644 --- a/master/product/Vifib/tests/testVifibSlapWebService.py +++ b/master/product/Vifib/tests/testVifibSlapWebService.py @@ -4442,6 +4442,22 @@ class TestVifibSlapWebService(testVifibMixin): ######################################## # ComputerPartition.request - slave ######################################## + def test_ComputerPartition_request_slave_firstNotReady(self): + """ + Check that first call to request raises NotReady response + """ + self.computer_partition_amount = 2 + sequence_list = SequenceList() + sequence_string = self.prepare_install_requested_computer_partition_sequence_string + '\ + SlapLoginCurrentSoftwareInstance \ + SelectEmptyRequestedParameterDict \ + SetRandomRequestedReference \ + RequestSlaveInstanceFromComputerPartitionNotReadyResponse \ + SlapLogout \ + ' + sequence_list.addSequenceString(sequence_string) + sequence_list.play(self) + def test_ComputerPartition_request_slave_simpleCase(self): """ Check that requesting shared partition works in system capable to fulfill -- 2.30.9