Commit 5cd13fcd authored by Romain Courteaud's avatar Romain Courteaud

getId now raises if instance is not allocated yet

parent 2257678a
...@@ -343,10 +343,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -343,10 +343,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
partition_parameter_kw=sequence.get('requested_parameter_dict', {}), partition_parameter_kw=sequence.get('requested_parameter_dict', {}),
filter_kw=sequence.get('requested_filter_dict', {}), filter_kw=sequence.get('requested_filter_dict', {}),
state=sequence.get('requested_state')) state=sequence.get('requested_state'))
sequence.edit( try:
requested_slap_computer_partition=requested_slap_computer_partition, requested_slap_computer_partition.getId()
requested_computer_partition_reference=\ except slap.ResourceNotReady:
requested_slap_computer_partition.getId()) pass
else:
sequence.edit(
requested_slap_computer_partition=requested_slap_computer_partition,
requested_computer_partition_reference=\
requested_slap_computer_partition.getId())
def stepSetCurrentComputerPartitionFromRequestedComputerPartition(self, sequence): def stepSetCurrentComputerPartitionFromRequestedComputerPartition(self, sequence):
sequence['computer_partition_reference'] = \ sequence['computer_partition_reference'] = \
...@@ -2024,10 +2029,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2024,10 +2029,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
# tic as request is done on slap level library # tic as request is done on slap level library
self.stepTic() self.stepTic()
sequence.edit( try:
requested_slap_computer_partition=requested_slap_computer_partition, requested_slap_computer_partition.getId()
requested_computer_partition_reference=\ except slap.ResourceNotReady:
requested_slap_computer_partition.getId()) pass
else:
sequence.edit(
requested_slap_computer_partition=requested_slap_computer_partition,
requested_computer_partition_reference=\
requested_slap_computer_partition.getId())
def stepRequestSlaveInstanceFromComputerPartitionNotFoundError(self, sequence, **kw): def stepRequestSlaveInstanceFromComputerPartitionNotFoundError(self, sequence, **kw):
software_release_uri = sequence['software_release_uri'] software_release_uri = sequence['software_release_uri']
......
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