Skip to content

e2e-tests (1/4): Repackage gnmi-test-server and e2e test infrastructure#407

Draft
nikatza wants to merge 2 commits into
mainfrom
refactor-tests-1
Draft

e2e-tests (1/4): Repackage gnmi-test-server and e2e test infrastructure#407
nikatza wants to merge 2 commits into
mainfrom
refactor-tests-1

Conversation

@nikatza

@nikatza nikatza commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What it does:

  • Introduces a configurable gNMI test server with an Option to simulate Cisco NX-OS device behavior
  • Adds shared test utilities for both cluster and envtest modes will use (these will be implemented in follow up PRs)
  • These two modes run along kubebuilder's scaffold tests

@nikatza nikatza force-pushed the refactor-tests-1 branch from d6f35e8 to 4f9dd88 Compare June 16, 2026 21:32
@nikatza nikatza force-pushed the refactor-tests-1 branch from 4f9dd88 to 23777e1 Compare June 16, 2026 21:40
@nikatza nikatza changed the title Repackage gnmi-test-server and e2e test infrastructure e2e-tests (1/4): Repackage gnmi-test-server and e2e test infrastructure Jun 16, 2026
@nikatza nikatza force-pushed the refactor-tests-1 branch from 23777e1 to dadc52e Compare June 17, 2026 23:40
nikatza added 2 commits June 18, 2026 01:43
Repackage the existing gNMI server to let us run it as an in-process
library for fast envtest mode or as a deployed pod in a Kubernetes
cluster for full end-to-end testing.

Signed-off-by: Pujol <enric.pujol@sap.com>
Add common test infrastructure that both cluster and envtest modes will
use. This includes helper functions for running kubectl commands and
comparing JSON outputs, a provider registry that maps test directories
to their provider types, resource cleanup logic that respects Kubernetes
finalizers, and centralized timeout constants so all tests behave
consistently.

Signed-off-by: Pujol <enric.pujol@sap.com>
@nikatza nikatza force-pushed the refactor-tests-1 branch from dadc52e to 4e9ecec Compare June 17, 2026 23:45
@github-actions

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ironcore-dev/network-operator/test/e2e/testutil 0.00% (ø)
github.com/ironcore-dev/network-operator/test/gnmi 0.00% (ø)
github.com/ironcore-dev/network-operator/test/gnmi/testserver 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ironcore-dev/network-operator/test/e2e/testutil/doc.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/test/e2e/testutil/helpers.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/test/e2e/testutil/provider.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/test/e2e/testutil/timeouts.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/test/gnmi/main.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/test/gnmi/testserver/server.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

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