update tests and configurators to handle cloudooo url preferences
... | @@ -5,6 +5,9 @@ subversion working copy paths and conversion server address. | ... | @@ -5,6 +5,9 @@ subversion working copy paths and conversion server address. |
It's not meant to be called by zelenium tests directly. | It's not meant to be called by zelenium tests directly. | ||
""" | """ | ||
if conversion_server_url is None and (conversion_server_address is None or conversion_server_port is None): | |||
|
|||
raise TypeError("argument conversion_server_url (or conversion_server_{address,port}) should not be None") | |||
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None) | pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None) | ||
if pref is None: | if pref is None: | ||
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", | pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", | ||
... | @@ -23,6 +26,7 @@ if pref is None: | ... | @@ -23,6 +26,7 @@ if pref is None: |
portal_type="System Preference", | portal_type="System Preference", | ||
priority=1) | priority=1) | ||
pref.setPreferredDocumentConversionServerUrl(conversion_server_url) | |||
pref.setPreferredOoodocServerAddress(conversion_server_hostname) | pref.setPreferredOoodocServerAddress(conversion_server_hostname) | ||
pref.setPreferredOoodocServerPortNumber(conversion_server_port) | pref.setPreferredOoodocServerPortNumber(conversion_server_port) | ||
... | ... |