Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .license-scan-overrides.jsonl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{"name": "github.com/chzyer/logex", "licenceType": "MIT"}
{"name": "github.com/grpc-ecosystem/go-grpc-middleware/v2", "licenceType": "Apache-2.0"}
{"name": "github.com/hashicorp/vault/api/auth/approle", "licenceType": "MPL-2.0"}
{"name": "github.com/ironcore-dev/gnmi-test-server", "licenceType": "Apache-2.0"}
{"name": "github.com/jpillora/longestcommon", "licenceType": "MIT"}
{"name": "github.com/logrusorgru/aurora", "licenceType": "Unlicense"}
{"name": "github.com/mattn/go-localereader", "licenceType": "MIT"}
Expand Down
2 changes: 1 addition & 1 deletion config/develop/gnmi-test-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
containers:
- name: gnmi-test-server
image: ghcr.io/ironcore-dev/gnmi-test-server:latest
imagePullPolicy: IfNotPresent
imagePullPolicy: Never
ports:
- containerPort: 9339
name: grpc
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,5 @@ require (
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
)

replace github.com/ironcore-dev/gnmi-test-server => ./test/gnmi
16 changes: 16 additions & 0 deletions test/e2e/testutil/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0

// Package testutil provides test infrastructure for e2e tests.
//
// It supports two test modes selected by build tags:
//
// - Envtest (build tag: envtest): Uses controller-runtime's envtest.Environment
// with an in-process gNMI test server. Fast (~10s) but doesn't test deployment.
//
// - Cluster (default): Uses a real Kubernetes cluster (typically Kind) with a
// deployed operator and gnmi-test-server pod. Slower (~2-5min) but tests full stack.
//
// The concrete types ClusterEnvironment and EnvtestEnvironment provide the same
// methods, allowing test logic to work with either mode via build tag selection.
package testutil
Loading
Loading