mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fix test_ubridge_apply_filters
This commit is contained in:
parent
e5a7eb74ed
commit
fd623a5ad2
@ -14,6 +14,7 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
from collections import OrderedDict
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import aiohttp
|
import aiohttp
|
||||||
@ -137,10 +138,10 @@ def test_update_ubridge_udp_connection(node, async_run):
|
|||||||
|
|
||||||
|
|
||||||
def test_ubridge_apply_filters(node, async_run):
|
def test_ubridge_apply_filters(node, async_run):
|
||||||
filters = {
|
filters = OrderedDict((
|
||||||
"latency": [10],
|
('latency', [10]),
|
||||||
"bpf": ["icmp[icmptype] == 8\ntcp src port 53"]
|
('bpf', ["icmp[icmptype] == 8\ntcp src port 53"])
|
||||||
}
|
))
|
||||||
node._ubridge_send = AsyncioMagicMock()
|
node._ubridge_send = AsyncioMagicMock()
|
||||||
async_run(node._ubridge_apply_filters("VPCS-10", filters))
|
async_run(node._ubridge_apply_filters("VPCS-10", filters))
|
||||||
node._ubridge_send.assert_any_call("bridge reset_packet_filters VPCS-10")
|
node._ubridge_send.assert_any_call("bridge reset_packet_filters VPCS-10")
|
||||||
|
Loading…
Reference in New Issue
Block a user