File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ class TestResolvConverter(ConverterTest):
77
88 def test_aaa_key (self ):
99 o = self .backend ({
10- "general" : {}
10+ "general" : {},
11+ "interfaces" : [],
1112 })
1213
1314 o .to_intermediate ()
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ def test_resolv(self):
1616
1717 expected = [
1818 {
19- 'host.1.name' : 'airos' ,
19+ 'host.1.name' : 'airos' ,
2020 'host.1.status' : 'enabled' ,
2121 },
2222 {
23- 'nameserver.1.ip' : '10.150.42.1' ,
24- 'nameserver.1.status' : 'enabled' ,
23+ 'nameserver.1.ip' : '10.150.42.1' ,
24+ 'nameserver.1.status' : 'enabled' ,
2525 },
2626 {
27- 'status' : 'enabled' ,
27+ 'status' : 'enabled' ,
2828 },
2929 ]
3030
@@ -39,11 +39,11 @@ def test_no_dns_server(self):
3939
4040 expected = [
4141 {
42- 'host.1.name' : 'airos' ,
42+ 'host.1.name' : 'airos' ,
4343 'host.1.status' : 'enabled' ,
4444 },
4545 {
46- 'status' : 'enabled' ,
46+ 'status' : 'enabled' ,
4747 },
4848 ]
4949
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ def test_active_vlan(self):
2626 '1.comment' : '' ,
2727 '1.devname' : 'eth0' ,
2828 '1.id' : '1' ,
29- '1.status' : 'enabled' ,
29+ '1.status' : 'enabled' ,
3030 },
3131 {
32- 'status' : 'enabled' ,
32+ 'status' : 'enabled' ,
3333 }
3434 ]
3535
@@ -55,7 +55,7 @@ def test_disabled_vlan(self):
5555 '1.status' : 'disabled' ,
5656 },
5757 {
58- 'status' : 'enabled' ,
58+ 'status' : 'enabled' ,
5959 }
6060 ]
6161
@@ -94,7 +94,7 @@ def test_many_vlan(self):
9494 '2.status' : 'enabled' ,
9595 },
9696 {
97- 'status' : 'enabled' ,
97+ 'status' : 'enabled' ,
9898 }
9999 ]
100100
@@ -133,7 +133,7 @@ def test_mixed_vlan(self):
133133 '2.status' : 'enabled' ,
134134 },
135135 {
136- 'status' : 'enabled' ,
136+ 'status' : 'enabled' ,
137137 }
138138 ]
139139
@@ -155,7 +155,7 @@ def test_no_vlan(self):
155155
156156 expected = [
157157 {
158- 'status' : 'enabled' ,
158+ 'status' : 'enabled' ,
159159 },
160160 ]
161161
@@ -189,7 +189,7 @@ def test_one_vlan(self):
189189 '1.status' : 'enabled' ,
190190 },
191191 {
192- 'status' : 'enabled' ,
192+ 'status' : 'enabled' ,
193193 },
194194 ]
195195
You can’t perform that action at this time.
0 commit comments