Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

astronomer_e2e_test-0.4.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file astronomer_e2e_test-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for astronomer_e2e_test-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a91c3f199698d292548c7ccec908b0a39eef2c420a1236090b748dfbcaf36ae
MD5 5a798a4946071ebced3029ee86a1c8b9
BLAKE2b-256 66488be6ebdb77c04316d61aac440fca9f62142864b9accdc3bc41fdfa2ef59b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page