postgres-operator/pkg
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
..
apis feature toggle for using maintenance windows (#3074) 2026-04-16 17:13:18 +02:00
apiserver Add operator deployment readiness probe (#1874) 2023-01-05 18:29:47 +01:00
cluster Do not set aws-load-balancer-connection-idle-timeout by default (#3054) 2026-04-24 14:23:54 +02:00
controller feature toggle for using maintenance windows (#3074) 2026-04-16 17:13:18 +02:00
generated Regenerate code for 2026 header (#3029) 2026-01-09 15:38:16 +01:00
spec Generate CRD for postgresteam resource (#3004) 2026-01-10 19:39:08 +01:00
teams Generate CRD for postgresteam resource (#3004) 2026-01-10 19:39:08 +01:00
util test: add unit tests for validate() and NewFromMap() functions 2026-04-26 13:36:19 -03:00