[
  {
    "id": "approved-first-time",
    "name": "The checker approves the first version",
    "inputs": {
      "changeId": "CHG-1"
    },
    "mocks": {
      "userTask": {
        "outputs": {
          "checkApproved": true
        }
      },
      "change-apply": {
        "outputs": {
          "changeRef": "APPLIED-1"
        }
      }
    },
    "expect": {
      "path": [
        "prepare-change",
        "check-change",
        "apply-change",
        "change-applied"
      ],
      "variables": {
        "revisions": 0,
        "changeRef": "APPLIED-1"
      }
    }
  },
  {
    "id": "three-rejections",
    "name": "Three rejections escalate to the change board",
    "inputs": {
      "changeId": "CHG-2"
    },
    "mocks": {
      "userTask": {
        "outputs": {
          "checkApproved": false
        }
      }
    },
    "expect": {
      "path": [
        "check-change",
        "count-revision",
        "prepare-change",
        "check-change",
        "count-revision",
        "prepare-change",
        "check-change",
        "count-revision",
        "change-board",
        "escalated"
      ],
      "variables": {
        "revisions": 3
      }
    }
  }
]
