Files
fx-serverless/scripts/test_cli.sh
Minghe 884fb65432 Remove path (#162)
* clean up

* remove Path

* fix typo

* add more test

* fix typo

* fix permission issue

* fix server not started issue

* clean up
2018-08-03 00:41:33 +08:00

15 lines
477 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# start fx server
./build/fx serve > server_output 2>&1 &
sleep 20 # waiting fx server to pulling resource done
for lang in 'js' 'rb' 'py' 'go' 'php' 'jl' 'java' 'd'; do
./build/fx up examples/functions/func.${lang} | jq '.Instances' | grep FunctionID
./build/fx call examples/functions/func.js a=1 b=2 | jq '.Data' | grep 3
./build/fx list | jq '.Instances' | grep FunctionID
./build/fx down '*' | jq '.Instances' | grep ContainerId
done