File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
netjsonconfig/backends/openwrt Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5050 "properties" : {
5151 "network" : {
5252 "type" : "string" ,
53- "maxLength" : 9 ,
53+ "maxLength" : 15 ,
5454 "pattern" : "^[a-zA-z0-9_\\ .\\ -]*$" ,
5555 "propertyOrder" : 7
5656 },
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ def test_network_maxlength(self):
715715 "interfaces" : [
716716 {
717717 "name" : "eth0" ,
718- "network" : "lan0123456789 " ,
718+ "network" : "lan0123456789012345 " ,
719719 "type" : "ethernet"
720720 }
721721 ]
Original file line number Diff line number Diff line change @@ -708,7 +708,7 @@ def test_wireless_network_attr_validation(self):
708708 with self .assertRaises (ValidationError ):
709709 o .validate ()
710710 # maxLength does not validate
711- o .config ['interfaces' ][0 ]['wireless' ]['network' ] = ['lan0123456789 ' ]
711+ o .config ['interfaces' ][0 ]['wireless' ]['network' ] = ['lan0123456789012345 ' ]
712712 with self .assertRaises (ValidationError ):
713713 o .validate ()
714714 # ensure fix works
You can’t perform that action at this time.
0 commit comments