From 8188fea0ced1e75610b835745d78c6a18532fd02 Mon Sep 17 00:00:00 2001 From: Jack Danger Date: Tue, 1 Aug 2017 18:26:38 -0700 Subject: [PATCH] This is required for the server test to work --- moto/elbv2/urls.py | 9 +++++++-- tests/test_elbv2/test_server.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/moto/elbv2/urls.py b/moto/elbv2/urls.py index 13e04a224..13a8e056f 100644 --- a/moto/elbv2/urls.py +++ b/moto/elbv2/urls.py @@ -1,5 +1,10 @@ from __future__ import unicode_literals +from .responses import ELBV2Response -url_bases = [] +url_bases = [ + "https?://elasticloadbalancing.(.+).amazonaws.com", +] -url_paths = {} +url_paths = { + '{0}/$': ELBV2Response.dispatch, +} diff --git a/tests/test_elbv2/test_server.py b/tests/test_elbv2/test_server.py index 05786104d..5acad4051 100644 --- a/tests/test_elbv2/test_server.py +++ b/tests/test_elbv2/test_server.py @@ -8,7 +8,7 @@ Test the different server responses ''' -def test_elbv2_describe_instances(): +def test_elbv2_describe_load_balancers(): backend = server.create_backend_app("elbv2") test_client = backend.test_client()