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:
parent
08de132450
commit
75deebc783
5 changed files with 59 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue