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 5, 2018
1 parent 2d2aa87 commit a0e1053
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,7 @@ 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
kubeless function deploy get-ballerina-conf --runtime ballerina0.970.1 --from-file ballerina/bar.zip --handler hello_with_conf.bar

get-ballerina-conf-verify:
kubeless function call get-ballerina-conf |egrep john
Binary file added examples/ballerina/bar.zip
Binary file not shown.
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 @@ -53,7 +53,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 a0e1053

Please sign in to comment.