diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-03-16 15:37:42 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-14 07:58:05 +0900 |
commit | 3d8ab0941100303930f657c1f8e9d9b5268840f7 (patch) | |
tree | 606cfa1d9afa26ce1ebab5ab3eed246f2863ff13 /test/scenario_test/global_policy_test.py | |
parent | 1adbb78a02c37c55545e9f143f135d3995c1884d (diff) |
cli: return error when querying RIB of un-established peer
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/global_policy_test.py')
-rw-r--r-- | test/scenario_test/global_policy_test.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/scenario_test/global_policy_test.py b/test/scenario_test/global_policy_test.py index 2cad385d..b6f3d86f 100644 --- a/test/scenario_test/global_policy_test.py +++ b/test/scenario_test/global_policy_test.py @@ -96,6 +96,8 @@ class GoBGPTestBase(unittest.TestCase): self.gobgp.wait_for(expected_state=BGP_FSM_IDLE, peer=q3) for q in self.quaggas.itervalues(): + if q.name == 'q3': + continue self.assertTrue(len(self.gobgp.get_adj_rib_out(q)) == 0) def test_05_enable_peer(self): @@ -118,6 +120,8 @@ class GoBGPTestBase(unittest.TestCase): self.gobgp.wait_for(expected_state=BGP_FSM_IDLE, peer=q3) for q in self.quaggas.itervalues(): + if q.name == 'q3': + continue self.assertTrue(len(self.gobgp.get_adj_rib_out(q)) == 0) def test_07_adv_to_one_peer(self): @@ -132,6 +136,8 @@ class GoBGPTestBase(unittest.TestCase): def test_08_check_adj_rib_out(self): for q in self.quaggas.itervalues(): + if q.name == 'q3': + continue paths = self.gobgp.get_adj_rib_out(q) if q == self.quaggas['q1']: self.assertTrue(len(paths) == 2) @@ -146,11 +152,11 @@ class GoBGPTestBase(unittest.TestCase): def test_10_check_adj_rib_out(self): for q in self.quaggas.itervalues(): + if q.name == 'q3': + continue paths = self.gobgp.get_adj_rib_out(q) if q != self.quaggas['q3']: self.assertTrue(len(paths) == 2) - else: - self.assertTrue(len(paths) == 0) for path in paths: if q == self.quaggas['q1']: self.assertTrue(community_exists(path, '65100:10')) |