You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e645cae
Browse filesBrowse the repository at this point in the historyBrowse files
This commit implements a comprehensive end-to-end (E2E) testing framework
for the NSX Container Plugin Operator, enabling automated verification of
operator deployment, status reporting, and reconciliation behavior.
Key components implemented:
- Mock NSX API Service (nsx-mock): A custom Go-based server simulating NSX-T
Policy APIs (VIF queries, logical switch port tagging, search, and dynamic
node mapping) with self-signed TLS support.
- Fake NCP Container Image: A lightweight Alpine-based mock image simulating
NCP workloads, with graceful signal handling (SIGTERM/SIGINT) to prevent
stuck terminations.
- Declarative Manifests: Kind cluster configuration (setting node provider-id),
operator deployment with custom DNS policy (ClusterFirstWithHostNet) to
resolve in-cluster services, and mock NSX service definitions.
- Go-based E2E Test Suite: 9 comprehensive test scenarios in operator_test.go
covering operator startup, status reporting, node port tagging, self-healing
of lost tags, MTU updates, NcpInstall CR reconciliation (replicas, addNodeTag),
and image patching.
- Makefile Integration: Automation targets for cluster lifecycle management,
image building/loading, and local test execution.
- GitHub Actions Workflow: CI pipeline integration to build, deploy, and run
the entire E2E test suite on every PR.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments