We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11885ac commit 13a967aCopy full SHA for 13a967a
build_integration_test.sh
@@ -43,9 +43,14 @@ build_faas_function() {
43
eval $cli new $function_name --lang $TEMPLATE_NAME
44
45
cat << EOF > $function_name/handler.py
46
-def handle(req):
47
-
48
- return "Function output from integration testing: Hello World!"
+def handle(event, context):
+ return {
+ "statusCode": 200,
49
+ "body": {"message": "Hello from OpenFaaS!"},
50
+ "headers": {
51
+ "Content-Type": "application/json"
52
+ }
53
54
EOF
55
56
eval $cli build -f $function_name.yml
@@ -126,7 +131,7 @@ EOF
126
131
127
132
get_templates() {
128
133
echo "Getting templates..."
129
- eval $cli template pull $TEMPLATE_NAME
134
+ eval $cli template store pull $TEMPLATE_NAME
130
135
}
136
137
get_templates
0 commit comments