trait LocalDynamoDB extends AnyRef
Mix in this trait if you want to write a spec that depends on DynamoDB and want to optionally spin up a local DynamoDB.
To use it, extend this trait, specify (val arguments: org.specs2.main.Arguments) as an argument to your spec class, and add steps to your spec to call startLocalDynamoDB and stopLocalDynamoDB at the appropriate times.
You can also optionally override various command line argument names to configure the spec.
- Alphabetic
- By Inheritance
- LocalDynamoDB
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def arguments: Arguments
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def IS_LOCAL: Boolean
- def LOCAL_DB_PORT: Int
- def REGION: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
db_port: String
Override this to provide a custom command line argument name for local Dynamo DB port
-
def
defaultDbPort: Int
Override this to provide a custom default DB port programmatically.
Override this to provide a custom default DB port programmatically. By default it will try to pick a random port.
- def dynamoClient: AmazonDynamoDBClient
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
integration: String
Override this to provide a custom command line argument name that represents 'use AWS resources' mode
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- lazy val randomPort: Int
-
def
region: String
Override this to provide a custom command line argument name for Dynamo DB region
- def runAttemptStep[A](attempt: Attempt[A]): Product with Serializable with Result { ... /* 3 definitions in type refinement */ }
-
def
runScript(script: String, args: List[String], name: String): Attempt[String]
Override this to specify custom location for start/stop scripts for a local Dynamo instance
- def startLocalDynamoDB(): Result
- def stopLocalDynamoDB(): Result
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
useAwsLocalDynamo: Boolean
Override this to specify whether to use AWS Local DynamoDB or Dynalite
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withLocalDb(f: ⇒ Result): Result