Skip to content

Conversation

@paulyufan2
Copy link
Contributor

Reason for Change:

This PR is to add multiple IB NICs Unit test

Issue Fixed:

Requirements:

Notes:

@paulyufan2 paulyufan2 added the cni Related to CNI. label Mar 5, 2025
@paulyufan2 paulyufan2 marked this pull request as ready for review March 5, 2025 22:20
Copilot AI review requested due to automatic review settings March 5, 2025 22:20
@paulyufan2 paulyufan2 requested a review from a team as a code owner March 5, 2025 22:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR adds a new unit test to verify that multiple IB NICs are correctly added to the CNI result, supporting Azure Container Networking.

  • Introduces TestMultipleIBNICsToResult to validate the handling of multiple backend NIC info.
  • Sets up expected NIC info mapping and verifies it against the result from the CNSIPAMInvoker.

Reviewed Changes

File Description
cni/network/invoker_cns_test.go Adds a unit test for validating multiple IB NIC additions to the CNI result

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

@paulyufan2 paulyufan2 enabled auto-merge March 5, 2025 23:22
@paulyufan2 paulyufan2 requested a review from tamilmani1989 March 6, 2025 02:08
@paulyufan2
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paulyufan2
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rbtr rbtr self-requested a review March 7, 2025 00:41
@paulyufan2 paulyufan2 added this pull request to the merge queue Mar 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 7, 2025
@paulyufan2 paulyufan2 added this pull request to the merge queue Mar 7, 2025
Merged via the queue into master with commit a1354da Mar 7, 2025
14 checks passed
@paulyufan2 paulyufan2 deleted the addMultiIBUT branch March 7, 2025 17:45
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* add multiple IB NICs UT

* Update cni/network/invoker_cns_test.go

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paul Yu <[email protected]>

* fix linter issue

* fix linter issue

---------

Signed-off-by: Paul Yu <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cni Related to CNI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants