Commit a8115fc4 authored by Romain Courteaud's avatar Romain Courteaud 🐙

testing/e2e: fixup recent e2e_regression

The regression comes from nexedi/slapos.core@b0031eeb
which changed the getConnectionParameterDict behaviour.
parent 8ddc1e98
......@@ -8,6 +8,7 @@ import xml.etree.ElementTree as ET
import requests
import re
import slapos.client
from slapos.slap import ResourceNotReady
import urllib.parse
from logging.handlers import RotatingFileHandler
......@@ -63,7 +64,11 @@ class EndToEndTestCase(unittest.TestCase):
instance_name = args[1]
cls._requested[instance_name] = (args, kw)
partition = cls._request(*args, **kw)
try:
return cls.unwrapConnectionDict(partition.getConnectionParameterDict())
except ResourceNotReady:
# Instance has not yet been allocated, and could not retrieve any info
return {}
@classmethod
def supply(cls, software_release, computer_id, state):
......
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