Commit d07869d0 authored by Jérome Perrin's avatar Jérome Perrin

fixup! slapos-master: Update slapos-master instantiation tests based on ERP5 one.

parent 77d9ed24
Pipeline #8895 failed with stage
...@@ -46,3 +46,13 @@ class ERP5InstanceTestCase(SlapOSInstanceTestCase): ...@@ -46,3 +46,13 @@ class ERP5InstanceTestCase(SlapOSInstanceTestCase):
"""Return the output paramters from the root partition""" """Return the output paramters from the root partition"""
return json.loads( return json.loads(
self.computer_partition.getConnectionParameterDict()['_']) self.computer_partition.getConnectionParameterDict()['_'])
def getComputerPartition(self, partition_reference):
for computer_partition in self.slap.computer.getComputerPartitionList():
if partition_reference == computer_partition.getInstanceParameter(
'instance_title'):
return computer_partition
def getComputerPartitionPath(self, partition_reference):
partition_id = self.getComputerPartition(partition_reference).getId()
return os.path.join(self.slap._instance_root, partition_id)
  • It seems 24a4b08a was incomplete. This should fix the

    ======================================================================
    ERROR: test_zope_conf (test.test_erp5.TestZopeNodeParameterOverride)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/srv/slapgrid/slappart14/srv/testnode/cqg/soft/18d28ecd49e5e0f732e2ce0c00c57519/parts/slapos-repository/software/slapos-master/test/test/test_erp5.py", line 257, in test_zope_conf
        self.getComputerPartition('zodb').getConnectionParameter('_')
    AttributeError: 'TestZopeNodeParameterOverride' object has no attribute 'getComputerPartition'
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