The manifest.yaml file defines:
a Package named IntegrationTestHelloWorld
which contains:
Four actions:
helloNodejs
helloJava
helloPython
helloSwift
A Sequence hello-world-series
which includes all four actions.
A trigger triggerHelloworld
to invoke hello-world-series
sequence
A rule ruleMappingHelloworld
to associate the sequence hello-world-series
with trigger triggerHelloworld
helloNodejs
:
name
(string) (default: Amy)place
(string) (default: Paris)Hello Amy from Paris
helloJava
name
(string) (default: Bob)Hello Bob!
helloPython
name
(string) (default: Henry)Hello Henry!
helloSwift
name
(string) (no default)Hello stranger!
Deploy it using wskdeploy
:
$ wskdeploy -p tests/src/integration/helloworld
$ wsk package get IntegrationTestHelloWorld #lists all four actions and a sequence $ wsk trigger get triggerHelloworld $ wsk rule get ruleMappingHelloworld
# invoke all four actions in a sequence hello-world-series # results in four activation IDs and polling on displays outputs from all four actions $ wsk trigger fire triggerHelloworld Activation: helloSwift (5a0) [ "2017-09-01T17:09:51.589079299Z stdout: [\"greeting\": \"Hello stranger!\"]" ] Activation: helloPython (219) [ "2017-09-01T17:09:51.554034831Z stdout: Hello Henry!" ] Activation: helloJava (725) [ "2017-09-01T17:09:51.547499195Z stdout: {\"greeting\":\"Hello Bob!\"}" ] Activation: triggerHelloworld (566) [] Activation: ruleMappingHelloworld (270) [] Activation: helloNodejs (495) [ "2017-09-01T17:09:51.459935244Z stdout: Hello, Amy from Paris" ]