Skip to content

test(e2e): add extractor enricher coverage for dirctl import - #1849

Merged
paralta merged 2 commits into
agntcy:mainfrom
Shaurya2k06:test/extractor-enricher-e2e
Jul 20, 2026
Merged

paralta merged 2 commits into
agntcy:mainfrom
Shaurya2k06:test/extractor-enricher-e2e

Conversation

@Shaurya2k06

Copy link
Copy Markdown
Contributor

Import-based e2e tests currently force the static enricher via factory.Replace, so the enricher.extractor CLI path (loadExtractorFromConfig → LoadConfigured → oasfExtractorAdapter) is never exercised end-to-end. This adds a skip-gated local e2e that mirrors how users actually invoke the extractor enricher.

  • New tests/e2e/local/16_extractor_enricher_test.go skips unless ~/.agntcy/oasf-sdk/extractor/manifest.json is present (after dirctl init)
  • Writes an import YAML with enricher.extractor: {} and runs dirctl import on the shared A2A agent card fixture without factory.Replace
  • Pulls the resulting record and asserts at least one non-empty skill and domain

Verified locally with OrbStack: go test -C ./tests/e2e/local . -ginkgo.focus="Extractor enricher" → 2 Passed.

Closes #1848

@Shaurya2k06
Shaurya2k06 requested a review from a team as a code owner July 20, 2026 11:22
@github-actions github-actions Bot added the size/S Denotes a PR that changes 50-199 lines label Jul 20, 2026

@paralta paralta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to the project, and thanks for picking this up so promptly! This is exactly what was needed: a simple and effective end-to-end test for enricher.extractor. Approved ✅

@Shaurya2k06

Copy link
Copy Markdown
Contributor Author

Thanks! Open to trying something more difficult next 🚀

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@paralta
paralta merged commit 7ef9b0e into agntcy:main Jul 20, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 50-199 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add e2e test for the extractor enricher in the import pipeline

2 participants