Skip to content

Commit 1e59f6e

Browse files
committed
Refactor BPF app tests to use table-driven pattern w/ helper func
Convert cluster and namespace BPF application tests to table-driven structure for better maintainability and test coverage. Extract common test functionality into reusable helper functions: - createFakeClusterReconciler() and createFakeNamespaceReconciler() for setup - runClusterReconciler() and runNamespaceReconciler() for execution - verifyClusterBpfApplicationState() and verifyNamespaceBpfApplicationState() - verifyClusterBpfProgramState() and verifyNamespaceBpfProgramState() Inline program definitions within test cases, simplify reconciler setup in GetBpfAppState tests, and add comprehensive verification of program status across multiple reconciliation cycles. Signed-off-by: Andreas Karis <[email protected]>
1 parent 25cf476 commit 1e59f6e

File tree

2 files changed

+414
-489
lines changed

2 files changed

+414
-489
lines changed

0 commit comments

Comments
 (0)