Updates test with overridden timeout values
Currently there is a test that takes an incredibly long time because its using the sane defaults set in code. Over ride these defaults for something much more reasonable for testing purposes. Closes-Bug: #1594961 Change-Id: I4232157a0a8c8f0cff9dea77f860efa857442754
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
from oslo_config import fixture as oslo_fixture
|
||||
from oslo_utils import uuidutils
|
||||
import requests_mock
|
||||
import six
|
||||
@@ -173,6 +175,9 @@ class TestAmphoraAPIClientTest(base.TestCase):
|
||||
self.base_url = "https://127.0.0.1:9443/0.5"
|
||||
self.amp = models.Amphora(lb_network_ip='127.0.0.1', compute_id='123')
|
||||
self.port_info = dict(mac_address='123')
|
||||
# Override with much lower values for testing purposes..
|
||||
conf = oslo_fixture.Config(cfg.CONF)
|
||||
conf.config(group="haproxy_amphora", connection_max_retries=2)
|
||||
|
||||
def test_request(self):
|
||||
self.assertRaises(driver_except.TimeOutException,
|
||||
|
||||
Reference in New Issue
Block a user