Add ELB server test
This commit is contained in:
parent
b40d3a5629
commit
befcadc7fc
@ -5,6 +5,7 @@ from werkzeug.routing import BaseConverter
|
|||||||
|
|
||||||
from moto.dynamodb import dynamodb_backend # flake8: noqa
|
from moto.dynamodb import dynamodb_backend # flake8: noqa
|
||||||
from moto.ec2 import ec2_backend # flake8: noqa
|
from moto.ec2 import ec2_backend # flake8: noqa
|
||||||
|
from moto.elb import elb_backend # flake8: noqa
|
||||||
from moto.s3 import s3_backend # flake8: noqa
|
from moto.s3 import s3_backend # flake8: noqa
|
||||||
from moto.ses import ses_backend # flake8: noqa
|
from moto.ses import ses_backend # flake8: noqa
|
||||||
from moto.sqs import sqs_backend # flake8: noqa
|
from moto.sqs import sqs_backend # flake8: noqa
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import sure # flake8: noqa
|
||||||
|
|
||||||
|
import moto.server as server
|
||||||
|
|
||||||
|
'''
|
||||||
|
Test the different server responses
|
||||||
|
'''
|
||||||
|
server.configure_urls("elb")
|
||||||
|
|
||||||
|
|
||||||
|
def test_elb_describe_instances():
|
||||||
|
test_client = server.app.test_client()
|
||||||
|
res = test_client.get('/?Action=DescribeLoadBalancers')
|
||||||
|
|
||||||
|
res.data.should.contain('DescribeLoadBalancersResponse')
|
||||||
|
res.data.should.contain('LoadBalancerName')
|
Loading…
Reference in New Issue
Block a user