3cd3bb3714
* Remove the bgp_as parameter from the _get_router_id() function as it wasn't used * Run the run_vtysh_config() command using temporary files to avoid leaving the filesystem dirty when we run the OVN BGP Agent * Fix logs to delay the interpolation * Base test class to stop all mocks at the end of each test execution Story: 2009165 Task: 43296 Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com> Change-Id: Idf37e2fd3305c5b4d8f5a4d2f57f781852938e13
30 lines
925 B
Python
30 lines
925 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright 2010-2011 OpenStack Foundation
|
|
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
|
#
|
|
# 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 unittest import mock
|
|
|
|
from oslotest import base
|
|
|
|
|
|
class TestCase(base.BaseTestCase):
|
|
|
|
"""Test case base class for all unit tests."""
|
|
|
|
def setUp(self):
|
|
super(TestCase, self).setUp()
|
|
self.addCleanup(mock.patch.stopall)
|