@@ -32,7 +32,7 @@ def test_valid_data(self, yang_model):
3232 @pytest .mark .parametrize (
3333 "bridge_name, error_message" , [
3434 ("bridge-midplane" , None ),
35- ("wrong_name" , 'Value "wrong_name" does not satisfy the constraint "bridge-midplane" ' )]
35+ ("wrong_name" , 'Unsatisfied pattern ' )]
3636 )
3737 def test_bridge_name (self , yang_model , bridge_name , error_message ):
3838 data = {
@@ -51,7 +51,7 @@ def test_bridge_name(self, yang_model, bridge_name, error_message):
5151 @pytest .mark .parametrize (
5252 "ip_prefix, error_message" , [
5353 ("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 ' )]
5555 )
5656 def test_bridge_ip_prefix (self , yang_model , ip_prefix , error_message ):
5757 data = {
@@ -70,7 +70,7 @@ def test_bridge_ip_prefix(self, yang_model, ip_prefix, error_message):
7070 @pytest .mark .parametrize (
7171 "dpu_name, error_message" , [
7272 ("dpu0" , None ),
73- ("xyz" , 'Value "xyz" does not satisfy the constraint "dpu[0-9]+ ' )]
73+ ("xyz" , 'Unsatisfied pattern ' )]
7474 )
7575 def test_dpu_name (self , yang_model , dpu_name , error_message ):
7676 data = {
@@ -91,7 +91,7 @@ def test_dpu_name(self, yang_model, dpu_name, error_message):
9191 @pytest .mark .parametrize (
9292 "midplane_interface, error_message" , [
9393 ("dpu0" , None ),
94- ("xyz" , 'Value "xyz" does not satisfy the constraint "dpu[0-9]+ ' )]
94+ ("xyz" , 'Unsatisfied pattern ' )]
9595 )
9696 def test_dpu_midplane_interface (self , yang_model , midplane_interface , error_message ):
9797 data = {
@@ -112,7 +112,7 @@ def test_dpu_midplane_interface(self, yang_model, midplane_interface, error_mess
112112 @pytest .mark .parametrize (
113113 "dpu_name, error_message" , [
114114 ("str-8102-t1-dpu0" , None ),
115- ("str-8102-t1-dpu0a" , 'Value "str-8102-t1-dpu0a" does not satisfy the constraint "[a-zA-Z0-9-]+[0-9]" ' )]
115+ ("str-8102-t1-dpu0a" , 'Unsatisfied pattern ' )]
116116 )
117117 def test_dpu_name (self , yang_model , dpu_name , error_message ):
118118 data = {
@@ -172,7 +172,7 @@ def test_dpu_local_port(self, yang_model, local_port, error_message):
172172 @pytest .mark .parametrize (
173173 "vip_ipv4, error_message" , [
174174 ("192.168.1.1" , None ),
175- ("192.168.1.xyz" , 'Value "192.168.1.xyz" does not satisfy the constraint ' )]
175+ ("192.168.1.xyz" , 'Unsatisfied pattern ' )]
176176 )
177177 def test_dpu_vip_ipv4 (self , yang_model , vip_ipv4 , error_message ):
178178 data = {
@@ -202,7 +202,7 @@ def test_dpu_vip_ipv4(self, yang_model, vip_ipv4, error_message):
202202 @pytest .mark .parametrize (
203203 "vip_ipv6, error_message" , [
204204 ("2001:db8::1" , None ),
205- ("2001:db8::xyz" , 'Value "2001:db8::xyz" does not satisfy the constraint ' )]
205+ ("2001:db8::xyz" , 'Unsatisfied pattern ' )]
206206 )
207207 def test_dpu_vip_ipv6 (self , yang_model , vip_ipv6 , error_message ):
208208 data = {
@@ -232,7 +232,7 @@ def test_dpu_vip_ipv6(self, yang_model, vip_ipv6, error_message):
232232 @pytest .mark .parametrize (
233233 "pa_ipv4, error_message" , [
234234 ("192.168.1.2" , None ),
235- ("192.168.1.xyz" , 'Value "192.168.1.xyz" does not satisfy the constraint ' )]
235+ ("192.168.1.xyz" , 'Unsatisfied pattern ' )]
236236 )
237237 def test_dpu_pa_ipv4 (self , yang_model , pa_ipv4 , error_message ):
238238 data = {
@@ -262,7 +262,7 @@ def test_dpu_pa_ipv4(self, yang_model, pa_ipv4, error_message):
262262 @pytest .mark .parametrize (
263263 "pa_ipv6, error_message" , [
264264 ("2001:db8::2" , None ),
265- ("2001:db8::xyz" , 'Value "2001:db8::xyz" does not satisfy the constraint ' )]
265+ ("2001:db8::xyz" , 'Unsatisfied pattern ' )]
266266 )
267267 def test_dpu_pa_ipv6 (self , yang_model , pa_ipv6 , error_message ):
268268 data = {
@@ -292,7 +292,7 @@ def test_dpu_pa_ipv6(self, yang_model, pa_ipv6, error_message):
292292 @pytest .mark .parametrize (
293293 "dpu_id, error_message" , [
294294 ("0" , None ),
295- ("xyz" , 'Value "xyz" does not satisfy the constraint ' )]
295+ ("xyz" , 'Unsatisfied pattern - "xyz"' )]
296296 )
297297 def test_dpu_id (self , yang_model , dpu_id , error_message ):
298298 data = {
@@ -322,7 +322,7 @@ def test_dpu_id(self, yang_model, dpu_id, error_message):
322322 @pytest .mark .parametrize (
323323 "gnmi_port, error_message" , [
324324 (8080 , None ),
325- (99999 , 'Invalid value "99999" in "gnmi_port" element. ' )]
325+ (99999 , 'Value "99999" is out of type uint16 min/max bounds ' )]
326326 )
327327 def test_dpu_gnmi_port (self , yang_model , gnmi_port , error_message ):
328328 data = {
@@ -352,7 +352,7 @@ def test_dpu_gnmi_port(self, yang_model, gnmi_port, error_message):
352352 @pytest .mark .parametrize (
353353 "orchagent_zmq_port, error_message" , [
354354 (50 , None ),
355- (99999 , 'Invalid value "99999" in "orchagent_zmq_port" element. ' )]
355+ (99999 , 'Value "99999" is out of type uint16 min/max bounds ' )]
356356 )
357357 def test_dpu_orchagent_zmq_port (self , yang_model , orchagent_zmq_port , error_message ):
358358 data = {
@@ -381,9 +381,9 @@ def test_dpu_orchagent_zmq_port(self, yang_model, orchagent_zmq_port, error_mess
381381
382382 @pytest .mark .parametrize (
383383 "dpu_id, swbus_port, error_message" , [
384- (0 , 23606 , None ),
385- (1 , 23607 , None ),
386- (7 , 23613 , None )]
384+ ("0" , 23606 , None ),
385+ ("1" , 23607 , None ),
386+ ("7" , 23613 , None )]
387387 )
388388 def test_remote_dpu_swbus_port (self , yang_model , dpu_id , swbus_port , error_message ):
389389 data = {
0 commit comments