Skip to content
Snippets Groups Projects
Commit 224c05b0 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

test location

parent 82ac093c
No related branches found
No related tags found
1 merge request!806AWS Lambda
package gov.usgs.earthquake.nshmp.www;
import java.nio.file.Path;
import java.util.Optional;
import org.crac.Context;
import org.crac.Resource;
......@@ -38,6 +39,15 @@ public class PrimingResource implements OrderedResource {
handler.handleRequest(
getAwsProxyRequest("/hazard"),
new MockLambdaContext());
Optional<String> location = Optional.ofNullable(System.getenv("TEST_LOCATION"));
if (location.isPresent()) {
handler.handleRequest(
getAwsProxyRequest(String.format("/hazard/%s/760?imt=PGA", location.get())),
new MockLambdaContext());
}
}
}
......
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