Skip to content

Cover query endpoint GET + DELETE in service suite#172

Open
sdairs wants to merge 1 commit into
md/add-clickpipes-supportfrom
issue-158-query-endpoint-coverage
Open

Cover query endpoint GET + DELETE in service suite#172
sdairs wants to merge 1 commit into
md/add-clickpipes-supportfrom
issue-158-query-endpoint-coverage

Conversation

@sdairs
Copy link
Copy Markdown
Collaborator

@sdairs sdairs commented May 15, 2026

Summary

  • Adds an instance_query_endpoint_get step after the upsert that asserts the binding stored matches what we sent (id, roles, openApiKeys, allowedOrigins).
  • Adds an instance_query_endpoint_delete step before the API key delete, followed by a GET that must return 4xx — so the test can distinguish binding cleanup working from the API key being gone.
  • Extends CleanupRegistry with a query endpoint slot that is cleaned up before API keys on the failure path, preserving the same ordering invariant on panic/early-exit.

Closes #158.

Test plan

  • cargo build -p clickhouse-cloud-api
  • cargo test -p clickhouse-cloud-api (live tests remain #[ignore]; non-live suite passes)
  • Live cloud_service_crud_lifecycle run in CI exercises the new GET + DELETE steps end-to-end

@sdairs sdairs requested a review from iskakaushik as a code owner May 15, 2026 15:55
@sdairs sdairs temporarily deployed to cloud-integration May 15, 2026 15:55 — with GitHub Actions Inactive
Adds a GET-after-upsert assertion (roles, openApiKeys, allowedOrigins
match what we sent) and a DELETE step ordered before the API key
deletion so we can distinguish binding cleanup working from the API
key being gone. CleanupRegistry now tracks query endpoint bindings
and drops them before API keys for the same reason on the failure
path. Closes #158.
@sdairs sdairs force-pushed the issue-158-query-endpoint-coverage branch from e6cb746 to ad7011b Compare May 16, 2026 11:35
@sdairs sdairs changed the base branch from main to md/add-clickpipes-support May 16, 2026 11:35
@sdairs sdairs temporarily deployed to cloud-integration May 16, 2026 11:35 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Close service-suite query endpoint coverage — GET + DELETE

1 participant