Skip to content

Commit 9477677

Browse files
committed
[airos] added test for igmpproxy converter
1 parent 1ce6262 commit 9477677

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

tests/airos/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class HttpdAirOs(AirOs):
101101
]
102102

103103

104-
class Igmpproxy(AirOs):
104+
class IgmpproxyAirOs(AirOs):
105105
"""
106106
Mock backend with converter for igmpproxy
107107
"""

tests/airos/test_igmpproxy.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from .mock import ConverterTest, IgmpproxyAirOs
2+
3+
4+
class Igmpproxyconverter(ConverterTest):
5+
backend = IgmpproxyAirOs
6+
7+
def test_ebtables(self):
8+
o = self.backend({})
9+
o.to_intermediate()
10+
expected = [
11+
{
12+
'status': 'disabled',
13+
},
14+
]
15+
self.assertEqualConfig(o.intermediate_data['igmpproxy'], expected)

0 commit comments

Comments
 (0)