bc6bb789Total: 70 | Passed: 70 | Failed: 0
| # | Status | Test |
|---|---|---|
| 1 | PASS | VERSION_FILE=Chart.yaml extracts version from YAML |
| 2 | PASS | VERSION_FILE=VERSION extracts version from plain text |
| 3 | PASS | VERSION_FILE=package.json extracts version from JSON |
| 4 | PASS | VERSION_FILE=subdir/Chart.yaml extracts version from monorepo |
| 5 | PASS | no VERSION_FILE, root VERSION found |
| 6 | PASS | no VERSION_FILE, root Chart.yaml found |
| 7 | PASS | tag exists for commit sets ARTIFACT_EXISTS=true |
| 8 | PASS | tag with prefix filters correctly |
| 9 | PASS | no tag, new version calculated |
| 10 | PASS | highest patch calculated correctly |
| 11 | PASS | VERSION_FILE=Chart-umbrella.yaml extracts only top-level version |
| 12 | PASS | no version source exits with error |
| 13 | PASS | missing config file → exit 1 |
| 14 | PASS | empty value in config → exit 1 |
| 15 | PASS | invalid URL in config → exit 1 |
| 16 | PASS | missing GITEA_TOKEN secret → exit 1 |
| 17 | PASS | missing GIT_PAGES_PUBLISH_TOKEN secret → exit 1 |
| 18 | PASS | valid config and all secrets → exit 0 |
| 19 | PASS | comment and blank lines are ignored → exit 0 |
| 20 | PASS | dispatch succeeds: POST 201, poll running x3 then success → exit 0 |
| 21 | PASS | dispatch: poll returns failure conclusion → exit 1 |
| 22 | PASS | dispatch: poll returns cancelled conclusion → exit 1 |
| 23 | PASS | timeout: no matching run found, exceeds timeout_minutes → exit 124 |
| 24 | PASS | dispatch API returns 500 → exit 1 |
| 25 | PASS | POST dispatch is called with correct URL and payload |
| 26 | PASS | missing gitea_api_url argument → exit 1 with error message |
| 27 | PASS | missing gitea_token argument → exit 1 with error message |
| 28 | PASS | missing target_repo argument → exit 1 |
| 29 | PASS | missing workflow_file argument → exit 1 |
| 30 | PASS | missing ref argument → exit 1 |
| 31 | PASS | dispatch: no workflow run found after dispatch → exit 124 (timeout) |
| 32 | PASS | missing inputs_json argument → exit 1 |
| 33 | PASS | missing GITEA_API_URL causes exit 1 |
| 34 | PASS | missing GITEA_TOKEN causes exit 1 |
| 35 | PASS | missing INPUT_FILE causes exit 1 |
| 36 | PASS | missing YQ_TPL causes exit 1 |
| 37 | PASS | missing VERSION causes exit 1 |
| 38 | PASS | missing SOURCE_REPO causes exit 1 |
| 39 | PASS | missing SOURCE_COMMIT causes exit 1 |
| 40 | PASS | _gitops_substitute replaces {{VERSION}} |
| 41 | PASS | CLONE_URL is constructed correctly from GITEA_API_URL |
| 42 | PASS | CLONE_URL works with http:// URL |
| 43 | PASS | _gitops_substitute handles multiple {{VERSION}} occurrences |
| 44 | PASS | git flow: clone yq add commit push |
| 45 | PASS | one commit-status call: gitops-repo only |
| 46 | PASS | missing GITOPS_REPO causes exit 1 |
| 47 | PASS | missing suite_path argument → exit 1 |
| 48 | PASS | missing GITEA_API_URL → exit 1 |
| 49 | PASS | missing GIT_PAGES_URL → exit 1 |
| 50 | PASS | missing GIT_PAGES_PUBLISH_TOKEN → exit 1 |
| 51 | PASS | missing GITHUB_REPOSITORY → exit 1 |
| 52 | PASS | suite path is not a directory → exit 1 |
| 53 | PASS | valid publish returns report base URL |
| 54 | PASS | publish with suite subpath |
| 55 | PASS | git-pages returns HTTP 500 → exit 1 |
| 56 | PASS | missing suite_path argument → exit 1 |
| 57 | PASS | missing GITEA_API_URL → exit 1 |
| 58 | PASS | missing GITEA_TOKEN → exit 1 |
| 59 | PASS | missing GIT_PAGES_URL → exit 1 |
| 60 | PASS | missing GIT_PAGES_PUBLISH_TOKEN → exit 1 |
| 61 | PASS | pending status is POSTed with correct payload |
| 62 | PASS | success status with custom key and suite builds report URL |
| 63 | PASS | failure status constructs run URL when no suite |
| 64 | PASS | default key when not provided |
| 65 | PASS | API returns 500 causes exit 1 |
| 66 | PASS | cross-repo: ROOT_COMMIT and ROOT_REPO override target |
| 67 | PASS | missing GITEA_API_URL causes exit 1 with error message |
| 68 | PASS | missing GITEA_TOKEN causes exit 1 with error message |
| 69 | PASS | missing required state argument causes exit 1 |
| 70 | PASS | missing required description argument causes exit 1 |