openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject [incubator-openwhisk-wskdeploy] branch master updated: Upgrade the Go version to 1.9 (#997)
Date Wed, 24 Oct 2018 23:05:34 GMT
This is an automated email from the ASF dual-hosted git repository.

pdesai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 83e2152  Upgrade the Go version to 1.9 (#997)
83e2152 is described below

commit 83e2152519d685b339c7f30f6eb18e721943218a
Author: Vincent <shou@us.ibm.com>
AuthorDate: Wed Oct 24 19:05:30 2018 -0400

    Upgrade the Go version to 1.9 (#997)
---
 .travis.yml               | 2 +-
 Dockerfile                | 2 +-
 Godeps/Godeps.json        | 2 +-
 runtimes/runtimes_test.go | 5 ++++-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 657c98e..ef5aadd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@
 sudo: required
 language: go
 go:
-- 1.8
+- 1.9
 services:
 - docker
 git:
diff --git a/Dockerfile b/Dockerfile
index 2c5123b..66ab8b2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,7 @@
 # limitations under the License.
 #
 
-FROM golang:1.8
+FROM golang:1.9
 
 # Install zip
 RUN apt-get -y update && \
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json
index 3d9d7c0..72715ee 100644
--- a/Godeps/Godeps.json
+++ b/Godeps/Godeps.json
@@ -1,6 +1,6 @@
 {
 	"ImportPath": "github.com/apache/incubator-openwhisk-wskdeploy",
-	"GoVersion": "go1.7",
+	"GoVersion": "go1.9",
 	"GodepVersion": "v62",
 	"Deps": [
 		{
diff --git a/runtimes/runtimes_test.go b/runtimes/runtimes_test.go
index f966e11..322882c 100644
--- a/runtimes/runtimes_test.go
+++ b/runtimes/runtimes_test.go
@@ -26,10 +26,13 @@ func TestParseOpenWhisk(t *testing.T) {
 	openwhiskHost := "https://openwhisk.ng.bluemix.net"
 	openwhisk, err := ParseOpenWhisk(openwhiskHost)
 	assert.Equal(t, nil, err, "parse openwhisk info error happened.")
+	println(openwhisk.Runtimes)
 	converted := ConvertToMap(openwhisk)
+	println(converted["nodejs"])
+	println(converted["python"])
 	assert.Equal(t, 2, len(converted["nodejs"]), "not expected length")
 	assert.Equal(t, 2, len(converted["php"]), "not expected length")
 	assert.Equal(t, 1, len(converted["java"]), "not expected length")
-	assert.Equal(t, 4, len(converted["python"]), "not expected length")
+	assert.Equal(t, 6, len(converted["python"]), "not expected length")
 	assert.Equal(t, 2, len(converted["swift"]), "not expected length")
 }


Mime
View raw message