Bats test report 5c6d4fd6

Total: 56 | Passed: 56 | Failed: 0

#StatusTest
1PASSVERSION_FILE=Chart.yaml extracts version from YAML
2PASSVERSION_FILE=VERSION extracts version from plain text
3PASSVERSION_FILE=package.json extracts version from JSON
4PASSVERSION_FILE=subdir/Chart.yaml extracts version from monorepo
5PASSno VERSION_FILE, root VERSION found
6PASSno VERSION_FILE, root Chart.yaml found
7PASStag exists for commit sets ARTIFACT_EXISTS=true
8PASStag with prefix filters correctly
9PASSno tag, new version calculated
10PASShighest patch calculated correctly
11PASSVERSION_FILE=Chart-umbrella.yaml extracts only top-level version
12PASSno version source exits with error
13PASSmissing config file → exit 1
14PASSempty value in config → exit 1
15PASSinvalid URL in config → exit 1
16PASSmissing GITEA_TOKEN secret → exit 1
17PASSmissing GIT_PAGES_PUBLISH_TOKEN secret → exit 1
18PASSvalid config and all secrets → exit 0
19PASScomment and blank lines are ignored → exit 0
20PASSdispatch succeeds: POST 201, poll running x3 then success → exit 0
21PASSdispatch: poll returns failure conclusion → exit 1
22PASSdispatch: poll returns cancelled conclusion → exit 1
23PASStimeout: poll never completes, exceeds timeout_minutes → exit 124
24PASSdispatch API returns 500 → exit 1
25PASSPOST dispatch is called with correct URL and payload
26PASSmissing gitea_api_url argument → exit 1 with error message
27PASSmissing gitea_token argument → exit 1 with error message
28PASSmissing target_repo argument → exit 1
29PASSmissing workflow_file argument → exit 1
30PASSmissing ref argument → exit 1
31PASSdispatch: no workflow run found after dispatch → exit 1
32PASSmissing inputs_json argument → exit 1
33PASSmissing suite_path argument → exit 1
34PASSmissing GITEA_API_URL → exit 1
35PASSmissing GIT_PAGES_URL → exit 1
36PASSmissing GIT_PAGES_PUBLISH_TOKEN → exit 1
37PASSmissing GITHUB_REPOSITORY → exit 1
38PASSsuite path is not a directory → exit 1
39PASSvalid publish returns report base URL
40PASSpublish with suite subpath
41PASSgit-pages returns HTTP 500 → exit 1
42PASSmissing suite_path argument → exit 1
43PASSmissing GITEA_API_URL → exit 1
44PASSmissing GITEA_TOKEN → exit 1
45PASSmissing GIT_PAGES_URL → exit 1
46PASSmissing GIT_PAGES_PUBLISH_TOKEN → exit 1
47PASSpending status is POSTed with correct payload
48PASSsuccess status with custom key and suite builds report URL
49PASSfailure status constructs run URL when no suite
50PASSdefault key when not provided
51PASSAPI returns 500 causes exit 1
52PASScross-repo: ROOT_COMMIT and ROOT_REPO override target
53PASSmissing GITEA_API_URL causes exit 1 with error message
54PASSmissing GITEA_TOKEN causes exit 1 with error message
55PASSmissing required state argument causes exit 1
56PASSmissing required description argument causes exit 1