Skip to content

fix(tests): fix integration test assertions broken by server-side response format changes#2419

Merged
cmgrote merged 2 commits intomainfrom
BLDX-1041
Apr 17, 2026
Merged

fix(tests): fix integration test assertions broken by server-side response format changes#2419
cmgrote merged 2 commits intomainfrom
BLDX-1041

Conversation

@cmgrote
Copy link
Copy Markdown
Collaborator

@cmgrote cmgrote commented Apr 17, 2026

Summary

  • Removes overly strict updatedAssets.isEmpty() / updatedAssets.size() == 0 assertions from all delete/purge test methods — the Atlan backend now returns cascading side-effected assets in the UPDATE bucket of delete responses (server-side change ~April 10, 2026)
  • Fixes tests that asserted on nested relationship attributes (inputs/outputs, denyAssetTabs, badgeConditions) directly from mutation responses — these are no longer eagerly populated by the server; tests now do an explicit read-back to validate them
  • Relaxes strict updatedAssets count assertions in lineage tests to GUID-presence checks, since the server may return additional cascading updates

Fixes: BLDX-1041

Changed tests

Delete/purge assertions (45 lines removed across 20 files):
ADLSAssetTest, APIAssetTest, AirflowAssetTest, AnaplanAssetTest, AppAssetTest, AzureEventHubTest, CustomAssetTest, CustomMetadataTest, DataStudioAssetTest, DataverseAssetTest, FileTest, GCSAssetTest, GlossaryTest, InsightsTest, KafkaTest, PresetAssetTest, S3AssetTest, SQLAssetTest, SupersetAssetTest, TableSearchTest

Read-back fixes:

  • LineageTest.createLineageStart/EndLineageProcess.get(guid, true) to verify inputs/outputs
  • PersonaTest.updatePersonasPersona.get(qualifiedName, true) to verify denyAssetTabs
  • PurposeTest.updatePurposesPurpose.get(qualifiedName, true) to verify denyAssetTabs
  • PurposeTest.purgeAtlanTags — removed validateSingleUpdate (cleanup step, no response assertion needed)
  • CustomMetadataTest.createBadgesBadge.get(guid, true) for each of 4 badges to verify badgeConditions

Test plan

  • All previously failing delete/purge tests should pass (no more expected [true] but found [false] on empty updatedAssets)
  • LineageTest, PersonaTest, PurposeTest, CustomMetadataTest should pass with read-back validation
  • Create-operation assertions (ConnectionTest, AtlanLiveTest, ModelTest, PersonaTest.createPersonas, PurposeTest.createPurposes) are unchanged

🤖 Generated with Claude Code

cmgrote and others added 2 commits April 17, 2026 15:34
…tion

The Atlan backend no longer eagerly populates relationship attributes
(inputs/outputs on LineageProcess, denyAssetTabs on Persona/Purpose,
badgeConditions on Badge) in mutation responses. Verify these via an
explicit read-back instead of from the mutation response payload.

Also relaxes the strict updatedAssets count assertion in lineage tests
to presence-only checks (the server may now return additional cascading
updates), and drops the validateSingleUpdate assertion from purgeAtlanTags
which is a cleanup step that doesn't need response structure validation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
@cmgrote cmgrote merged commit 84dc671 into main Apr 17, 2026
7 checks passed
@cmgrote cmgrote added the bug Something isn't working label Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant