This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch rabbah-patch-1
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-docker.git

commit d241f8669eb08b174e84fd37d3180af01b51e84b
Author: rodric rabbah <[email protected]>
AuthorDate: Tue Dec 3 10:33:09 2019 -0500

    Update for action version.
    
    See https://github.com/apache/openwhisk/pull/4761.
---
 .../runtime/actionContainers/ActionProxyContainerTests.scala     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/tests/src/test/scala/runtime/actionContainers/ActionProxyContainerTests.scala 
b/tests/src/test/scala/runtime/actionContainers/ActionProxyContainerTests.scala
index d62c3f5..b95d8bd 100644
--- 
a/tests/src/test/scala/runtime/actionContainers/ActionProxyContainerTests.scala
+++ 
b/tests/src/test/scala/runtime/actionContainers/ActionProxyContainerTests.scala
@@ -89,7 +89,7 @@ object CodeSamples {
                  |#!/bin/bash
                  |echo "{ \
                  |\"api_host\": \"$__OW_API_HOST\", \"api_key\": 
\"$__OW_API_KEY\", \
-                 |\"namespace\": \"$__OW_NAMESPACE\", \"action_name\": 
\"$__OW_ACTION_NAME\", \
+                 |\"namespace\": \"$__OW_NAMESPACE\", \"action_name\": 
\"$__OW_ACTION_NAME\", \"action_version\": \"$__OW_ACTION_VERSION\", \
                  |\"activation_id\": \"$__OW_ACTIVATION_ID\", \"deadline\": 
\"$__OW_DEADLINE\" }"
                """.stripMargin.trim
 
@@ -98,9 +98,9 @@ object CodeSamples {
         |#!/usr/bin/env python
         |import os
         |
-        |print('{ "api_host": "%s", "api_key": "%s", "namespace": "%s", 
"action_name" : "%s", "activation_id": "%s", "deadline": "%s" }' % (
+        |print('{ "api_host": "%s", "api_key": "%s", "namespace": "%s", 
"action_name" : "%s", action_version" : "%s", "activation_id": "%s", 
"deadline": "%s" }' % (
         |  os.environ['__OW_API_HOST'], os.environ['__OW_API_KEY'],
-        |  os.environ['__OW_NAMESPACE'], os.environ['__OW_ACTION_NAME'],
+        |  os.environ['__OW_NAMESPACE'], os.environ['__OW_ACTION_NAME'], 
os.environ['__OW_ACTION_VERSION'],
         |  os.environ['__OW_ACTIVATION_ID'], os.environ['__OW_DEADLINE']))
       """.stripMargin.trim
 
@@ -111,9 +111,10 @@ object CodeSamples {
         |$b = $ENV{'__OW_API_KEY'};
         |$c = $ENV{'__OW_NAMESPACE'};
         |$d = $ENV{'__OW_ACTION_NAME'};
+        |$r = $ENV{'__OW_ACTION_VERSION'};
         |$e = $ENV{'__OW_ACTIVATION_ID'};
         |$f = $ENV{'__OW_DEADLINE'};
-        |print "{ \"api_host\": \"$a\", \"api_key\": \"$b\", \"namespace\": 
\"$c\", \"action_name\": \"$d\", \"activation_id\": \"$e\", \"deadline\": 
\"$f\" }";
+        |print "{ \"api_host\": \"$a\", \"api_key\": \"$b\", \"namespace\": 
\"$c\", \"action_name\": \"$d\", \"action_version\": \"$r\", \"activation_id\": 
\"$e\", \"deadline\": \"$f\" }";
       """.stripMargin.trim
 
     Seq(("bash", bash), ("python", python), ("perl", perl))

Reply via email to