Skip to content

Add live endpoint integration test - #108

Merged
dblock merged 1 commit into
masterfrom
dblock/revert-api-v3-url
Aug 24, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/revert-api-v3-url

Conversation

@dblock

@dblock dblock commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Background

PR #102 prematurely changed the default API base URL to Strava's future endpoint (https://www.api-v3.strava.com), which won't be live until Strava's developer program cutover (~2026/2027). The current, real, live endpoint is still https://www.strava.com/api/v3. This reverts that base URL change (keeping the revoke/deauthorize change from #102, which is independently valid) and adds a test to prevent this regressing again.

Changes

  • Reverts the default endpoint back to https://www.strava.com/api/v3 across lib, README, and VCR cassette fixtures.
  • Removes a hand-crafted (non-recorded) star_segment.yml VCR cassette.
  • Adds a live (non-mocked) integration test, spec/integration/api_endpoint_spec.rb, that requests the configured base URL and asserts a real 401 response, to catch regressions of this kind. Wired into a new rake spec:integration task (excluded from the default rake spec) and a new CI job that runs on every push/PR.

@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Danger Report

No issues found.

View run

dblock added a commit that referenced this pull request Aug 24, 2026
@dblock dblock changed the title Revert default API base URL, add live endpoint integration test Add live endpoint integration test Aug 24, 2026
@dblock
dblock force-pushed the dblock/revert-api-v3-url branch 2 times, most recently from b624e79 to 66a66eb Compare August 24, 2026 22:01
Reverts the default API base URL back to https://www.strava.com/api/v3,
since Strava's new https://www.api-v3.strava.com endpoint is not yet
live (keeping the revoke/deauthorize change from #102, which is
independently valid). Removes a hand-crafted (non-recorded)
star_segment.yml VCR cassette.

Adds a live (non-mocked) integration test that requests the configured
base URL and asserts a real 401 response, to catch regressions of this
kind. Wired into a new `rake spec:integration` task (excluded from the
default `rake spec`) and a new CI job that runs on every push/PR.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/revert-api-v3-url branch from 66a66eb to 5b06fbd Compare August 24, 2026 22:02
@dblock
dblock merged commit 34b24b2 into master Aug 24, 2026
20 checks passed
@dblock
dblock deleted the dblock/revert-api-v3-url branch August 24, 2026 22:03
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