You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ed8e384
Browse filesBrowse the repository at this point in the historyBrowse files
test(oauth): check OAuth scopes against a live server
Add `pnpm test:scopes`, which signs in through the extension's OAuth flow
against a throwaway deployment (test/scopes/compose.yaml) and runs a probe
for every Coder API method and CLI request the extension makes with the
granted token. It also checks that each requested scope is needed by a
named probe, and asserts the exact error of known gaps.
`scopeProbes.test.ts` runs on every PR and uses the TypeScript checker to
find every CoderApi method src/ references, failing when one has no probe.
The workflow runs the suite on relevant changes against a pinned
coder-preview image, and nightly against `latest`. `pnpm test` and the CI
unit job leave it out.
0 commit comments