NewServer sets up a fake Pinpoint Legacy HTTP server configured to serve
response templates from the provided templateDir. If jobData is not nil, the
map is used as the backing store in the Server.
const (
QueuedStatus Status = "Queued"
RunningStatus Status = "Running"
CancelledStatus Status = "Cancelled"
FailedStatus Status = "Failed"
CompletedStatus Status = "Completed"
)
Templates represents the set of templates needed by the fake legacy service.
Each specific template will have its own field. Use loadTemplates to create
a new set of Templates.