summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-12-11 16:50:16 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-01-09 16:15:11 +0900
commit14a6bf184e16c5126967d99996154ca8b56e6089 (patch)
tree2bf64e04570df186c1e373672c72a322b3077aa7 /test
parent53df6493e1ca981c3bde8e2c15832625c8cce2da (diff)
test/lib/base: Fix typos
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/lib/base.py2
-rw-r--r--test/scenario_test/bgp_zebra_test.py16
2 files changed, 9 insertions, 9 deletions
diff --git a/test/lib/base.py b/test/lib/base.py
index 9a543c45..d7d33f40 100644
--- a/test/lib/base.py
+++ b/test/lib/base.py
@@ -477,7 +477,7 @@ class BGPContainer(Container):
def get_neighbor_state(self, peer_id):
raise Exception('implement get_neighbor() method')
- def get_reachablily(self, prefix, timeout=20):
+ def get_reachability(self, prefix, timeout=20):
version = netaddr.IPNetwork(prefix).version
addr = prefix.split('/')[0]
if version == 4:
diff --git a/test/scenario_test/bgp_zebra_test.py b/test/scenario_test/bgp_zebra_test.py
index 48d4dd14..653c9b94 100644
--- a/test/scenario_test/bgp_zebra_test.py
+++ b/test/scenario_test/bgp_zebra_test.py
@@ -111,7 +111,7 @@ class GoBGPTestBase(unittest.TestCase):
that have previously beyond the gobpg in ipv4 environment
"""
- def test_02_check_reachablily_beyond_gobgp_from_quagga(self):
+ def test_02_check_reachability_beyond_gobgp_from_quagga(self):
g1 = self.gobgps['ipv4']
q1 = self.quaggas['ipv4']
o1 = self.others['ipv4'][0]
@@ -124,14 +124,14 @@ class GoBGPTestBase(unittest.TestCase):
o1.add_static_route(self.bridges['br02_v4'].subnet, next_hop)
addr = [e[1] for e in o1.ip_addrs if 'br01_v4' in e[2]]
self.assertTrue(len(addr) == 1)
- q1.get_reachablily(addr[0])
+ q1.get_reachability(addr[0])
"""
No.3 check whether the ping is reachable in container
that have previously beyond the quagga in ipv4 environment
"""
- def test_03_check_reachablily_beyond_quagga_from_gobgp(self):
+ def test_03_check_reachability_beyond_quagga_from_gobgp(self):
g1 = self.gobgps['ipv4']
q1 = self.quaggas['ipv4']
o2 = self.others['ipv4'][1]
@@ -140,7 +140,7 @@ class GoBGPTestBase(unittest.TestCase):
o2.add_static_route(self.bridges['br02_v4'].subnet, next_hop)
addr = [e[1] for e in o2.ip_addrs if 'br03_v4' in e[2]]
self.assertTrue(len(addr) == 1)
- g1.get_reachablily(addr[0])
+ g1.get_reachability(addr[0])
"""
No.4 start up ipv4 containers and check state
@@ -171,7 +171,7 @@ class GoBGPTestBase(unittest.TestCase):
that have previously beyond the gobpg in ipv6 environment
"""
- def test_05_check_reachablily_beyond_gobgp_from_quagga(self):
+ def test_05_check_reachability_beyond_gobgp_from_quagga(self):
g1 = self.gobgps['ipv6']
q1 = self.quaggas['ipv6']
o1 = self.others['ipv6'][0]
@@ -181,14 +181,14 @@ class GoBGPTestBase(unittest.TestCase):
o1.add_static_route(self.bridges['br02_v6'].subnet, next_hop)
addr = [e[1] for e in o1.ip_addrs if 'br01_v6' in e[2]]
self.assertTrue(len(addr) == 1)
- q1.get_reachablily(addr[0])
+ q1.get_reachability(addr[0])
"""
No.6 check whether the ping is reachable in container
that have previously beyond the quagga in ipv6 environment
"""
- def test_06_check_reachablily_beyond_quagga_from_gobgp(self):
+ def test_06_check_reachability_beyond_quagga_from_gobgp(self):
g1 = self.gobgps['ipv6']
q1 = self.quaggas['ipv6']
o2 = self.others['ipv6'][1]
@@ -198,7 +198,7 @@ class GoBGPTestBase(unittest.TestCase):
o2.add_static_route(self.bridges['br02_v6'].subnet, next_hop)
addr = [e[1] for e in o2.ip_addrs if 'br03_v6' in e[2]]
self.assertTrue(len(addr) == 1)
- g1.get_reachablily(addr[0])
+ g1.get_reachability(addr[0])
def test_07_mpath_test_setup(self):
g1 = GoBGPContainer(name='g1', asn=65000, router_id='192.168.0.1',