Awesome
Serverless e2e testing examples
This project contains example applications using serverless technology You can run all e2e test automation runner.
E2E automation workflow:
This project uses endly as e2e test runner.
- Basic workflow demystified
init:
srcCodeLocation: ${appPath}/hello/
target:
URL: ssh://127.0.0.1
credentials: dev
defaults:
credentials: gcp-e2e
pipeline:
package:
action: exec:run
comments: vendor build for deployment speedup using SSH service
target: $target
commands:
- cd ${appPath}/split
- go mod vendor
deploy:
action: gcp/cloudfunctions:deploy
'@name': HelloWorld
entryPoint: HelloWorldFn
runtime: go111
source:
URL: $srcCodeLocation
- 'init' node: variable initialization
- 'pipeline' node: tasks definition
- package/deploy is arbitrary task name.
- defaults node appends specified attributes to all action nodes (no override).
- node with 'action' attribute triggers API call to specified service:method
- package
sshExecutorService.run({ target: { URL:"ssh://127.0.0.1", credentials: "dev" }, commands: [ 'cd ${appPath}/split', 'go mod vendor' ] })
- deploy
gcpCloudFunctionsService.deploy({ name: "HelloWorld", credentials: "gcp-e2e", entryPoint: "HelloWorldFn", runtime: "go111", source: { URL: '/somepath//hello/' } })
- API contracts details
endly -s='gcp/cloudfunctions'
endly -s='gcp/cloudfunctions:deploy'
endly -s='aws/lambda'
endly -s='aws/lambda:deploy'
endly -s='*'
- Find out more about E2E endly workflows.