postgres-operator/pkg/util
Raphael Torquato db098bff96 test: add unit tests for validate() and NewFromMap() functions
This addresses issue #416 by adding comprehensive unit tests for the
config utility functions:

- TestValidate: Tests validation logic for MinInstances/MaxInstances,
  Workers count, ConnectionPooler instances, and user conflicts
- TestNewFromMap: Tests config creation from map with defaults,
  custom values, duration/boolean/map/slice parsing, and panic behavior
- TestMain: Sets OPERATOR_NAMESPACE env var for testing outside K8s

The tests cover both valid configurations and error cases.
2026-04-26 13:36:19 -03:00
..
config test: add unit tests for validate() and NewFromMap() functions 2026-04-26 13:36:19 -03:00
constants Do not set aws-load-balancer-connection-idle-timeout by default (#3054) 2026-04-24 14:23:54 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
httpclient Modernize code generation (#3003) 2026-01-09 14:22:10 +01:00
k8sutil Use UpdateStatus instead of patch (#3005) 2026-01-27 10:44:30 +01:00
nicediff End 2 End tests speedup (#1180) 2020-10-28 10:04:33 +01:00
patroni Extend MaintenanceWindows parameter usage (#2810) 2025-01-15 18:04:36 +01:00
retryutil Fix typo (#965) 2020-05-12 09:20:09 +02:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams add test team member (#1842) 2022-04-14 10:02:54 +02:00
users skip db user actions when its secret failed to sync on update (#2969) 2025-11-05 16:28:37 +01:00
volumes Modernize code generation (#3003) 2026-01-09 14:22:10 +01:00
util.go fix golangci-lint issues (#2715) 2024-08-14 12:54:44 +02:00
util_test.go add unit test and documentation for finalizers (#2509) 2024-01-22 12:13:40 +01:00