Astronomer scripts for internal use
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file astronomer_e2e_test-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: astronomer_e2e_test-0.4.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a91c3f199698d292548c7ccec908b0a39eef2c420a1236090b748dfbcaf36ae |
|
MD5 | 5a798a4946071ebced3029ee86a1c8b9 |
|
BLAKE2b-256 | 66488be6ebdb77c04316d61aac440fca9f62142864b9accdc3bc41fdfa2ef59b |