Files
postgres-operator/pkg/util
Raphael TorquatoandFelix Kunde 26165be2d5 test: add unit tests for validate() and NewFromMap() functions (#3086)
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.

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2026-06-02 10:45:44 +02:00
..
2020-10-28 10:04:33 +01:00
2020-05-12 09:20:09 +02:00
2022-04-14 10:02:54 +02:00
2026-01-09 14:22:10 +01:00
2024-08-14 12:54:44 +02:00