Skip to content

Fix stale docs URL in CLI auth warning#1149

Open
mvanhorn wants to merge 1 commit into
canonical:mainfrom
mvanhorn:fix/961-cli-auth-doc-url
Open

Fix stale docs URL in CLI auth warning#1149
mvanhorn wants to merge 1 commit into
canonical:mainfrom
mvanhorn:fix/961-cli-auth-doc-url

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Description

When the CLI returns a 401 because a feature requiring client authorisation was used without client credentials, it prints a help link pointing at https://testflinger.readthedocs.io/..., which is no longer the live docs host. This updates the warning to https://canonical-testflinger.readthedocs-hosted.com/en/latest/how-to/authentication/, matching the host already used elsewhere in the repo (server/agent charms and the submit GitHub action). The path is unchanged; only the stale host is corrected.

Resolved issues

Fixes #961

Documentation

No documentation changes. This points an existing user-facing message at the live docs page rather than the stale one.

Web service API changes

None.

Tests

grep -rn "testflinger.readthedocs.io" cli/testflinger_cli/ returns no matches after the change, and the concatenated URL resolves to the live canonical-testflinger.readthedocs-hosted.com authentication page. The string is not asserted by the existing CLI suite, so no test changes are needed.

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
@codecov

codecov Bot commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.01%. Comparing base (305e2f3) to head (89d1264).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1149   +/-   ##
=======================================
  Coverage   78.01%   78.01%           
=======================================
  Files         118      118           
  Lines       12412    12412           
  Branches     1023     1023           
=======================================
  Hits         9683     9683           
  Misses       2508     2508           
  Partials      221      221           
Flag Coverage Δ *Carryforward flag
agent 75.78% <ø> (ø) Carriedforward from 305e2f3
cli 91.85% <ø> (ø)
device 64.18% <ø> (ø) Carriedforward from 305e2f3
server 88.99% <ø> (ø) Carriedforward from 305e2f3

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
Agent 75.78% <ø> (ø)
CLI 91.85% <ø> (ø)
Common ∅ <ø> (∅)
Device Connectors 64.18% <ø> (ø)
Server 88.99% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Update authorization warning; points to page no longer available.

1 participant