New to HyperFleet E2E? This guide will help you run your first test in 10 minutes.
- Go 1.25+ - Required for building the framework
- HyperFleet API access - API endpoint URL
- 10 minutes - Time to complete this guide
git clone https://github.com/openshift-hyperfleet/hyperfleet-e2e.git
cd hyperfleet-e2e
make build./bin/hyperfleet-e2e --helpYou should see the command help output.
Step 1: Set API URL
export HYPERFLEET_API_URL=https://api.hyperfleet.example.comStep 2: Run tests
./bin/hyperfleet-e2e test --label-filter=tier0What happens:
- Framework creates a new cluster via API
- Waits for cluster to reach Reconciled state
- Validates adapter conditions
- Deletes cluster after test completes
The framework:
- Loaded configuration - Merged config file, environment variables, and CLI flags
- Executed tests - Ran all tests matching your filter
- Managed resources - Created and deleted temporary test clusters
- Generated results - Displayed test outcomes
# Run critical tests only
./bin/hyperfleet-e2e test --label-filter=tier0
# Run all cluster suite tests
./bin/hyperfleet-e2e test --focus "\[Suite: cluster\]"
# Run cluster tier0 tests only
./bin/hyperfleet-e2e test --label-filter="tier0" --focus "\[Suite: cluster\]"
# Deep debug mode (add API calls and framework internals)
./bin/hyperfleet-e2e test --log-level=debugNote: The default output already shows detailed test execution steps. If a test fails, you can usually diagnose the issue from the logs without re-running in debug mode. Use --log-level=debug when you need to see API calls and framework internals. See Debugging Guide for more debugging techniques.
make build # Build binary
make test # Run unit tests
make e2e # Run E2E tests
make lint # Run linter
make generate # Regenerate OpenAPI clientAPI connection errors:
# Verify API URL
echo $HYPERFLEET_API_URL
curl -I $HYPERFLEET_API_URLTest timeouts: Increase timeouts via environment variables:
HYPERFLEET_TIMEOUTS_CLUSTER_RECONCILED=45m make e2eConfiguration not taking effect:
Priority order (highest to lowest):
- CLI flags (
--api-url) - Environment variables (
HYPERFLEET_API_URL) - Config file (
configs/config.yaml) - Built-in defaults
Need detailed logs:
# Default (info) shows test execution steps
./bin/hyperfleet-e2e test
# Debug mode shows API calls and framework internals
./bin/hyperfleet-e2e test --log-level=debug- Architecture - Understand how the framework works
- Development - Write your own tests
- CLI Reference - Run
./bin/hyperfleet-e2e --help - Configuration - See detailed comments in
configs/config.yaml