markusthoemmes commented on a change in pull request #2795: enable concurrent 
activation processing
URL: 
https://github.com/apache/incubator-openwhisk/pull/2795#discussion_r184601074
 
 

 ##########
 File path: performance/preparation/create-async.sh
 ##########
 @@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+
+# Host to use. Needs to include the protocol.
+host=$1
+# Credentials to use for the test. USER:PASS format.
+credentials=$2
+# Name of the action to create and test.
+action=$3
+
+# create a noop action
+echo "Creating action $action"
+curl -k -u "$credentials" "$host/api/v1/namespaces/_/actions/$action" -XPUT -d 
'{"namespace":"_","name":"test","exec":{"kind":"nodejs:default","code":"function
 main(){ return new Promise(function(resolve, reject) {     
setTimeout(function() {       resolve({ done: true });     }, 175);   }) }"}}' 
-H "Content-Type: application/json"
 
 Review comment:
   Should we rather parametrize the existing `create.sh` on the action-code and 
`cat` that from a file?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to