Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 815EE200CFD for ; Wed, 16 Aug 2017 11:23:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 80515167627; Wed, 16 Aug 2017 09:23:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4062D16322B for ; Wed, 16 Aug 2017 11:23:47 +0200 (CEST) Received: (qmail 53428 invoked by uid 500); 16 Aug 2017 09:23:46 -0000 Mailing-List: contact commits-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list commits@openwhisk.apache.org Received: (qmail 53412 invoked by uid 99); 16 Aug 2017 09:23:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2017 09:23:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 766D0812C2; Wed, 16 Aug 2017 09:23:41 +0000 (UTC) Date: Wed, 16 Aug 2017 09:23:53 +0000 To: "commits@openwhisk.apache.org" Subject: [incubator-openwhisk-performance] 13/22: Refactor test setup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: markusthoemmes@apache.org Reply-To: "commits@openwhisk.apache.org" In-Reply-To: <150287542065.27829.5317473900597651883@gitbox.apache.org> References: <150287542065.27829.5317473900597651883@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-openwhisk-performance X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 9a0cf499a1f9f46955b09cc2ccce7e1ac2b67a3e X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20170816092342.766D0812C2@gitbox.apache.org> archived-at: Wed, 16 Aug 2017 09:23:48 -0000 This is an automated email from the ASF dual-hosted git repository. markusthoemmes pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-performance.git commit 9a0cf499a1f9f46955b09cc2ccce7e1ac2b67a3e Author: Markus Thoemmes AuthorDate: Mon Apr 24 13:47:44 2017 +0200 Refactor test setup --- test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index e67ae9f..4b464fa 100755 --- a/test.sh +++ b/test.sh @@ -1,14 +1,17 @@ #!/bin/sh +set -e action="noop" +credentials="$(cat openwhisk/ansible/files/auth.guest)" +host="172.17.0.1:10001" # create a noop action echo "Creating noop action" -curl -u "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/$action" -XPUT -d '{"namespace":"_","name":"test","exec":{"kind":"nodejs:default","code":"function main(){return {};}"}}' -H "Content-Type: application/json" +curl -u "$credentials" "$host/api/v1/namespaces/_/actions/$action" -XPUT -d '{"namespace":"_","name":"test","exec":{"kind":"nodejs:default","code":"function main(){return {};}"}}' -H "Content-Type: application/json" # run the noop action echo "Running noop action once to assert an intact system" -curl -u "$(cat openwhisk/ansible/files/auth.guest)" "172.17.0.1:10001/api/v1/namespaces/_/actions/$action?blocking=true" -XPOST +curl -u "$credentials" "$host/api/v1/namespaces/_/actions/$action?blocking=true" -XPOST # run performance harness -docker run --rm markusthoemmes/loadtest loadtest -n 10000 -H "Authorization: basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A=" "http://172.17.0.1:10001/api/v1/namespaces/_/actions/$action?blocking=true" -m POST \ No newline at end of file +docker run --rm markusthoemmes/loadtest loadtest -n 10000 -H "Authorization: basic $(echo $credentials | base64 -w 0)" "http://$host/api/v1/namespaces/_/actions/$action?blocking=true" -m POST \ No newline at end of file -- To stop receiving notification emails like this one, please contact "commits@openwhisk.apache.org" .