functional-tests
Skill by astronomer
Guides writing, editing, reviewing and running functional (end-to-end) tests for the Astronomer airflow-chart repository. It covers the kind-cluster workflow, testinfra pod fixtures, environment variables and test organization.
Install functional-tests
Built from the published package, never by AI.
git clone --depth 1 https://github.com/astronomer/airflow-chart /tmp/airflow-chart && mkdir -p ~/.claude/skills && cp -r /tmp/airflow-chart/.agents/skills/functional-tests ~/.claude/skills/functional-testsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/astronomer/airflow-chart /tmp/airflow-chart && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/airflow-chart/.agents/skills/functional-tests ~/.gemini/antigravity-cli/skills/functional-testsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill is a writing guide for functional (end-to-end) tests in the Astronomer airflow-chart repository. The tests run against a live kind Kubernetes cluster with the chart installed and check real runtime behavior, such as binaries on PATH, pip package versions, Airflow CLI commands for connections and variables, Dag runs, and the Astronomer statsd config. All tests live in tests/functional/test_chart.py and use testinfra to exec into containers through the kubectl backend.
The guide covers the local setup workflow with bin/reset-local-dev and bin/run-ci, the NAMESPACE, EXECUTOR and related environment variables, and the session-scoped pod fixtures for webserver, scheduler, triggerer and statsd. It also shows how to write assertions and advises bounded polling for state that converges over time. It is intended for developers and reviewers working on the chart's functional tests.
Written from the project's SKILL.md and checked against it.
What it can do
- Cluster setup workflowExplains how to build a kind cluster and deploy the chart with bin/reset-local-dev or bin/run-ci.
- Pod fixturesProvides session-scoped testinfra hosts for webserver, scheduler, triggerer, statsd and docker_client.
- Binary and file checksShows how to assert that a binary is on PATH or that a file exists in a container.
- Pip package checksShows how to assert the installed version of a pip package in the Airflow image.
- Airflow CLI checksShows how to run airflow CLI commands for variables and connections and check their output.
- Dag run waitingDescribes polling Dag state with a timeout and dumping scheduler logs on failure.
- Adding new fixturesGives a pattern for adding a pod fixture for another component, such as a worker.
What you need
- A kind Kubernetes cluster with the Astronomer airflow chart installed
- Helm
- Docker
- Python with pytest, run through uv or the repo's .venv
- A kubeconfig for the cluster
Try asking
- Write a functional test that checks airflow is on PATH in the webserver pod
- Add a session-scoped fixture for the worker pod in test_chart.py
- Review my functional test for a Dag run and add a bounded polling loop
Good to know
- Tests need a running cluster with the chart installed before they can pass.
- Workers and flower exist only under CeleryExecutor, so tests must be gated for other executors.
- The chart has a single installation, so unified, control and data scenario folders are not used.
- All tests currently live in one file, test_chart.py.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/functional-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to functional-tests
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
functional-tests: common questions
What do the functional tests check?
They check real runtime behavior in a live cluster, such as binaries on PATH, pip package versions, Airflow CLI results, successful Dag runs, and the Astronomer statsd config.
Which environment variables does it use?
NAMESPACE defaults to airflow and EXECUTOR defaults to CeleryExecutor. SCHEDULER_POD, WEBSERVER_POD and HELM_CHART_PATH are also read by the fixtures or bin/run-ci.
What is testinfra used for in these tests?
Testinfra runs commands inside containers through the kubectl backend, so tests can check files, binaries, pip packages and CLI output.
How do I install functional-tests?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is functional-tests free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is functional-tests safe to use?
It scores 68 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to functional-tests?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
