Skip to content

fix(test): green the 2 core schema-test failures - #1403

Merged
mstomar125 merged 1 commit into
NodeSpaceAI:mainfrom
mstomar125:fix/schema-id-test-and-person-collision
Jun 10, 2026
Merged

mstomar125 merged 1 commit into
NodeSpaceAI:mainfrom
mstomar125:fix/schema-id-test-and-person-collision

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

The only red in a full core diagnostic — 2 failing schema tests.

  • test_update_schema_add_valid_title_template created a base schema named "Person", which now collides with the core person schema added by ADR-037 (Implement PersonNodeBehavior #1401): Schema 'Person' already exists. Renamed the test entity to "Employee". (Regression from Implement PersonNodeBehavior #1401.)
  • test_integration_schema_id_generation asserted "customer-invoice" (hyphen), but normalize_schema_id joins on _ — its dedicated unit tests (normalize_schema_id_tests) confirm "Customer Profile" → "customer_profile". The hyphenated core ids (code-block, …) are hardcoded, not generated through this path. Fixed the assertion to "customer_invoice" and the stale doc example. (Pre-existing.)

cargo test -p nodespace-core --lib: 954 passed, 0 failed (was 952/2). Test-only + a doc comment; no behavior change.

- test_update_schema_add_valid_title_template created a "Person" base schema,
  which now collides with the core `person` schema (ADR-037 #1401) — rename the
  test entity to "Employee".
- test_integration_schema_id_generation asserted "customer-invoice" (hyphen),
  but normalize_schema_id joins on '_' (its dedicated unit tests confirm; the
  hyphenated core ids like code-block aren't generated through it) — assert
  "customer_invoice" and fix the stale "→ customer-profile" doc example.

cargo test -p nodespace-core --lib: 954 passed, 0 failed.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mstomar125
mstomar125 merged commit a9793d4 into NodeSpaceAI:main Jun 10, 2026
malibio pushed a commit that referenced this pull request Jun 22, 2026
- test_update_schema_add_valid_title_template created a "Person" base schema,
  which now collides with the core `person` schema (ADR-037 #1401) — rename the
  test entity to "Employee".
- test_integration_schema_id_generation asserted "customer-invoice" (hyphen),
  but normalize_schema_id joins on '_' (its dedicated unit tests confirm; the
  hyphenated core ids like code-block aren't generated through it) — assert
  "customer_invoice" and fix the stale "→ customer-profile" doc example.

cargo test -p nodespace-core --lib: 954 passed, 0 failed.

Co-authored-by: Mayank  Tomar <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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.

1 participant