openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamestho...@apache.org
Subject [incubator-openwhisk-client-js] branch master updated: Default Node.js runtime changed from 6 to 10 (#171)
Date Mon, 24 Jun 2019 13:15:24 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 7bc4b98  Default Node.js runtime changed from 6 to 10 (#171)
7bc4b98 is described below

commit 7bc4b988ad0dc72aec9e30c735a5d625a96cbf86
Author: James Thomas <james@jamesthom.as>
AuthorDate: Mon Jun 24 14:15:20 2019 +0100

    Default Node.js runtime changed from 6 to 10 (#171)
---
 test/integration/actions.test.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/integration/actions.test.js b/test/integration/actions.test.js
index 9533fce..95df0b4 100644
--- a/test/integration/actions.test.js
+++ b/test/integration/actions.test.js
@@ -86,7 +86,7 @@ test('create, get and delete an action', t => {
   }).then(result => {
     t.is(result.name, 'random_action_test')
     t.is(result.namespace, NAMESPACE)
-    t.is(result.exec.kind, 'nodejs:6')
+    t.true(result.exec.kind.startsWith('nodejs'))
     t.is(result.exec.code, 'function main() {return {payload:"testing"}}')
     return actions.get({actionName: 'random_action_test'}).then(actionResult => {
       t.is(actionResult.name, 'random_action_test')
@@ -110,7 +110,7 @@ test('create and update an action', t => {
   }).then(result => {
     t.is(result.name, 'random_update_tested')
     t.is(result.namespace, NAMESPACE)
-    t.is(result.exec.kind, 'nodejs:6')
+    t.true(result.exec.kind.startsWith('nodejs'))
     t.is(result.exec.code, 'function main() {return {payload:"testing"}}')
     return actions.update({actionName: 'random_update_tested', action: 'update test'}).then(updateResult
=> {
       t.is(updateResult.exec.code, 'update test')
@@ -135,7 +135,7 @@ test('create, get and delete with parameters an action', t => {
     t.is(result.name, 'random_action_params_test')
     t.is(result.namespace, NAMESPACE)
     t.deepEqual(result.parameters, [{key: 'hello', value: 'world'}])
-    t.is(result.exec.kind, 'nodejs:6')
+    t.true(result.exec.kind.startsWith('nodejs'))
     t.is(result.exec.code, 'function main() {return {payload:"testing"}}')
     return actions.update({
       actionName: 'random_action_params_test',
@@ -161,7 +161,7 @@ test('get an action with and without its code', t => {
   return actions.create({actionName: 'random_action_get_test', action: 'function main() {return
{payload:"testing"}}'}).then(result => {
     t.is(result.name, 'random_action_get_test')
     t.is(result.namespace, NAMESPACE)
-    t.is(result.exec.kind, 'nodejs:6')
+    t.true(result.exec.kind.startsWith('nodejs'))
     t.is(result.exec.code, 'function main() {return {payload:"testing"}}')
     return actions.get({actionName: 'random_action_get_test', code: false}).then(actionResult
=> {
       t.is(actionResult.name, 'random_action_get_test')


Mime
View raw message