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=criticalWhat happens:
- Framework creates a new cluster via API
- Waits for cluster to reach Ready 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=critical
# Run all cluster suite tests
./bin/hyperfleet-e2e test --focus "\[Suite: cluster\]"
# Run cluster lifecycle tests
./bin/hyperfleet-e2e test --label-filter="lifecycle && critical"
# 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 Troubleshooting 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:
**Configuration not taking effect**:
Priority order (highest to lowest):
1. CLI flags (`--api-url`)
2. Environment variables (`HYPERFLEET_API_URL`)
3. Config file (`configs/config.yaml`)
4. Built-in defaults
**Need detailed logs**:
```bash
# 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