diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-30 14:23:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-30 14:23:03 +0900 |
commit | a991fed7e4faa485dc67daf50ba64fe01f83415d (patch) | |
tree | a600daa350a36c1fdc7776c111575bef56f78627 /tests/integrated/bgp/test_basic.py | |
parent | a67ed2858417b9d795460f05126c01fb0cd344f9 (diff) |
Revert "tests: Separate test files from Ryu module"
This reverts commit a67ed2858417b9d795460f05126c01fb0cd344f9.
The commit breaks OpenStack neutron dynamic routing.
Diffstat (limited to 'tests/integrated/bgp/test_basic.py')
-rw-r--r-- | tests/integrated/bgp/test_basic.py | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/integrated/bgp/test_basic.py b/tests/integrated/bgp/test_basic.py deleted file mode 100644 index 9ef430c7..00000000 --- a/tests/integrated/bgp/test_basic.py +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (C) 2016 Nippon Telegraph and Telephone Corporation. -# Copyright (C) 2016 Fumihiko Kakuma <kakuma at valinux co jp> -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import - -import time - -from tests.integrated.common import docker_base as ctn_base -from . import base - - -class BgpSpeakerBasicTest(base.BgpSpeakerTestBase): - def setUp(self): - super(BgpSpeakerBasicTest, self).setUp() - self.r1.stop_ryubgp(retry=True) - self.r1.start_ryubgp(retry=True) - - def test_check_neighbor_established(self): - neighbor_state = ctn_base.BGP_FSM_IDLE - for _ in range(0, self.checktime): - neighbor_state = self.q1.get_neighbor_state(self.r1) - if neighbor_state == ctn_base.BGP_FSM_ESTABLISHED: - break - time.sleep(1) - self.assertEqual(neighbor_state, ctn_base.BGP_FSM_ESTABLISHED) - - def test_check_rib_nexthop(self): - neighbor_state = ctn_base.BGP_FSM_IDLE - for _ in range(0, self.checktime): - neighbor_state = self.q1.get_neighbor_state(self.r1) - if neighbor_state == ctn_base.BGP_FSM_ESTABLISHED: - break - time.sleep(1) - self.assertEqual(neighbor_state, ctn_base.BGP_FSM_ESTABLISHED) - rib = self.q1.get_global_rib(prefix='10.10.0.0/28') - self.assertEqual(self.r1_ip, rib[0]['nexthop']) |