Skip to content

e2e-tests (2/4): Add parallel cluster-based e2e tests via gingko #408

Draft
nikatza wants to merge 1 commit into
refactor-tests-1from
refactor-tests-2
Draft

e2e-tests (2/4): Add parallel cluster-based e2e tests via gingko #408
nikatza wants to merge 1 commit into
refactor-tests-1from
refactor-tests-2

Conversation

@nikatza

@nikatza nikatza commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Enable running tests again a Kind cluster. The test suite uses Ginkgo's parallel execution capabilities and includes Manager deployment validation. Each test gets its dedicated namespace with a gnmi-test-server pod.

# Run cluster mode tests
make test-e2e-kind PROVIDER=cisco-nxos-gnmi

# Run with parallelism
make test-e2e-kind PROVIDER=cisco-nxos-gnmi GINKGO_PROCS=4

@nikatza nikatza changed the title Add cluster-based e2e testing infrastructure e2e-tests (2/4): Add cluster-based e2e testing infrastructure Jun 16, 2026
@nikatza nikatza changed the title e2e-tests (2/4): Add cluster-based e2e testing infrastructure e2e-tests (2/4): Add kind-based mode to e2e testing infrastructure Jun 16, 2026
@nikatza nikatza changed the title e2e-tests (2/4): Add kind-based mode to e2e testing infrastructure e2e-tests (2/4): Rewoek kind-based mode and enable parallel tests via gingko Jun 16, 2026
@nikatza nikatza changed the title e2e-tests (2/4): Rewoek kind-based mode and enable parallel tests via gingko e2e-tests (2/4): Rework kind-based mode and enable parallel tests via gingko Jun 16, 2026
@nikatza nikatza changed the title e2e-tests (2/4): Rework kind-based mode and enable parallel tests via gingko e2e-tests (2/4): Add parallel cluster-based e2e tests via gingko Jun 17, 2026
@nikatza nikatza force-pushed the refactor-tests-2 branch from 82d714b to 829e761 Compare June 17, 2026 23:40
@nikatza nikatza force-pushed the refactor-tests-1 branch from 23777e1 to dadc52e Compare June 17, 2026 23:40
Add cluster mode for running gNMI controller tests against a Kind cluster.
Tests are isolated via //go:build cluster tag and run with:

  make test-e2e-cluster PROVIDER=cisco-nxos-gnmi

New files:
- cluster_suite_test.go: Ginkgo suite with SynchronizedBeforeSuite for parallel execution
- cluster_test.go: Manager setup tests and reconciliation tests
- testutil/cluster.go: ClusterEnvironment helper for kubectl operations
- testdata/cisco-nxos-gnmi/interfaces.txt: Test fixture for Interface reconciliation

Makefile additions:
- test-e2e-cluster: Run cluster tests with -tags=cluster
- test-e2e-envtest: (placeholder) Run envtest tests with -tags=envtest
- PROVIDER variable for selecting test provider

Signed-off-by: Pujol <enric.pujol@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant