Skip to content
Snippets Groups Projects
Commit bfbd253b authored by Gavin M. Roy's avatar Gavin M. Roy
Browse files

Test updates

parent f8b6d05c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -9,7 +9,7 @@ python:
- 3.4
- 3.5
before_install:
- docker run -d --name=localstack -p 4567-4578:4567-4578 -p 8080:8080 atlassianlabs/localstack
- docker run -d --name=dynalite -p 8000:8000 rajatvig/dynalite-alpine:latest
install:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
Loading
Loading
@@ -30,5 +30,5 @@ cache:
directories:
- $HOME/.pip-cache/
after_script:
- docker stop localstack
- docker rm localstack
- docker stop dynalite
- docker rm dynalite
localstack:
image: atlassianlabs/localstack
dynalite:
image: rajatvig/dynalite-alpine:latest
ports:
- 4567-4578:4567-4578
- 8080:8080
- 8000:8000
import copy
import json
import os
import uuid
 
from tornado import testing
Loading
Loading
@@ -61,8 +62,11 @@ class DynamoDBTestCase(testing.AsyncTestCase):
 
def setUp(self):
super(DynamoDBTestCase, self).setUp()
os.environ.pop('AWS_CONFIG_FILE', None)
os.environ.pop('AWS_SHARED_CREDENTIALS_FILE', None)
os.environ.pop('AWS_DEFAULT_PROFILE', None)
self.client = tornado_aws.AsyncAWSClient(
'dynamodb', endpoint='http://localhost:4569')
'dynamodb', endpoint='http://localhost:8000')
 
@testing.gen_test
def test_create_table(self):
Loading
Loading
@@ -85,4 +89,4 @@ class UseCurlDynamoDBTestCase(DynamoDBTestCase):
def setUp(self):
super(DynamoDBTestCase, self).setUp()
self.client = tornado_aws.AsyncAWSClient(
'dynamodb', endpoint='http://localhost:4569', use_curl=True)
'dynamodb', endpoint='http://localhost:8000', use_curl=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment