Skip to content

Commit 0b5ae5a

Browse files
committed
Update CI test to use python3-http instead of EOL template
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent c4e4ff9 commit 0b5ae5a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

build_integration_test.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
cli="./bin/faas-cli"
4-
template="python3"
4+
5+
TEMPLATE_NAME="python3-http"
56

67
get_package() {
78
uname=$(uname)
@@ -22,21 +23,20 @@ get_package() {
2223
case $arch in
2324
"armv6l" | "armv7l")
2425
cli="./faas-cli-armhf"
25-
template="python3-armhf"
2626
;;
2727
esac
2828
;;
2929
esac
3030

3131
echo "Using package $cli"
32-
echo "Using template $template"
32+
echo "Using template $TEMPLATE_NAME"
3333
}
3434

3535
build_faas_function() {
3636

3737
function_name=$1
3838

39-
eval $cli new $function_name --lang $template
39+
eval $cli new $function_name --lang $TEMPLATE_NAME
4040

4141
cat << EOF > $function_name/handler.py
4242
def handle(req):
@@ -120,6 +120,13 @@ EOF
120120
rm -rf got.txt want.txt $function_name*
121121
}
122122

123+
get_templates() {
124+
echo "Getting templates..."
125+
eval $cli template pull $TEMPLATE_NAME
126+
}
127+
128+
get_templates
129+
123130
get_package
124131
build_faas_function $FUNCTION
125132
run_and_test $FUNCTION $PORT $FUNCTION_UP_TIMEOUT

0 commit comments

Comments
 (0)