Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 1.4 KB

File metadata and controls

35 lines (25 loc) · 1.4 KB

oap-storage

MongoDB

Project uses in memory implementation of MongoDB for tests. In doesn't support the latest mongo wire protocol. Therefor the only mongo shell (required for mingrations) that can communicate to it has maximum version of 3.6.x.

DynamoDB

Thin (simple) DynamoDB client. Used for sync/async operations in [DynamoDB]. Two services are configured based on DynamoDB client: dynamodb-client-reader and dynamodb-client-writer in

oap-module.conf

DynamoDB logging is created by DynamodbLog and configured by dynamodb-log service in oap-module.conf.

Use DynamodbFixture for any tests based on the DynamoDB server. See DynamodbClientTest for any specific test cases.

##docker docker pull amazon/dynamodb-local docker run -p 8000:8000 amazon/dynamodb-local

##dynamodb.yaml version: '2' services: dynamodb: image: amazon/dynamodb-local:latest ports:

  • "8000:8000" command: ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-inMemory"]

Note: There are plenty of ignored dynamo-db tests. All of them are based on DynamoDB testcontainer.