Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
[client] | |
host=localhost | |
database=test_report | |
user=test_report | |
password=test_report |
package misc | |
import org.mockito.MockSettings | |
import org.mockito.Mockito.{mock => mockitoMock} | |
import org.mockito.invocation.InvocationOnMock | |
import org.mockito.stubbing.Answer | |
import org.mockito.verification.VerificationMode | |
import scala.reflect.{Manifest, ClassTag} |
package misc | |
import java.net.{InetAddress, UnknownHostException} | |
import java.util.concurrent.ConcurrentHashMap | |
import sun.net.spi.nameservice.{NameService, NameServiceDescriptor} | |
class CustomNameService extends NameService { | |
override def lookupAllHostAddr(s: String): Array[InetAddress] = |
package tests | |
import spray.json._ | |
object ApplyChanges extends App { | |
case class Area(country: String) | |
case class Address(street: String, city: String, area: Area) |