Bats test report bc6bb789

Total: 70 | Passed: 70 | 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: no matching run found, 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 124 (timeout)
32PASSmissing inputs_json argument → exit 1
33PASSmissing GITEA_API_URL causes exit 1
34PASSmissing GITEA_TOKEN causes exit 1
35PASSmissing INPUT_FILE causes exit 1
36PASSmissing YQ_TPL causes exit 1
37PASSmissing VERSION causes exit 1
38PASSmissing SOURCE_REPO causes exit 1
39PASSmissing SOURCE_COMMIT causes exit 1
40PASS_gitops_substitute replaces {{VERSION}}
41PASSCLONE_URL is constructed correctly from GITEA_API_URL
42PASSCLONE_URL works with http:// URL
43PASS_gitops_substitute handles multiple {{VERSION}} occurrences
44PASSgit flow: clone yq add commit push
45PASSone commit-status call: gitops-repo only
46PASSmissing GITOPS_REPO causes exit 1
47PASSmissing suite_path argument → exit 1
48PASSmissing GITEA_API_URL → exit 1
49PASSmissing GIT_PAGES_URL → exit 1
50PASSmissing GIT_PAGES_PUBLISH_TOKEN → exit 1
51PASSmissing GITHUB_REPOSITORY → exit 1
52PASSsuite path is not a directory → exit 1
53PASSvalid publish returns report base URL
54PASSpublish with suite subpath
55PASSgit-pages returns HTTP 500 → exit 1
56PASSmissing suite_path argument → exit 1
57PASSmissing GITEA_API_URL → exit 1
58PASSmissing GITEA_TOKEN → exit 1
59PASSmissing GIT_PAGES_URL → exit 1
60PASSmissing GIT_PAGES_PUBLISH_TOKEN → exit 1
61PASSpending status is POSTed with correct payload
62PASSsuccess status with custom key and suite builds report URL
63PASSfailure status constructs run URL when no suite
64PASSdefault key when not provided
65PASSAPI returns 500 causes exit 1
66PASScross-repo: ROOT_COMMIT and ROOT_REPO override target
67PASSmissing GITEA_API_URL causes exit 1 with error message
68PASSmissing GITEA_TOKEN causes exit 1 with error message
69PASSmissing required state argument causes exit 1
70PASSmissing required description argument causes exit 1