-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set config/test.exs as a 'bare-bones' config file and import ddb_loca…
…l_test.exs only if it has been provided.
- Loading branch information
1 parent
462c133
commit 8d13332
Showing
5 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ erl_crash.dump | |
|
||
# Also ignore archive artifacts (built via "mix archive.build"). | ||
*.ez | ||
|
||
/config/ddb_local_test.exs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use Mix.Config | ||
|
||
config :ex_aws, | ||
debug_requests: false, # set to true to monitor the DDB requests | ||
access_key_id: "abcd", | ||
secret_access_key: "1234", | ||
region: "us-east-1" | ||
|
||
config :ex_aws, :dynamodb, | ||
scheme: "http://", | ||
host: "localhost", | ||
port: SET_YOUR_PORT, | ||
region: "us-east-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
use Mix.Config | ||
|
||
################################################################### | ||
# Uncomment the configuration below and set the value for :port | ||
# in order to run the tests in test/lib/dynamo/integration_test.exs | ||
################################################################### | ||
|
||
# config :ex_aws, | ||
# debug_requests: false, # set to true to monitor the DDB requests | ||
# access_key_id: "abcd", | ||
# secret_access_key: "1234", | ||
# region: "us-east-1" | ||
|
||
# config :ex_aws, :dynamodb, | ||
# scheme: "http://", | ||
# host: "localhost", | ||
# port: SET_YOUR_TEST_PORT, | ||
# region: "us-east-1" | ||
# Only attempt to load config for DDB local if | ||
# a config has been explicitly provided. See README. | ||
if File.exists?("config/ddb_local_test.exs") do | ||
import_config "ddb_local_test.exs" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters