Skip to content

Add smoke test for Custom Metadata SDK grouping#105

Merged
steve-calvert-glean merged 2 commits into
mainfrom
custom-metadata-overlay-smoke-test
May 14, 2026
Merged

Add smoke test for Custom Metadata SDK grouping#105
steve-calvert-glean merged 2 commits into
mainfrom
custom-metadata-overlay-smoke-test

Conversation

@chinmaya-singal-glean
Copy link
Copy Markdown
Contributor

Summary

Adds an assertion in tests/post_transform_smoke.test.js that the five Custom Metadata operations land under x-speakeasy-group: indexing.customMetadata with the expected x-speakeasy-name-override values (upsert, delete, getSchema, upsertSchema, deleteSchema).

This was originally part of #101 but removed before merge because the regen pipeline hadn't yet committed a fresh overlayed_specs/glean-merged-spec.yaml. With that file now on main, the assertion is meaningful and protects against future overlay reorders or upstream schema renames silently breaking SDK grouping.

Test plan

  • pnpm test — all 64 tests pass locally.

🤖 Generated with Claude Code

Asserts that the five Custom Metadata operations exposed by the overlay
end up under x-speakeasy-group: indexing.customMetadata with the
expected x-speakeasy-name-override values, so a future overlay reorder
or upstream schema rename surfaces as a test failure rather than silent
SDK drift.

This test was originally part of #101 but removed before merge because
the regen pipeline hadn't yet committed a fresh
overlayed_specs/glean-merged-spec.yaml. With that file now in place on
main, the assertion is meaningful again.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chinmaya-singal-glean chinmaya-singal-glean marked this pull request as ready for review May 14, 2026 13:22
@chinmaya-singal-glean chinmaya-singal-glean requested a review from a team as a code owner May 14, 2026 13:22
…ition

The overlay introduces a Custom Metadata-specific PropertyDefinition
schema (exposing only name, propertyType, and skipIndexing) and
re-points CustomMetadataSchema.metadataKeys.items at it. This test
locks both halves down so that neither an upstream rename of
CustomMetadataSchema/PropertyDefinition nor a future overlay reorder
can silently revert the narrowing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@steve-calvert-glean steve-calvert-glean merged commit 7af2313 into main May 14, 2026
2 checks passed
@steve-calvert-glean steve-calvert-glean deleted the custom-metadata-overlay-smoke-test branch May 14, 2026 15:26
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.

2 participants