Tests library¶
Use an AWS BDD account¶
Available since 1.2
Get an AWS account to perform any integration testing with AWS services and release when exiting the context
Signature¶
tests.withBDDAccount(currentBuild, needeed_time = 3600, Closure inner)
Parameter
currentBuild
is the meta object pointing to the current buildneedeed_time
is the maximum time this account would be used for. Account will be reset after that timeinner
is the closure that will be executed while this account is allocated. The allocated account object is passed as first argument
Examples¶
Simple usage:
tests.withBDDAccount(currentBuild, 3600){ account ->
println "Using account ${account.getName()} with ID ${account.getID()}"
}