posit-dev / publisher

MIT License
3 stars 0 forks source link

Return different errors based on whether the API key was provided #1888

Closed mmarchetti closed 4 days ago

mmarchetti commented 4 days ago

Intent

This PR causes the test-credentials API to return a different error if the request fails, based on whether an API key was provided or only a server URL.

Fixes #1875

Type of Change

Automated Tests

Added tests to cover all 4 combinations of

Directions for Reviewers

it's easiest to test this with the new UI in https://github.com/posit-dev/publisher/pull/1882.