Add tests for plugin integration and improve plugin configuration handling
- Created fixtures for `services-with-cloudflare`, `services-with-deny-pages`, and `services-with-multiple-plugins`. - Added comprehensive test cases for `CloudflarePlugin`, `DenyPagesPlugin`, and `CleanupPlugin`. - Ensured proper configuration propagation to plugins using labels in `easymapping/__init__.py`. - Validated multi-plugin integration and consistent output in HAProxy configuration generation.
This commit is contained in:
parent
113b90a697
commit
91f8ff5d08
5 changed files with 524 additions and 0 deletions
8
src/tests/fixtures/services-with-cloudflare
vendored
Normal file
8
src/tests/fixtures/services-with-cloudflare
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"192.168.1.10": {
|
||||
"easyhaproxy.http.host": "example.com",
|
||||
"easyhaproxy.http.port": "80",
|
||||
"easyhaproxy.http.localport": "8080",
|
||||
"easyhaproxy.http.plugins": "cloudflare"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue