Skip to content

Runbook Test Framework — CI-friendly validation #60

@jacobhuemmer

Description

@jacobhuemmer

Summary

Test runbooks in CI to catch broken scripts before deployment.

Design

  • dops test ./catalogs/infra/
  • test.yaml alongside runbook.yaml:
    tests:
      - name: dry run succeeds
        params: { namespace: test, replicas: "1" }
        dry_run: true
        expect:
          exit_code: 0
          output_contains: ["NAMESPACE=test"]
      - name: missing required param fails
        params: {}
        expect:
          exit_code: 1
  • JUnit XML output for CI integration
  • Run as GitHub Action

Impact

Shifts runbook validation left. Catches syntax errors, missing vars, broken logic before production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions