Skip to content

Commit 518fba3

Browse files
committed
HYPERFLEET-1058 - feat: Update e2e repo and remove dead code
Removes deploy scripts, Kind setup tooling, and adapter testdata that have been migrated to the infra repository. Adds environment files and cleanup scripts to support the new infra-based workflow. - Remove deploy-scripts/ directory (deploy-clm.sh, Kind scripts, adapter/API/common/helm/sentinel libraries) - Remove testdata/adapter-configs/ for all adapters (cl-deployment, cl-job, cl-maestro, cl-namespace, np-configmap) - Remove docs/local-kind-setup.md (replaced by infra repo setup) - Add env/env.ci and env/env.local for infra repo integration - Add scripts/cleanup-k8s-resources.sh and scripts/cleanup-pubsub-resources.sh - Add docs/setup.md with new setup instructions - Update docs/runbook.md, docs/getting-started.md, docs/development.md to reference infra repo - Update README.md, CONTRIBUTING.md, Dockerfile, and Makefile to remove old deployment targets
1 parent 2b8fb4f commit 518fba3

41 files changed

Lines changed: 456 additions & 4754 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pre-flight order: `make check` then `make build`.
2828
| Test placement strategy | [architecture repo](https://github.com/openshift-hyperfleet/architecture/blob/main/hyperfleet/docs/e2e-testing/test-placement-strategy.md) — which layer a test belongs in (unit / integration / E2E) |
2929
| Test writing guide | `docs/development.md` |
3030
| Debugging | `docs/debugging.md` |
31-
| Local kind setup | `docs/local-kind-setup.md` |
31+
| Setup Guide | `docs/setup.md` |
3232
| Runbook | `docs/runbook.md` |
3333
| Contributing | `CONTRIBUTING.md` |
3434
| Test case templates | `test-design/templates/` |

CONTRIBUTING.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,28 @@ hyperfleet-e2e/
5454
│ ├── labels/ - Test label definitions
5555
│ └── logger/ - Structured logging (slog)
5656
├── e2e/ - Test suites
57-
│ ├── adapter/ - Adapter failover and Maestro tests
57+
│ ├── adapter/ - Adapter lifecycle tests
58+
│ ├── channel/ - Channel management tests
5859
│ ├── cluster/ - Cluster lifecycle tests
59-
│ └── nodepool/ - NodePool management tests
60+
│ ├── nodepool/ - NodePool management tests
61+
│ └── version/ - Version management tests
6062
├── testdata/ - Test payloads and fixtures
63+
│ ├── adapter-configs/ - Adapter configuration files
6164
│ └── payloads/
6265
│ ├── clusters/ - Cluster creation payloads
63-
│ └── nodepools/- NodePool creation payloads
66+
│ └── nodepools/ - NodePool creation payloads
67+
├── test-design/ - Test design documentation
68+
│ ├── templates/ - Test case templates
69+
│ ├── testcases/ - Test case documents
70+
│ └── user-journeys/ - User journey maps
6471
├── configs/ - Configuration files
6572
│ └── config.yaml - Default configuration
66-
└── docs/ - Documentation
73+
├── docs/ - Documentation
74+
├── env/ - Environment configuration files
75+
├── hack/ - Build and development scripts
76+
├── images/ - Container image definitions
77+
├── openapi/ - OpenAPI spec and generation config
78+
└── scripts/ - Utility scripts
6779
```
6880

6981
## Testing

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ COPY --from=builder /build/bin/hyperfleet-e2e /usr/local/bin/
6262
# Copy test payloads and fixtures
6363
COPY --from=builder /build/testdata /e2e/testdata
6464

65-
# Copy deploy scripts
66-
COPY --from=builder /build/deploy-scripts /e2e/deploy-scripts
67-
6865
# Copy env files
6966
COPY --from=builder /build/env /e2e/env
7067

Makefile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,6 @@ verify: generate fmt-check vet ## Run all verification checks
137137
.PHONY: check
138138
check: verify lint test ## Run all checks (fmt, vet, lint, test)
139139

140-
##@ Local kind Development (see docs/local-kind-setup.md)
141-
142-
.PHONY: local-up
143-
local-up: ## Full local setup: kind cluster + deploy + port-forward
144-
./deploy-scripts/kind-local.sh up
145-
146-
.PHONY: local-down
147-
local-down: ## Remove all components from local kind cluster
148-
./deploy-scripts/kind-local.sh down
149-
150-
.PHONY: local-rebuild
151-
local-rebuild: ## Rebuild + restart. Usage: make local-rebuild C=hyperfleet-adapter
152-
./deploy-scripts/kind-local.sh rebuild $(if $(NO_CACHE),--no-cache) $(C)
153-
154140
##@ Container Images
155141

156142
.PHONY: image

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,8 @@ Black-box end-to-end testing for validating the HyperFleet cluster lifecycle man
1010
HyperFleet E2E is a Ginkgo-based testing framework that validates HyperFleet cluster lifecycle management through black-box tests. It creates ephemeral test clusters for each test, providing complete isolation and supporting parallel execution.
1111

1212
## Quick Start
13-
14-
```bash
15-
# Clone and build
16-
git clone https://github.com/openshift-hyperfleet/hyperfleet-e2e.git
17-
cd hyperfleet-e2e
18-
make build
19-
20-
# Set API URL and run tests
21-
export HYPERFLEET_API_URL=https://api.hyperfleet.example.com
22-
./bin/hyperfleet-e2e test --label-filter=tier0
23-
```
24-
25-
**Done!** The framework created a cluster, validated adapters, and cleaned up resources.
13+
- **[Setup Guide](docs/setup.md)** - Setup environment to run e2e tests
14+
- **[Getting Started](docs/getting-started.md)** - Getting started guide
2615

2716
## Running Tests
2817

@@ -79,15 +68,28 @@ hyperfleet-e2e/
7968
│ ├── labels/ - Test label definitions
8069
│ └── logger/ - Structured logging (slog)
8170
├── e2e/ - Test suites
71+
│ ├── adapter/ - Adapter lifecycle tests
72+
│ ├── channel/ - Channel management tests
8273
│ ├── cluster/ - Cluster lifecycle tests
83-
│ └── nodepool/ - NodePool management tests
74+
│ ├── nodepool/ - NodePool management tests
75+
│ └── version/ - Version management tests
8476
├── testdata/ - Test payloads and fixtures
77+
│ ├── adapter-configs/ - Adapter configuration files
8578
│ └── payloads/
8679
│ ├── clusters/ - Cluster creation payloads
8780
│ └── nodepools/ - NodePool creation payloads
81+
├── test-design/ - Test design documentation
82+
│ ├── templates/ - Test case templates
83+
│ ├── testcases/ - Test case documents
84+
│ └── user-journeys/ - User journey maps
8885
├── configs/ - Configuration files
8986
│ └── config.yaml - Default configuration
90-
└── docs/ - Documentation
87+
├── docs/ - Documentation
88+
├── env/ - Environment configuration files
89+
├── hack/ - Build and development scripts
90+
├── images/ - Container image definitions
91+
├── openapi/ - OpenAPI spec and generation config
92+
└── scripts/ - Utility scripts
9193
```
9294

9395
## Key Features
@@ -102,8 +104,8 @@ hyperfleet-e2e/
102104
## Documentation
103105

104106
- **[System Architecture](https://github.com/openshift-hyperfleet/architecture)** - Single source of truth for all HyperFleet architectural documentation
105-
- **[Local kind Setup](docs/local-kind-setup.md)** - Run E2E tests locally with kind and RabbitMQ
106-
- **[Runbook](docs/runbook.md)** - E2E test runbook for GKE clusters
107+
- **[Setup Guide](docs/setup.md)** - Setup environment to run e2e tests
108+
- **[Runbook](docs/runbook.md)** - E2E test runbook
107109
- **[Getting Started](docs/getting-started.md)** - Run your first test in 10 minutes
108110
- **[Framework Architecture](docs/architecture.md)** - Understand the framework design
109111
- **[Development](docs/development.md)** - Write new tests

deploy-scripts/.env.example

Lines changed: 0 additions & 142 deletions
This file was deleted.

0 commit comments

Comments
 (0)