Skip to content

Commit

Permalink
Merge pull request #15 from noironetworks/ut-changes-primarycni
Browse files Browse the repository at this point in the history
added primarycni in UTs as well
  • Loading branch information
abhis2112 authored Sep 5, 2023
2 parents d3aa45c + 87c3dee commit 9a89772
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"nodeName": "1234abc",
"networkRef": {
"name": "sriov-net1"
}
},
"primaryCni": "sriov"
},
"metadata" : {
"name" : "sriov"
Expand All @@ -57,7 +58,8 @@
"nodeName": "1234abc",
"networkRef": {
"name": "macvlan-net1"
}
},
"primaryCni": "macvlan"
},
"metadata" : {
"name" : "macvlan"
Expand Down Expand Up @@ -702,7 +704,8 @@ def test_sriov(self):
"nodeName": "1234abc",
"networkRef": {
"name": "sriov-net1"
}
},
"primaryCni": "sriov"
},
"metadata" : {
"name" : "sriov"
Expand Down Expand Up @@ -768,7 +771,8 @@ def test_macvlan(self):
"nodeName": "1234abc",
"networkRef": {
"name": "macvlan-net1"
}
},
"primaryCni": "macvlan"
},
"metadata" : {
"name" : "macvlan"
Expand Down Expand Up @@ -948,7 +952,8 @@ def test_sriov_without_pod(self):
"nodeName": "1234abc",
"networkRef": {
"name": "sriov-net1"
}
},
"primaryCni": "sriov"
},
"metadata" : {
"name" : "sriov"
Expand Down Expand Up @@ -1001,7 +1006,8 @@ def test_macvlan_without_pod(self):
"nodeName": "1234abc",
"networkRef": {
"name": "macvlan-net1"
}
},
"primaryCni": "macvlan"
},
"metadata" : {
"name" : "macvlan"
Expand Down

0 comments on commit 9a89772

Please sign in to comment.