• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

astronomer / astro-cli / bd0008aa-1a67-44ce-bf76-235040fa846e
35%
main: 33%

Build:
Build:
LAST BUILD BRANCH: fix/1974
DEFAULT BRANCH: main
Ran 05 Feb 2026 08:43PM UTC
Jobs 1
Files 184
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Feb 2026 08:38PM UTC coverage: 33.306% (+0.2%) from 33.15%
bd0008aa-1a67-44ce-bf76-235040fa846e

push

circleci

jeremybeard
Add `astro api` command for authenticated Airflow and Cloud API requests

Introduce the `astro api` top-level command with two subcommands:

  astro api airflow — make requests to the Airflow REST API (local or
  deployed), with automatic version detection (2.x, 3.0.x, 3.0.3+) and
  OpenAPI spec resolution.

  astro api cloud — make requests to the Astro Cloud platform API using
  the current context's bearer token.

Both subcommands support:
  - Endpoint discovery via `ls` and `describe` (parsed from OpenAPI specs)
  - Calling endpoints by operation ID or raw path
  - Pagination (per-page streaming or --slurp into a single array)
  - Response caching with TTL and automatic stale-entry cleanup
  - jq filters and Go-template output formatting
  - Colored JSON output
  - --curl flag to emit equivalent curl commands
  - Magic field syntax for request bodies (@file, :=json, =string)
  - Custom headers and path-parameter overrides

Supporting packages:
  - pkg/openapi: OpenAPI spec fetching, caching, endpoint indexing,
    Airflow version-range mapping, and schema introspection.

Includes unit tests for request handling, output formatting, field
parsing, OpenAPI version mapping, endpoint indexing, and caching.

903 of 2396 new or added lines in 13 files covered. (37.69%)

9 existing lines in 1 file now uncovered.

21761 of 65337 relevant lines covered (33.31%)

8.3 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
78.95
pkg/openapi/airflow_versions.go
21
83.2
pkg/openapi/endpoints.go
34
0.0
cmd/api/api.go
41
0.0
pkg/openapi/schema.go
43
65.32
cmd/api/output.go
52
65.56
cmd/api/fields.go
131
72.42
cmd/api/request.go
145
2.68
pkg/openapi/cache.go
150
0.0
cmd/api/list.go
240
50.0
cmd/api/airflow.go
256
0.0
cmd/api/cloud.go
372
0.0
cmd/api/describe.go

Uncovered Existing Lines

Lines Coverage ∆ File
9
31.91
-14.89% docker/docker.go
Jobs
ID Job ID Ran Files Coverage
1 bd0008aa-1a67-44ce-bf76-235040fa846e.1 05 Feb 2026 08:43PM UTC 184
33.31
Source Files on build bd0008aa-1a67-44ce-bf76-235040fa846e
  • Tree
  • List 184
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #BD0008AA...
  • 77f13bc1 on github
  • Prev Build on main (#63595748...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc