Skip to content

Conversation

@alexskr
Copy link
Contributor

@alexskr alexskr commented Sep 25, 2025

alexskr added 8 commits July 23, 2025 17:03
Brings ontoportal-lirmm#7 into ncbo codebase
Updated PURL-related tests to assert only the HTTP 302 status and Location header,
without following the redirect to the BioPortal UI. This avoids triggering
Cloudflare bot protection during CI runs.

We do not want to test UI behavior here — we only verify that the
correct redirect is served by the PURL resolver. Testing how the UI handles or
rewrites URLs (e.g., with query parameters or concept ID fragments) is out of scope
for these tests.

Split PURL resolution tests into a new file test_class_purl.rb to separate
concerns from core class model tests in test_class.rb

Resolves /issues/41
… UI redirects

Updated tests for the `.purl` method to:
- Assert the constructed URL matches the expected output based on client config
- Confirm the PURL resolves via HTTP 302 to the correct UI target
- Avoid following the UI-level redirect to prevent Cloudflare issues in CI
- Used `@@purl_prefix` from config.purl_prefix.
Fix: Avoid following PURL redirects in unit tests
@alexskr alexskr merged commit d115613 into ontoportal:master Sep 25, 2025
1 check failed
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