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.3.6-py3-none-any.whl (24.5 kB view hashes)

Uploaded Python 3

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