Skip to content

Commit b9b3f11

Browse files
Tanq16cursoragent
andcommitted
fix integration tests to use working live endpoints
Use tanq16/anbu for unauthenticated ghr (GitHub release assets) and thinkbroadband 512MB for http. Document why terraform and link.testfile.org are unsuitable for CLI integration runs. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e340b3a commit b9b3f11

4 files changed

Lines changed: 35 additions & 28 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# Manual integration test: GitHub release download (unauthenticated, public repo).
3-
# Downloads the latest Terraform release asset for the current OS/arch from hashicorp/terraform.
3+
# Downloads the latest tanq16/anbu release asset for the current OS/arch.
44
set -euo pipefail
55

66
readonly DEST="${DANZO_TEST_DEST:-/mnt/usbdrive/danzo-tests}"
@@ -9,7 +9,7 @@ readonly DANZO_BIN="${DANZO:-danzo}"
99
mkdir -p "$DEST"
1010
cd "$DEST"
1111

12-
echo "==> ghr integration: hashicorp/terraform -> $DEST"
13-
echo " (asset filename is chosen by danzo from the release, e.g. terraform_*_linux_amd64.zip)"
14-
"$DANZO_BIN" ghr "hashicorp/terraform"
12+
echo "==> ghr integration: tanq16/anbu -> $DEST"
13+
echo " (asset filename is chosen by danzo from the release, e.g. anbu-linux-amd64.zip)"
14+
"$DANZO_BIN" ghr "tanq16/anbu"
1515
echo "==> done"

integration-tests/02-http-500mb.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

integration-tests/02-http-512mb.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
# Manual integration test: large HTTP download (unauthenticated).
3+
# ~512 MB static file with Accept-Ranges (good for multi-chunk danzo http).
4+
#
5+
# link.testfile.org/500MB is often behind Cloudflare (403 for CLI/curl); this URL is a
6+
# long-standing public test file that responds with plain 200 + Content-Length.
7+
set -euo pipefail
8+
9+
readonly DEST="${DANZO_TEST_DEST:-/mnt/usbdrive/danzo-tests}"
10+
readonly DANZO_BIN="${DANZO:-danzo}"
11+
readonly URL="https://download.thinkbroadband.com/512MB.zip"
12+
readonly OUT_NAME="512mb-thinkbroadband.zip"
13+
14+
mkdir -p "$DEST"
15+
16+
echo "==> http integration: large binary (~512 MB)"
17+
echo " URL: $URL"
18+
echo " dest: $DEST/$OUT_NAME"
19+
echo " (this will take a while depending on bandwidth)"
20+
"$DANZO_BIN" http "$URL" -o "$DEST/$OUT_NAME"
21+
echo "==> done"

integration-tests/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,33 @@ These are **not** Go unit tests. They are **optional, manually run** checks agai
1111

1212
Override with `DANZO_TEST_DEST` if that path is wrong on your system.
1313

14-
- Enough free space on the destination (the 500 MB HTTP test alone needs ~500 MB).
14+
- Enough free space on the destination (the large HTTP test needs **~512 MB**).
1515

1616
## Unauthenticated downloads
1717

1818
| Script | What it exercises |
1919
|--------|-------------------|
20-
| [`01-ghr-terraform.sh`](./01-ghr-terraform.sh) | `danzo ghr` — latest **Hashicorp Terraform** release asset for this OS/arch (public GitHub API, no token). |
21-
| [`02-http-500mb.sh`](./02-http-500mb.sh) | `danzo http`**500 MB** file from `link.testfile.org`. |
20+
| [`01-ghr-anbu.sh`](./01-ghr-anbu.sh) | `danzo ghr` — latest **anbu** (`tanq16/anbu`) release asset for this OS/arch (public GitHub API, no token). |
21+
| [`02-http-512mb.sh`](./02-http-512mb.sh) | `danzo http`**~512 MB** static file (`thinkbroadband.com`), `Accept-Ranges` friendly for multi-chunk downloads. |
22+
23+
**Why `tanq16/anbu`?** Small public repo with predictable per-platform zip assets on GitHub `releases/latest` (good fit for unauthenticated `ghr` checks).
24+
25+
**Why not `link.testfile.org/500MB`?** That host often returns **403** with a Cloudflare challenge for non-browser clients, so it is a poor fit for automated or CLI integration checks.
2226

2327
### How to run
2428

2529
From the repo root:
2630

2731
```bash
2832
chmod +x integration-tests/*.sh # once
29-
./integration-tests/01-ghr-terraform.sh
30-
./integration-tests/02-http-500mb.sh
33+
./integration-tests/01-ghr-anbu.sh
34+
./integration-tests/02-http-512mb.sh
3135
```
3236

3337
Or with a custom binary or destination:
3438

3539
```bash
36-
DANZO=/path/to/danzo DANZO_TEST_DEST=/mnt/other/volume/tests ./integration-tests/01-ghr-terraform.sh
40+
DANZO=/path/to/danzo DANZO_TEST_DEST=/mnt/other/volume/tests ./integration-tests/01-ghr-anbu.sh
3741
```
3842

3943
## Notes

0 commit comments

Comments
 (0)