Change tests to use default server port of 5000.
This commit is contained in:
parent
689adf7dbc
commit
cda553abfb
9 changed files with 12 additions and 12 deletions
|
|
@ -40,7 +40,7 @@ def lambda_handler(event, context):
|
|||
vol = ec2.Volume(volume_id)
|
||||
print('Volume - %s state=%s, size=%s' % (volume_id, vol.state, vol.size))
|
||||
return event
|
||||
""".format(base_url="localhost:8086" if settings.TEST_SERVER_MODE else "ec2.us-west-2.amazonaws.com")
|
||||
""".format(base_url="localhost:5000" if settings.TEST_SERVER_MODE else "ec2.us-west-2.amazonaws.com")
|
||||
return _process_lamda(pfunc)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import requests
|
|||
from moto import mock_ec2, settings
|
||||
|
||||
if settings.TEST_SERVER_MODE:
|
||||
BASE_URL = 'http://localhost:8086'
|
||||
BASE_URL = 'http://localhost:5000'
|
||||
else:
|
||||
BASE_URL = 'http://169.254.169.254'
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import requests
|
|||
import boto3
|
||||
from moto import mock_sqs, settings
|
||||
|
||||
base_url = "http://localhost:8086" if settings.TEST_SERVER_MODE else "http://motoapi.amazonaws.com"
|
||||
base_url = "http://localhost:5000" if settings.TEST_SERVER_MODE else "http://motoapi.amazonaws.com"
|
||||
|
||||
|
||||
@mock_sqs
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ def test_create_queues_in_multiple_region():
|
|||
list(west2_conn.list_queues()['QueueUrls']).should.have.length_of(1)
|
||||
|
||||
if settings.TEST_SERVER_MODE:
|
||||
base_url = 'http://localhost:8086'
|
||||
base_url = 'http://localhost:5000'
|
||||
else:
|
||||
base_url = 'https://us-west-1.queue.amazonaws.com'
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ def test_get_queue_with_prefix():
|
|||
queue.should.have.length_of(1)
|
||||
|
||||
if settings.TEST_SERVER_MODE:
|
||||
base_url = 'http://localhost:8086'
|
||||
base_url = 'http://localhost:5000'
|
||||
else:
|
||||
base_url = 'https://us-west-1.queue.amazonaws.com'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue