Title#
feat(bj-17): add 2d-bitbucket E2E tier (ingest-only smoke)
Problem#
Issue #557 tracks the addition of a new E2E tier 2d-bitbucket in agent-core-e2e that validates Bitbucket webhook ingestion. All work lands in agent-core-e2e — this issue closes when the rc/atlassian-integration RC merges to master.
Task / Link#
BJ-17 / AgentSDE/agent-core#557 See agent-core-e2e PR: https://github.com/AgentSDE/agent-core-e2e/pull/5617
Changes#
test/tiers/2d-bitbucket/bitbucket-webhook-ingest.e2e-spec.ts— ingest-only smoke: sends all Bitbucket fixtures, asserts 200, optional delivery row checkpackage.json— addstest:module:bitbucketscript (MODULE=bitbucket jest --config jest.module.config.js)- Imports
sendBitbucketWebhook(BJ-15) andstartSharedMockServer/stopSharedMockServer(BJ-16)
Notes#
- Full lifecycle happy-path (poll task phase transitions, mock request log assertions,
pullrequest:fulfilledclose-out) is deferred to BJ-19 — no Bitbucket-configured agent-core instance is currently deployed. - Ingest tests are auto-skipped when
BITBUCKET_WEBHOOK_SECRETis unset or agent-core is unreachable, so CI stays green on environments without a live target.
Testing#
- Spec runs against test instance (
AGENT_CORE_URL=http://localhost:8777) viaMODULE=bitbucket npm run test:module - Suite exits 0 gracefully when agent-core is unreachable (skip-if-unreachable logic)