authentichoogl.blogg.se

Set up local dynamodb us east n virgina
Set up local dynamodb us east n virgina





set up local dynamodb us east n virgina

In August 2018 Amazon announced new Docker image with Amazon DynamoDB Local onboard. PS: I am aware of Alternator, but it appears to have other drawbacks so I’m inclined to stick with Amazon’s supported solution if I can make it work. Can’t I somehow ask the JVM to fork itself and look inside the resources to build a classpath? Or, even better, can’t I just call the main method of DynamoDB Local from some other thread so this all happens in a single process? Any ideas? DynamoDB Local is, after all, just Java code. It seems like there should be an easier way. Besides being slow, the potential for left-over processes seems ugly.

  • I have to spawn a process and wait for it to start for each unit test, and then kill that process after each test.
  • Using local disk is often dicey for testing, especially with continuous builds and such.
  • I have to unpack a zip to the local disk.
  • Everyone needs the java executable on their $PATH.
  • set up local dynamodb us east n virgina

    That works, but it’s ugly and has some drawbacks:

    #Set up local dynamodb us east n virgina zip file

    zip file of the DynamoDB local stuff in test/resources, then in the method, I’d extract it to some temporary directory and start a new java process to execute it. I have found a way to make this work, but it’s ugly, so I’m looking for alternatives. That way anyone pulling down the git repo gets a copy of everything they need to run the tests and each test is independent of the others. Then before each test I’d start it up, running with -inMemory, and after the test I’d stop it. What I want to do is something like put the DynamoDB local jar, and the other jars upon which it depends, in my test/resources directory (I’m writing in Java).

  • All developers need to have it installed.
  • The server isn’t started and stopped before each test so tests become inter-dependent unless you add code to delete all tables, etc.
  • You have to somehow start the server before your tests run.
  • I’m using DynamoDB local for unit testing.







    Set up local dynamodb us east n virgina