Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

functional-tests

Skill by astronomer

Guides an assistant in writing, reviewing and running functional (end-to-end) tests for the Astronomer APC repository. It is for developers working on tests against a live kind cluster with the Helm chart installed.

  • Score 70
  • 490 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install functional-tests

Built from the published package, never by AI.

git clone --depth 1 https://github.com/astronomer/astronomer /tmp/astronomer && mkdir -p ~/.claude/skills && cp -r /tmp/astronomer/.agents/skills/functional-tests ~/.claude/skills/functional-tests

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install functional-tests in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a writing guide for functional tests in the Astronomer APC repository. Functional tests run against a live Kubernetes cluster (kind) with the Helm chart installed, and they check real runtime behavior such as running processes, user identity, network reachability and configuration values. The guide covers the three installation scenarios (unified, control and data), each with its own test directory.

The guide explains the local setup workflow with bin/reset-local-dev and uv run pytest, the shared fixtures in tests/functional/conftest.py, and the kubeconfig constants and helper functions in tests.utils.k8s. It also gives patterns for testinfra assertions, Kubernetes API calls, JSON config parsing and flaky test handling with pytest reruns. It is aimed at contributors to the APC test suite.

Written from the project's SKILL.md and checked against it.

What it can do

  • Scenario setupExplains how to set up the cluster for the unified, control or data topology before running tests.
  • Testinfra patternsShows how to assert command output, files and non-root users inside containers.
  • Kubeconfig helpersCovers the KUBECONFIG_UNIFIED, KUBECONFIG_CONTROL and KUBECONFIG_DATA constants from tests.utils.k8s.
  • Shared fixturesLists the fixtures in tests/functional/conftest.py, such as k8s_core_v1_client and all_containers.
  • Flaky test handlingDescribes using pytest.mark.flaky with reruns and reruns_delay for eventually consistent cluster state.
  • Test organizationDescribes where unified, control, data and shared tests belong in the directory tree.

What you need

  • A kind Kubernetes cluster set up with bin/reset-local-dev
  • uv to run pytest
  • Python for the test suite
  • The Astronomer APC repository with the Helm chart

Try asking

  • Write a functional test that checks a container does not run as root
  • Add a flaky-tolerant test that checks pod-to-pod network reachability
  • Where should a new cross-scenario functional test be placed?

Good to know

  • Tests need a live kind cluster, so they cannot run without setup.
  • Do not replicate the class-based structure of test_network_security.py for ordinary tests.
  • The tests/functional/shared directory does not exist yet and must be created for the first shared test.
  • Use flaky reruns sparingly, only when the cluster needs time to converge.

Security check

A

No 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 →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

functional-tests: common questions

What do functional tests check in the Astronomer APC repository?

They run against a live Kubernetes cluster and verify real runtime behavior such as running processes, user identity, network reachability and configuration values.

Which installation scenarios does this guide cover?

It covers unified, control and data scenarios, each with its own test directory under tests/functional. Cross-scenario tests belong in tests/functional/shared.

How are flaky tests handled?

The guide suggests the pytest.mark.flaky decorator with reruns and reruns_delay for tests that depend on eventually consistent cluster state. It advises using it sparingly.

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 70 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.

functional-tests Install

Add to stack

Loading.