You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-22Lines changed: 9 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,12 @@ end
23
23
24
24
Documentation can be found at [https://hexdocs.pm/ex_aws_dynamo](https://hexdocs.pm/ex_aws_dynamo).
25
25
26
+
## Requirements
27
+
28
+
### DynamoDB Local
29
+
30
+
If you are running this module against a local version of DynamoDB, you'll want to make sure that you have installed the latest version, currently `1.11.477` (released 2019-02-06). You can find links to download the latest version [here](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html)
31
+
26
32
## Configuration
27
33
28
34
### `decode_sets`
@@ -46,30 +52,11 @@ This application supports three test commands:
46
52
47
53
### Integration tests (optional)
48
54
49
-
The tests in `test/lib/dynamo/integration_test.exs` will attempt to run against a running local instance of DynamoDB - in order to run these tests, you will need both a running local instance of DynamoDB as well as a `config/test.exs` file (currently .gitignored) formatted like so:
50
-
51
-
`config/test.exs`
52
-
```elixir
53
-
useMix.Config
54
-
55
-
config :ex_aws,
56
-
debug_requests:false,
57
-
access_key_id:"abcd",
58
-
secret_access_key:"1234",
59
-
region:"us-east-1"
60
-
61
-
config :ex_aws, :dynamodb,
62
-
scheme:"http://",
63
-
host:"localhost",
64
-
port:CHOOSE_YOUR_TEST_PORT,
65
-
region:"us-east-1"
66
-
```
67
-
68
-
(also available in `config/test.exs.example`)
55
+
The tests in `test/lib/dynamo/integration_test.exs` will attempt to run against a local instance of DynamoDB - in order to run these tests, you will need a running local instance of DynamoDB and will need to uncomment the contents of `config/test.exs`, setting the value of `:port` to match Dynamo's port.
69
56
70
-
Before setting the `port`, be aware that `integration_test.exs` will create and delete tables with the names `"TestUsers"`, `"Test.User"`, `"TestSeveralUsers"`, `"TestFoo"`, `"test_books"`, `"TestUsersWithRange"`, `"TestTransactions"`, `"TestTransactions2"` - be careful when setting the port, as these operations may affect your current tables if they share any of those names.
57
+
Before setting the `:port`, be aware that `integration_test.exs` will create and delete tables with the names `"TestUsers"`, `"Test.User"`, `"TestSeveralUsers"`, `"TestFoo"`, `"test_books"`, `"TestUsersWithRange"`, `"TestTransactions"`, `"TestTransactions2"` - be careful when setting the port, as these operations may affect your current tables if they share any of those names.
71
58
72
-
If you do not have a running local instance of DynamoDB and/or you don't provide a valid `config/test.exs` file, the integration tests will be ignored.
59
+
If you do not have a running local instance of DynamoDB and/or you don't uncomment the contents of `config/test.exs`, the integration tests will be ignored.
0 commit comments