Skip to content

test: cover asymmetric CORS site counts - #81

Merged
Vonng merged 1 commit into
mainfrom
codex/issue-75-closeout-tests
Aug 29, 2026
Merged

test: cover asymmetric CORS site counts#81
Vonng merged 1 commit into
mainfrom
codex/issue-75-closeout-tests

Conversation

@Vonng

@Vonng Vonng commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

Add the remaining explicit #75 checklist regression for TotalCorsConfigCount using the real siteReplicationStatus seam and an HTTP peer metadata endpoint.

The test covers:

  • no site has a live CORS config: local 0, remote 0
  • local site only: local 1, remote 0
  • remote site only: local 0, remote 1
  • both sites: local 1, remote 1

Validation

  • go test -race ./cmd -run '^TestSiteReplicationStatusCountsCorsPerSite$' -count=1: pass on both ObjectLayer backends
  • production code is unchanged

Refs #75.

Exercise no-site, local-only, remote-only, and both-site CORS summary accounting through the real siteReplicationStatus seam.

Refs #75

Signed-off-by: Feng Ruohang <rh@vonng.com>
@Vonng
Vonng merged commit 04d3d31 into main Aug 29, 2026
8 checks passed
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.

1 participant