Skip to content

Commit bc04f3f

Browse files
committed
Fix error messages match issue
1 parent 9edb03d commit bc04f3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sonic-yang-models/tests/yang_model_tests/tests/vnet_route_tunnel_vxlan.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333

3434
"VNET_ROUTE_TUNNEL_TEST_INVALID_NAME_FORMAT": {
3535
"desc": "VNET route tunnel configuration with invalid name format (missing prefix) in VNET_ROUTE_TUNNEL_LIST table.",
36-
"eStr":["does not match pattern"]
36+
"eStr": "Value \"Vnet1:300.168.1.0/24\" does not satisfy the constraint \"[^:]+:((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2])))\" (range, length, or pattern)\""
3737
},
3838

3939
"VNET_ROUTE_TUNNEL_TEST_INVALID_PREFIX": {
4040
"desc": "VNET route tunnel configuration with invalid prefix format in name field.",
41-
"eStr":["does not match pattern"]
41+
"eStr": "Value \"Vnet1\" does not satisfy the constraint"
4242
},
4343

4444
"VNET_ROUTE_TUNNEL_TEST_MISSING_ENDPOINT": {
@@ -53,6 +53,6 @@
5353

5454
"VNET_ROUTE_TUNNEL_TEST_DUPLICATE_VXLANID": {
5555
"desc": "VNET route tunnel configuration with duplicate VXLAN ID across entries.",
56-
"eStr": ["VXLAN ID must be unique across all route tunnels"]
56+
"eStr": "Unique data leaf(s) \"vxlanid\" not satisfied"
5757
}
5858
}

0 commit comments

Comments
 (0)