← Back to Pull requests

CORENET-7315 : migrate ANP/BANP service integration tests to OTE (73963, 73440, 82081) #3556

Open
unknown opened this pull request with 255 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 19, 2026 09:23 UTC
Author

📑 Description


Migrate OTP test cases 73963, 73440, 82081 to OTE framework.
Case 73963: Validates that AdminNetworkPolicy (priority 10) overrides BaselineAdminNetworkPolicy (priority 9999) when both exist, with
AdminPolicyBasedExternalRoute context.
Case 73440: Validates ANP/BANP functionality with ClusterIP and NodePort services, including session affinity behavior.
Case 82081: Validates ANP/BANP functionality with LoadBalancer services (both Cluster and Local external traffic policies).
Fixes CORENET-7315
## Release Notes
```release-note
NONE
  ## Additional Information for reviewers
  - Created test files:
    - `test/otp/adminnetworkpolicy_apbr.go` (Case 73963)
    - `test/otp/adminnetworkpolicy_services.go` (Cases 73440, 82081)
  - Created resource template files:
    - `pkg/otp/testdata/fixtures/adminnetworkpolicy/banp-multi-pod-mixed-rule-template.yaml`
    - `pkg/otp/testdata/fixtures/adminnetworkpolicy/anp-single-rule-me-template.yaml`
    - `pkg/otp/testdata/fixtures/adminnetworkpolicy/anp-single-rule-template-node.yaml`
  - Registered all tests in `test/tests.go`
  - Tests validate:
    - BANP policy creation and enforcement
    - ANP override behavior (priority-based)
    - Service accessibility through ANP/BANP policies
    - Session affinity with ClusterIP services
    - External traffic policies with LoadBalancer services
  ## ✅ Checks
  - [x] My code does not require changes to the documentation
  - [x] My code requires tests - added 3 test cases (73963, 73440, 82081)
  - [x] All the tests have passed in the CI
  ## How to verify it
  Run the tests:
  
bash
# Case 73963: ANP/BANP with APBR
./bin/ovn-kubernetes-tests-ext run-test "73963"

Case 73440: ClusterIP/NodePort services

./bin/ovn-kubernetes-tests-ext run-test "73440"

Case 82081: LoadBalancer services

./bin/ovn-kubernetes-tests-ext run-test "82081"

Expected: All tests pass validating ANP/BANP hierarchy and service integration

Diff: 255 lines (+191 / -64) across 3 files Reviewer: anuragthehatter Review duration: 62124m
All Vouch review confidence checks passed
Residual risk 0.38 = Change Risk (0.69) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 255 lines diff across 3 files
0.69
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
44%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.332
Sensitive Paths sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #3556"
general weight: 0.35
Assignees
Unassigned
Labels
risk: medium confidence: 44.7% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 69.3% (HIGH) · Higher = larger blast radius
69.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 44.7% · Lower = rushed or shallow review
44.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 38.3% · Moderate risk
38.3%