Permalink
Browse files

[OpenWrt] Increased network maxLength

  • Loading branch information...
nemesisdesign committed Mar 22, 2016
1 parent c70ab76 commit 778615aaaaf7ac9a2e65cac43df6f81c45e807e9
Showing with 3 additions and 3 deletions.
  1. +1 −1 netjsonconfig/backends/openwrt/schema.py
  2. +1 −1 tests/openwrt/test_network.py
  3. +1 −1 tests/openwrt/test_wireless.py
@@ -50,7 +50,7 @@
"properties": {
"network": {
"type": "string",
"maxLength": 9,
"maxLength": 15,
"pattern": "^[a-zA-z0-9_\\.\\-]*$",
"propertyOrder": 7
},
@@ -715,7 +715,7 @@ def test_network_maxlength(self):
"interfaces": [
{
"name": "eth0",
"network": "lan0123456789",
"network": "lan0123456789012345",
"type": "ethernet"
}
]
@@ -708,7 +708,7 @@ def test_wireless_network_attr_validation(self):
with self.assertRaises(ValidationError):
o.validate()
# maxLength does not validate
o.config['interfaces'][0]['wireless']['network'] = ['lan0123456789']
o.config['interfaces'][0]['wireless']['network'] = ['lan0123456789012345']
with self.assertRaises(ValidationError):
o.validate()
# ensure fix works

0 comments on commit 778615a

Please sign in to comment.