Skip to content

Cover postgres_instance_config_post + postgres_instance_config_patch #163

@sdairs

Description

@sdairs

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

Metadata

Metadata

Assignees

Labels

blockedCan't be progressedenhancementNew feature or requesttest-coverageLive API integration test coverage work

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions