Skip to content

test(core): cross-lexicon mocked-CLI lifecycle integration #163

Closed

Description

@lex00

Outcome

The seam between the core lifecycle driver and the real lexicon plugins is proven — export→diff→changeset→apply runs through aws/gcp/k8s/azure plugins, not synthetic mocks.

Problem

import-live.test.ts and the --live diff handler run only against createMockPlugin fixtures. The integration between core (liveImportFromPlugins, runLifecycleDiff, diffLive, buildChangeSet) and a real plugin's exporter/describer is never asserted.

Scope

  • Add packages/core/src/lifecycle/integration.test.ts driving the real aws/gcp/k8s/azure plugins through the live-import driver (packages/core/src/cli/commands/import.ts) and the --live diff handler (packages/core/src/cli/handlers/lifecycle.ts), with spawn/exec mocked at the edge returning canned cloud payloads.
  • Assert the full chain: export → IR → generated source; describe → diffLive → buildChangeSet verdicts (create/update/adopt/delete), including owned-orphan→delete and foreign-orphan→adopt.
  • One matrix row per cloud (aws, gcp, k8s, azure).

Acceptance criteria

  • All four clouds exercised through the same driver.
  • Change-set verdicts asserted per row.
  • npx vitest run packages/core/src/lifecycle green.

Depends on

#159 (azure row needs the azure exporter).

Activity

  1. added
    enhancement
    on Jun 2, 2026
  2. added a commit that references this issue on Jun 2, 2026
    50e84f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions