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 9897E200CAD for ; Wed, 28 Jun 2017 18:41:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 97B97160BFC; Wed, 28 Jun 2017 16:41:05 +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 EC89C160BF7 for ; Wed, 28 Jun 2017 18:41:04 +0200 (CEST) Received: (qmail 25266 invoked by uid 500); 28 Jun 2017 16:41:04 -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 25208 invoked by uid 99); 28 Jun 2017 16:41:02 -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, 28 Jun 2017 16:41:02 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 0FA7180BAB; Wed, 28 Jun 2017 16:41:00 +0000 (UTC) Date: Wed, 28 Jun 2017 16:41:00 +0000 To: "commits@openwhisk.apache.org" Subject: [incubator-openwhisk-package-kafka] branch master updated: Update health test to take the full health URL (#188) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <149866806034.1506.1567737691459692179@gitbox.apache.org> From: csantanapr@apache.org Reply-To: "commits@openwhisk.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-openwhisk-package-kafka X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d33e233098a537d71089fe8c0853a02a5f17af5f X-Git-Newrev: 2de193069c484351faa1ec97745be83e555c5fab X-Git-Rev: 2de193069c484351faa1ec97745be83e555c5fab X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Wed, 28 Jun 2017 16:41:05 -0000 This is an automated email from the ASF dual-hosted git repository. csantanapr pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-kafka.git The following commit(s) were added to refs/heads/master by this push: new 2de1930 Update health test to take the full health URL (#188) 2de1930 is described below commit 2de193069c484351faa1ec97745be83e555c5fab Author: Justin Berstler AuthorDate: Wed Jun 28 12:40:58 2017 -0400 Update health test to take the full health URL (#188) --- tests/build.gradle | 1 + tests/src/test/scala/system/health/BasicHealthTest.scala | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/build.gradle b/tests/build.gradle index c256887..fc8cacf 100644 --- a/tests/build.gradle +++ b/tests/build.gradle @@ -13,6 +13,7 @@ repositories { def commonConfiguration = { systemProperty 'testthreads', System.getProperty('testthreads', '1') + systemProperty 'health_url', System.getProperty('health_url', '') systemProperty 'host', System.getProperty('host', '') systemProperty 'port', System.getProperty('port', '') systemProperty 'trigger.suffix', System.getProperty('trigger.suffix', '') diff --git a/tests/src/test/scala/system/health/BasicHealthTest.scala b/tests/src/test/scala/system/health/BasicHealthTest.scala index 937b969..348af7f 100644 --- a/tests/src/test/scala/system/health/BasicHealthTest.scala +++ b/tests/src/test/scala/system/health/BasicHealthTest.scala @@ -71,11 +71,6 @@ class BasicHealthTest val kafkaUtils = new KafkaUtils - val getMessagingAddress = - if (System.getProperty("host") != "" && System.getProperty("port") != "") { - "http://" + System.getProperty("host") + ":" + System.getProperty("port") - } - behavior of "Message Hub feed" it should "create a new trigger" in withAssetCleaner(wskprops) { @@ -102,7 +97,7 @@ class BasicHealthTest // get /health endpoint and ensure it contains the new uuid retry({ - val response = RestAssured.given().get(getMessagingAddress + "/health") + val response = RestAssured.given().get(System.getProperty("health_url")) assert(response.statusCode() == 200 && response.asString().contains(uuid)) }, N = 3) } -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" '].