neutron/neutron/tests/unit/test_opts.py
Takashi Kajinami be43141a5f Provide the rpc_response_max_timeout parameter to sriov-agent
The rpc_response_max_timeout parameter is used in comminucation over
messaging queue, thus should be available for sriov-agent which
communicate with neutron-server over messaging queue.

Change-Id: Ie6ae31e40488fd8f3d43e83b25e536a7dd9d938c
Closes-Bug: #1930996
2021-06-06 23:56:14 +09:00

28 lines
968 B
Python

# Copyright (c) 2016 OpenStack Foundation.
#
# 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 neutron import opts
from neutron.tests import base
class OptsTestCase(base.BaseTestCase):
def test_list_sriov_agent_opts(self):
sriov_agent_opts = opts.list_sriov_agent_opts()
self.assertEqual('DEFAULT', sriov_agent_opts[0][0])
self.assertEqual('sriov_nic', sriov_agent_opts[1][0])
self.assertEqual('agent', sriov_agent_opts[2][0])