Summary
postgres_instance_config_post and postgres_instance_config_patch have no live coverage. The existing postgres test explicitly defers this (see comment in tests/integration_postgres_test.rs Runtime Config phase) because PgConfig has non-Option serde_json::Value fields that serialize as null, which the live API rejects with Validation failed for following fields: pg_config.*.
Blocker
Either:
- OpenAPI spec marks the relevant fields as optional / nullable, and
update-models-optionality.py regenerates them as Option<Value>; or
- The generator emits
Option<Value> regardless.
Either path requires a fix upstream of this test issue.
Scope (once unblocked)
Extend tests/integration_postgres_test.rs Runtime Config phase:
postgres_instance_config_post — set an initial config (e.g. max_connections).
postgres_instance_config_get — confirm the change is visible.
postgres_instance_config_patch — change max_connections to another valid value.
postgres_instance_config_get — confirm the patched value.
- Optionally restore the original.
Where this lands
crates/clickhouse-cloud-api/tests/integration_postgres_test.rs
Parent: #151
Summary
postgres_instance_config_postandpostgres_instance_config_patchhave no live coverage. The existing postgres test explicitly defers this (see comment intests/integration_postgres_test.rsRuntime Configphase) becausePgConfighas non-Optionserde_json::Valuefields that serialize asnull, which the live API rejects withValidation failed for following fields: pg_config.*.Blocker
Either:
update-models-optionality.pyregenerates them asOption<Value>; orOption<Value>regardless.Either path requires a fix upstream of this test issue.
Scope (once unblocked)
Extend
tests/integration_postgres_test.rsRuntime Configphase:postgres_instance_config_post— set an initial config (e.g.max_connections).postgres_instance_config_get— confirm the change is visible.postgres_instance_config_patch— changemax_connectionsto another valid value.postgres_instance_config_get— confirm the patched value.Where this lands
crates/clickhouse-cloud-api/tests/integration_postgres_test.rsParent: #151