Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Fix test failures with zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
anuruddhal committed Jun 6, 2018
1 parent 9e679de commit 4dca46a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,9 @@ get-ballerina-data-verify:
kubeless function call get-ballerina-data --data '{"hello":"world"}' |egrep hello

get-ballerina-conf:
zip -r -j bar.zip ballerina/hello_with_conf/
kubeless function deploy get-ballerina-conf --runtime ballerina0.970.1 --from-file bar.zip --handler hello_with_conf.bar
zip -r -j ballerina/bar.zip ballerina/hello_with_conf/
kubeless function deploy get-ballerina-conf --runtime ballerina0.970.1 --from-file ballerina/bar.zip --handler hello_with_conf.bar
rm ballerina/bar.zip

get-ballerina-conf-verify:
kubeless function call get-ballerina-conf |egrep john
kubeless function call get-ballerina-conf | egrep john
1 change: 0 additions & 1 deletion pkg/langruntime/langruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ func (l *Langruntimes) GetCompilationContainer(runtime, funcName string, install
command = fmt.Sprintf(
"mkdir -p /kubeless/kubeless/ /kubeless/func/ && "+
"cp -r /ballerina/files/kubeless/*.bal /kubeless/kubeless/ && "+
"ls -altr && "+
"cp -r /kubeless/*.bal /kubeless/func/ && "+
"touch /kubeless/kubeless.toml && "+
"cp -r /ballerina/files/src/kubeless_run.tpl.bal /kubeless/ && "+
Expand Down
2 changes: 1 addition & 1 deletion tests/integration-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ load ../script/libtest
deploy_function get-ballerina
deploy_function get-ballerina-custom-port
deploy_function get-ballerina-data
deploy_function get-ballerina-deps
deploy_function get-ballerina-conf
}
@test "Test function: get-python" {
verify_function get-python
Expand Down

0 comments on commit 4dca46a

Please sign in to comment.