Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmingz committed Feb 27, 2023
1 parent c50b750 commit b750e82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
},
"FG_NHG_MEMBER_TEST_INVALID_IP": {
"desc": "Fine-grained ECMP next-hop member configuration with invalid IP value in FG_NHG_MEMBER_LIST table.",
"eStr": "Invalid value .* next_hop_ip"
"eStrKey" : "InvalidValue",
"eStr": "next_hop_ip"
},
"FG_NHG_PREFIX_TEST_INVALID_PREFIX":{
"desc": "Fine-grained ECMP prefix configuration with invalid prefix value in FG_NHG_PREFIX_LIST table.",
"eStr": "Invalid value .* ip_prefix"
"eStrKey" : "InvalidValue",
"eStr": "ip_prefix"
},
"FG_NHG_MEMBER_TEST_MISSING_FG_NHG_REF": {
"desc": "Fine-grained ECMP next-hop member configuration with missing FG_NHG reference in FG_NHG_MEMBER_LIST table.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"FG_NHG_PREFIX_TEST": {
"sonic-fine-grained-ecmp:sonic-fine-grained-ecmp": {
"sonic-fine-grained-ecmp:FG_NHG_PREFIX": {
"sonic-fine-grained-ecmp:FG_NHG": {
"FG_NHG_LIST": [
{
"name": "group1",
Expand All @@ -31,7 +31,9 @@
"bucket_size": 20,
"match_mode": "route-based"
}
],
]
},
"sonic-fine-grained-ecmp:FG_NHG_PREFIX": {
"FG_NHG_PREFIX_LIST": [
{
"ip_prefix": "10.0.0.0/24",
Expand All @@ -47,7 +49,7 @@
},
"FG_NHG_MEMBER_TEST": {
"sonic-fine-grained-ecmp:sonic-fine-grained-ecmp": {
"sonic-fine-grained-ecmp:FG_NHG_MEMBER": {
"sonic-fine-grained-ecmp:FG_NHG": {
"FG_NHG_LIST": [
{
"name": "group1",
Expand All @@ -59,7 +61,9 @@
"bucket_size": 20,
"match_mode": "route-based"
}
],
]
},
"sonic-fine-grained-ecmp:FG_NHG_MEMBER": {
"FG_NHG_MEMBER_LIST": [
{
"next_hop_ip": "10.0.0.1",
Expand Down Expand Up @@ -143,18 +147,6 @@
"FG_NHG_PREFIX_TEST_MISSING_FG_NHG_REF": {
"sonic-fine-grained-ecmp:sonic-fine-grained-ecmp": {
"sonic-fine-grained-ecmp:FG_NHG_PREFIX": {
"FG_NHG_LIST": [
{
"name": "group1",
"bucket_size": 10,
"match_mode": "nexthop-based"
},
{
"name": "group2",
"bucket_size": 20,
"match_mode": "route-based"
}
],
"FG_NHG_PREFIX_LIST": [
{
"ip_prefix": "10.0.0.0/24"
Expand All @@ -166,18 +158,6 @@
"FG_NHG_MEMBER_TEST_MISSING_BANK": {
"sonic-fine-grained-ecmp:sonic-fine-grained-ecmp": {
"sonic-fine-grained-ecmp:FG_NHG_MEMBER": {
"FG_NHG_LIST": [
{
"name": "group1",
"bucket_size": 10,
"match_mode": "nexthop-based"
},
{
"name": "group2",
"bucket_size": 20,
"match_mode": "route-based"
}
],
"FG_NHG_MEMBER_LIST": [
{
"next_hop_ip": "10.0.0.1",
Expand Down

0 comments on commit b750e82

Please sign in to comment.