Skip to content

Recognize both Static landing pages and reject HTTP errors - #18

Merged
sciabarracom merged 1 commit into
apache:0.9.0from
miki3421:fix-0.9.0-static-landing-page
Oct 22, 2026
Merged

sciabarracom merged 1 commit into
apache:0.9.0from
miki3421:fix-0.9.0-static-landing-page

Conversation

@miki3421

Copy link
Copy Markdown
Contributor

Problem and change

After #17, the Static test still expects the old single-line landing-page sentence. The current operator page separates the welcome heading from the static-content description, causing the test to fail despite serving the correct page.

Require both the OpenServerless welcome text and the static-content landing description, accepting both existing templates. Fetch the page with curl HTTP-error handling and bounded connection/request timeouts before checking its contents. Preserve the existing retry loop and Kind skip.

This follows merged PR #17 and changes only tests/7-static.sh on top of current 0.9.0.

Validation

  • Seven real local HTTP fixture scenarios passed: current/legacy upstream templates accepted; unrelated pages, missing markers and HTTP 404/500 rejected, including error responses containing the expected HTML. Kubernetes/OPS setup was stubbed for these fixture scenarios.
  • Four injected config/update error scenarios still pass across both scripts, preserving the original failing status and stopping execution.
  • Both complete scripts passed on the existing synthetic K3s baseline: 5-sys-seaweedfs.sh and 7-static.sh k3s, exit 0. Static retried an initial 404 and then printed SUCCESS STATIC.
  • Bash syntax and git diff --check passed. No Alpha/Beta code or amdtest files changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants