ingress-nginx-helm/test/e2e
Moh Basher fea7fed6da
Disable default modsecurity_rules_file if modsecurity-snippet is specified (#8021)
* Disabled default modsecurity_rules_file if modsecurity-snippet is specifed

The default modsecurity_rules_file overwrites the ModSecurity-snippet if it is specified with custom config settings like "SecRuleEngine On". This will not let Modsecurity be in blocking mode even if "SecRuleEngine On" is specified in the ModSecurity-snippet configuration

* Remove unnecessary comments

Only have the default Modsecurity conf settings in case Modsecurity configuration snippet is not present and remove unnecessary comments

* Fixed modsecurity default file only if Modsecurity snippet present

Fixed if condition  Modsecurity snippet present have modsecurity default config file

* Added e2e test to disabling modsecurity conf

Added e2e in case modsecurity-snippet enabled to disable settings in default modsecurity.conf

* Validate writing to a different location

Validate also modsecurity to write to a different location instead of the default directory

* Fixed the formatting

* Fixed if empty ModsecuritySnippet

* Fixed ModsecuritySnippet condition

* Fixed the condition also in ingress controller template

* Removed the default config condition  in ingress controller template

* Fixed the default config condition in ingress controller template

* Fixed pull-ingress-nginx-test

* Revert "Fixed the default config condition in ingress controller template"

This reverts commit 9d38eca40f.

* Revert template_test

* Adjusted the formating %v
2021-12-23 03:34:38 -08:00
..
admission Improve admission e2e-tests (#7953) 2021-11-28 18:33:22 -08:00
annotations Disable default modsecurity_rules_file if modsecurity-snippet is specified (#8021) 2021-12-23 03:34:38 -08:00
dbg Refactor e2e tests to use testify y httpexpect 2020-02-19 19:42:50 -03:00
defaultbackend Release v1 (#7470) 2021-08-21 13:42:00 -07:00
framework update default block list,docs, tests (#7942) 2021-11-23 09:06:17 -08:00
gracefulshutdown Fix nilpointer in admission and remove failing test (#7255) 2021-06-21 12:32:51 -07:00
ingress Add option to sanitize annotation inputs (#7874) 2021-11-12 11:40:30 -08:00
leaks Release v1 (#7470) 2021-08-21 13:42:00 -07:00
loadbalance End-to-end tests for canary affinity (#7529) 2021-08-24 05:05:14 -07:00
lua Release v1 (#7470) 2021-08-21 13:42:00 -07:00
security Use net.JoinHostPort to avoid IPV6 issues 2020-09-02 22:58:51 -04:00
servicebackend Trigger syncIngress on Service addition/deletion #7346 (#7374) 2021-09-07 10:47:16 -07:00
settings update default block list,docs, tests (#7942) 2021-11-23 09:06:17 -08:00
ssl Replace request_uri 2020-09-27 20:26:39 -03:00
status Release v1 (#7470) 2021-08-21 13:42:00 -07:00
tcpudp Remove unused variables and verbose e2e logs 2020-06-29 18:11:01 -04:00
e2e.go put modsecurity e2e tests into their own packages (#7560) 2021-09-07 10:35:22 -07:00
e2e_test.go Remove comment from e2e_test.go (#5094) 2020-02-17 06:55:38 -03:00
kind.yaml Improve e2e speed execution time 2020-09-30 14:42:15 -03:00
run-chart-test.sh Release v1 (#7470) 2021-08-21 13:42:00 -07:00
run.sh Release v1 (#7470) 2021-08-21 13:42:00 -07:00
wait-for-nginx.sh Release v1 (#7470) 2021-08-21 13:42:00 -07:00