1
0
Fork 0

Update: more tests and ssl health-check

- restructure more tests for the "mode http"
 - add tests tests for "mode tcp"
 - add the ability to ssl health check on a backend (in mode tcp)
This commit is contained in:
till 2020-06-05 16:27:02 +02:00
parent 08de132450
commit 75deebc783
No known key found for this signature in database
GPG key ID: B119050E2EBA1DC5
5 changed files with 59 additions and 12 deletions

View file

@ -101,6 +101,7 @@ class HaproxyConfigGenerator:
if key not in easymapping:
easymapping[key] = {
"mode": mode,
"health-check": "",
"port": port,
"hosts": dict(),
"redirect": dict(),
@ -112,6 +113,11 @@ class HaproxyConfigGenerator:
"80"
)
easymapping[key]["health-check"] = self.label.get(
self.label.create(["health-check", definition]),
""
)
easymapping[key]["hosts"][d[host_label]] = "{}:{}".format(container, ct_port)
# handle SSL