Commit 6fbc6e15 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Łukasz Nowak

slaprunner: fix publishing of custom-frontend-url

parent c85e3b0c
......@@ -18,7 +18,7 @@ md5sum = 8b78e32b877d591400746ec7fd68ed4c
[template-runner]
filename = instance-runner.cfg
md5sum = 85ea0b78fd18428c242438ebe95f980b
md5sum = 87545b1f9f3865c8cb1347edeb340678
[template-runner-import-script]
filename = template/runner-import.sh.jinja2
......
......@@ -115,7 +115,7 @@ name = custom_frontend_ready_promise.py
config-command = $${custom-frontend-url-ready-promise-bin:rendered}
[publish-connection-information]
custom-frontend-url = $${custom-frontend-url-ready-promise:url}
custom-frontend-url = $${custom-frontend-url-ready-promise-bin:url}
{% endif %}
# Create all needed directories
......
......@@ -297,3 +297,18 @@ class TestInstanceResilient(SlaprunnerTestCase):
'takeover-runner-1-url',
'url',
'webdav-url']))
class TestCustomFrontend(SlaprunnerTestCase):
@classmethod
def getInstanceParameterDict(cls):
return {
'custom-frontend-backend-url': 'https://www.erp5.com',
'custom-frontend-backend-type': 'redirect',
}
def test(self):
parameter_dict = self.computer_partition.getConnectionParameterDict()
self.assertEqual(
parameter_dict['custom-frontend-url'],
'https://www.erp5.com')
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