Closed ningyougang closed 2 years ago
The steps of test support array result for sequence action in swift(4.2, 5.1, 5.3)
[root@nccddev130026 ~]# cat ~/split.swift
func main(args: Any) -> Any {
// don't do real split operation, just return array for next action's input param
return ["e1", "e2"]
}
[root@nccddev130026 ~]# cat ~/sort.swift func main(args: Any) -> Any { // don't do real sort operation, just return the array direclty return args }
* Create actions and invoke it
```shell
wsk -i action create /whisk.system/utils/split-swift --kind swift:5.3 ~/split.swift
wsk -i action create /whisk.system/utils/sort-swift --kind swift:5.3 ~/sort.swift
wsk -i action create mySequence-swift --sequence /whisk.system/utils/split-swift,/whisk.system/utils/sort-swift
wsk -i action invoke --result mySequence-swift -r -v
Depend on below prs:
https://github.com/apache/openwhisk/pull/5290
https://github.com/apache/openwhisk-runtime-go/pull/170
[x] Support array result