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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astronomer_e2e_test-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for astronomer_e2e_test-0.4.0-py3-none-any.whl |
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
|
Security for astronomer-e2e-test 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.