Skip to content

test: add Temporal workflow unit tests#44

Merged
Amertz08 merged 1 commit into
mainfrom
claude/workflow-tests
May 15, 2026
Merged

test: add Temporal workflow unit tests#44
Amertz08 merged 1 commit into
mainfrom
claude/workflow-tests

Conversation

@Amertz08
Copy link
Copy Markdown
Owner

Summary

  • Adds 17 unit tests across 4 files covering all Temporal workflows (IAM, VPC, EKS, infrastructure)
  • Uses the Temporal testsuite package (struct-based testify suite) with mocked activities via env.OnActivity()
  • Tests cover: invalid input validation, happy paths, and saga compensation on failure
  • Child workflows registered in the infra suite so they execute inline during tests

Test plan

  • go test -v ./internal/workflows/... — all 17 tests pass
  • Saga compensation verified: node role failure triggers cluster role deletion; subnet failure triggers VPC deletion; node group failure triggers cluster deletion

🤖 Generated with Claude Code

17 tests across IAM, VPC, EKS, and infrastructure workflows using the
Temporal testsuite package with mocked activities and child workflow
registration. Covers happy paths, invalid input validation, and saga
compensation on failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Amertz08 Amertz08 merged commit a0e9b02 into main May 15, 2026
1 check passed
@Amertz08 Amertz08 deleted the claude/workflow-tests branch May 15, 2026 02:15
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