@@ -32,7 +32,7 @@ def test_valid_data(self, yang_model):
32
32
@pytest .mark .parametrize (
33
33
"bridge_name, error_message" , [
34
34
("bridge-midplane" , None ),
35
- ("wrong_name" , 'Value "wrong_name" does not satisfy the constraint "bridge-midplane" ' )]
35
+ ("wrong_name" , 'Unsatisfied pattern ' )]
36
36
)
37
37
def test_bridge_name (self , yang_model , bridge_name , error_message ):
38
38
data = {
@@ -51,7 +51,7 @@ def test_bridge_name(self, yang_model, bridge_name, error_message):
51
51
@pytest .mark .parametrize (
52
52
"ip_prefix, error_message" , [
53
53
("169.254.200.254/24" , None ),
54
- ("169.254.xyz.254/24" , 'Value "169.254.xyz.254/24" does not satisfy the constraint ' )]
54
+ ("169.254.xyz.254/24" , 'Unsatisfied pattern ' )]
55
55
)
56
56
def test_bridge_ip_prefix (self , yang_model , ip_prefix , error_message ):
57
57
data = {
@@ -70,7 +70,7 @@ def test_bridge_ip_prefix(self, yang_model, ip_prefix, error_message):
70
70
@pytest .mark .parametrize (
71
71
"dpu_name, error_message" , [
72
72
("dpu0" , None ),
73
- ("xyz" , 'Value "xyz" does not satisfy the constraint "dpu[0-9]+ ' )]
73
+ ("xyz" , 'Unsatisfied pattern ' )]
74
74
)
75
75
def test_dpu_name (self , yang_model , dpu_name , error_message ):
76
76
data = {
@@ -91,7 +91,7 @@ def test_dpu_name(self, yang_model, dpu_name, error_message):
91
91
@pytest .mark .parametrize (
92
92
"midplane_interface, error_message" , [
93
93
("dpu0" , None ),
94
- ("xyz" , 'Value "xyz" does not satisfy the constraint "dpu[0-9]+ ' )]
94
+ ("xyz" , 'Unsatisfied pattern ' )]
95
95
)
96
96
def test_dpu_midplane_interface (self , yang_model , midplane_interface , error_message ):
97
97
data = {
@@ -112,7 +112,7 @@ def test_dpu_midplane_interface(self, yang_model, midplane_interface, error_mess
112
112
@pytest .mark .parametrize (
113
113
"port_name, error_message" , [
114
114
("dpu0" , None ),
115
- ("dp0rt0" , 'Value "dp0rt0" does not satisfy the constraint "[a-zA-Z]+[0-9]+" ' )]
115
+ ("dp0rt0" , 'Unsatisfied pattern ' )]
116
116
)
117
117
def test_dpu_port_name (self , yang_model , port_name , error_message ):
118
118
data = {
@@ -139,7 +139,7 @@ def test_dpu_port_name(self, yang_model, port_name, error_message):
139
139
@pytest .mark .parametrize (
140
140
"vip_ipv4, error_message" , [
141
141
("192.168.1.1" , None ),
142
- ("192.168.1.xyz" , 'Value "192.168.1.xyz" does not satisfy the constraint ' )]
142
+ ("192.168.1.xyz" , 'Unsatisfied pattern ' )]
143
143
)
144
144
def test_dpu_port_vip_ipv4 (self , yang_model , vip_ipv4 , error_message ):
145
145
data = {
@@ -166,7 +166,7 @@ def test_dpu_port_vip_ipv4(self, yang_model, vip_ipv4, error_message):
166
166
@pytest .mark .parametrize (
167
167
"vip_ipv6, error_message" , [
168
168
("2001:db8::1" , None ),
169
- ("2001:db8::xyz" , 'Value "2001:db8::xyz" does not satisfy the constraint ' )]
169
+ ("2001:db8::xyz" , 'Unsatisfied pattern ' )]
170
170
)
171
171
def test_dpu_port_vip_ipv6 (self , yang_model , vip_ipv6 , error_message ):
172
172
data = {
@@ -193,7 +193,7 @@ def test_dpu_port_vip_ipv6(self, yang_model, vip_ipv6, error_message):
193
193
@pytest .mark .parametrize (
194
194
"pa_ipv4, error_message" , [
195
195
("192.168.1.2" , None ),
196
- ("192.168.1.xyz" , 'Value "192.168.1.xyz" does not satisfy the constraint ' )]
196
+ ("192.168.1.xyz" , 'Unsatisfied pattern ' )]
197
197
)
198
198
def test_dpu_port_pa_ipv4 (self , yang_model , pa_ipv4 , error_message ):
199
199
data = {
@@ -220,7 +220,7 @@ def test_dpu_port_pa_ipv4(self, yang_model, pa_ipv4, error_message):
220
220
@pytest .mark .parametrize (
221
221
"pa_ipv6, error_message" , [
222
222
("2001:db8::2" , None ),
223
- ("2001:db8::xyz" , 'Value "2001:db8::xyz" does not satisfy the constraint ' )]
223
+ ("2001:db8::xyz" , 'Unsatisfied pattern ' )]
224
224
)
225
225
def test_dpu_port_pa_ipv6 (self , yang_model , pa_ipv6 , error_message ):
226
226
data = {
@@ -247,7 +247,7 @@ def test_dpu_port_pa_ipv6(self, yang_model, pa_ipv6, error_message):
247
247
@pytest .mark .parametrize (
248
248
"gnmi_port, error_message" , [
249
249
(8080 , None ),
250
- (99999 , 'Invalid value "99999" in "gnmi_port" element. ' )]
250
+ (99999 , 'Value "99999" is out of type uint16 min/max bounds ' )]
251
251
)
252
252
def test_dpu_port_gnmi (self , yang_model , gnmi_port , error_message ):
253
253
data = {
0 commit comments