From b17dd21bb313a5285c59604c2d4c81bbe41dae58 Mon Sep 17 00:00:00 2001 From: Andrii Rykhlivskyi Date: Mon, 23 Mar 2020 14:31:13 +0000 Subject: [PATCH] Amend tests for #186 --- test/system/test_api_interfaces.py | 2 +- test/unit/test_api_interfaces.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/system/test_api_interfaces.py b/test/system/test_api_interfaces.py index 5b3ed60..03fc29c 100644 --- a/test/system/test_api_interfaces.py +++ b/test/system/test_api_interfaces.py @@ -635,7 +635,7 @@ def test_update_vlan(self): api = dut.api('interfaces') instance = api.update_vlan('Vxlan1', '10', '10') self.assertTrue(instance) - self.contains('vxlan vlan 10 vni 10', dut) + self.contains('vxlan vlan add 10 vni 10', dut) def test_remove_vlan(self): for dut in self.duts: diff --git a/test/unit/test_api_interfaces.py b/test/unit/test_api_interfaces.py index 45a156b..2c47be1 100644 --- a/test/unit/test_api_interfaces.py +++ b/test/unit/test_api_interfaces.py @@ -501,7 +501,7 @@ def test_set_udp_port_with_default(self): self.eapi_positive_config_test(func, cmds) def test_update_vlan(self): - cmds = ['interface Vxlan1', 'vxlan vlan 10 vni 10'] + cmds = ['interface Vxlan1', 'vxlan vlan add 10 vni 10'] func = function('update_vlan', 'Vxlan1', 10, 10) self.eapi_positive_config_test(func, cmds)