astronomer / astro-cli

CLI that makes it easy to create, test and deploy Airflow DAGs to Astronomer
https://www.astronomer.io
Other
341 stars 70 forks source link

throw error when an api token is bad or invalid #1602

Closed kushalmalani closed 4 months ago

kushalmalani commented 4 months ago

Description

Describe the purpose of this pull request.

throw error when an api token is bad or invalid

๐ŸŽŸ Issue(s)

Related #XXX

๐Ÿงช Functional Testing

List the functional testing steps to confirm this feature or fix.

๐Ÿ“ธ Screenshots

Add screenshots to illustrate the validity of these changes.

export ASTRO_API_TOKEN=test

Screenshot 2024-03-15 at 16 17 40

๐Ÿ“‹ Checklist

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 86.57%. Comparing base (5df0221) to head (1c880bb).

Files Patch % Lines
cmd/root.go 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1602 +/- ## ========================================== + Coverage 86.55% 86.57% +0.02% ========================================== Files 114 114 Lines 15935 15939 +4 ========================================== + Hits 13792 13799 +7 + Misses 1288 1284 -4 - Partials 855 856 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.