Skip to content

Commit 13a967a

Browse files
committed
Fix bash test
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 11885ac commit 13a967a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

build_integration_test.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@ build_faas_function() {
4343
eval $cli new $function_name --lang $TEMPLATE_NAME
4444

4545
cat << EOF > $function_name/handler.py
46-
def handle(req):
47-
48-
return "Function output from integration testing: Hello World!"
46+
def handle(event, context):
47+
return {
48+
"statusCode": 200,
49+
"body": {"message": "Hello from OpenFaaS!"},
50+
"headers": {
51+
"Content-Type": "application/json"
52+
}
53+
}
4954
EOF
5055

5156
eval $cli build -f $function_name.yml
@@ -126,7 +131,7 @@ EOF
126131

127132
get_templates() {
128133
echo "Getting templates..."
129-
eval $cli template pull $TEMPLATE_NAME
134+
eval $cli template store pull $TEMPLATE_NAME
130135
}
131136

132137
get_templates

0 commit comments

Comments
 (0)