Skip to main content

Astronomer end to end testing

This repository contains a set of test files for validating Astronomer Platform functionality. It uses the Python Behave framework to create literate tests and output.

CircleCI: https://circleci.com/gh/astronomer/workflows/astronomer_e2e_test

Docker Hub: https://hub.docker.com/r/astronomerinc/ap-e2e-test

Tests

See the platform/features directory for details.

Current:

  • Auth
    • Login with CLI
    • Login with API
  • Workspaces
    • List
    • Create
    • Delete
    • Change Active
  • Deployment
    • List
    • Create [local, celery, k8s]
    • Delete

TODO

  • DAGs of various types (will require Docker engine be available)
  • Known regressions that should be fixed

Usage

These tests are used via helm test in the astronomer/astronomer repository.

You will need a user on the platform you intend to test.

With Docker

Run

docker run --rm -it \
  -e ASTRO_USER="name@domain.com" \
  -e ASTRO_PASS="..." \
  -e HOUSTON_URL="https://houston.my-base-domain.com/v1" \
  astronomerinc/ap-e2e-test:latest

Building the package

Docker image

docker build -t astronomerinc/ap-e2e-test:latest .

Python wheel

poetry build -f wheel

Run

cd platform

# Run all tests
behave

# Run specific test
behave features/000_auth.feature

Releasing

First, bump the version and show th your changes:

poetry version <major|minor|patch>
git commit -m "version 9.8.7"  # whatever version shows up in `git diff`
poetry publish --username="$PYPI_USERNAME" --password="$PYPI_PASSWORD"

Metadata

Release files for astronomer-e2e-test 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for astronomer-e2e-test 0.4.0
File Interpreter ABI Platform
astronomer_e2e_test-0.4.0-py3-none-any.whl Python 3 none any Details

Release files / astronomer_e2e_test-0.4.0-py3-none-any.whl

Download URL astronomer_e2e_test-0.4.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a91c3f199698d292548c7ccec908b0a39eef2c420a1236090b748dfbcaf36ae
BLAKE2b-256 checksum
How to use checksums
66488be6ebdb77c04316d61aac440fca9f62142864b9accdc3bc41fdfa2ef59b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.2

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page