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 CA735200CC6 for ; Mon, 12 Jun 2017 18:45:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C973F160BF0; Mon, 12 Jun 2017 16:45:12 +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 E5FEA160BD9 for ; Mon, 12 Jun 2017 18:45:11 +0200 (CEST) Received: (qmail 81595 invoked by uid 500); 12 Jun 2017 16:45:10 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 81395 invoked by uid 99); 12 Jun 2017 16:45:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2017 16:45:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 49498F4A55; Mon, 12 Jun 2017 16:45:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ncole@apache.org To: commits@ambari.apache.org Date: Mon, 12 Jun 2017 16:45:28 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [21/50] [abbrv] ambari git commit: AMBARI-21182. Agent Host Disk Usage Alert Hardcodes the Stack Directory (aonishuk) archived-at: Mon, 12 Jun 2017 16:45:12 -0000 AMBARI-21182. Agent Host Disk Usage Alert Hardcodes the Stack Directory (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d21d434a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d21d434a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d21d434a Branch: refs/heads/branch-feature-AMBARI-12556 Commit: d21d434a16ec3078f9c2098327b559476bab8bb1 Parents: 3146a19 Author: Andrew Onishuk Authored: Thu Jun 8 15:14:17 2017 +0300 Committer: Andrew Onishuk Committed: Thu Jun 8 15:14:17 2017 +0300 ---------------------------------------------------------------------- .../src/test/python/host_scripts/TestAlertDiskSpace.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d21d434a/ambari-server/src/test/python/host_scripts/TestAlertDiskSpace.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/host_scripts/TestAlertDiskSpace.py b/ambari-server/src/test/python/host_scripts/TestAlertDiskSpace.py index 90a5a1e..0d47061 100644 --- a/ambari-server/src/test/python/host_scripts/TestAlertDiskSpace.py +++ b/ambari-server/src/test/python/host_scripts/TestAlertDiskSpace.py @@ -41,7 +41,7 @@ class TestAlertDiskSpace(RMFTestCase): total = 21673930752L, used = 5695861760L, free = 15978068992L, path="/") - res = alert_disk_space.execute() + res = alert_disk_space.execute(configurations={'{{cluster-env/stack_root}}': '/usr/hdp'}) self.assertEqual(res, ('OK', ['Capacity Used: [26.28%, 5.7 GB], Capacity Total: [21.7 GB], path=/'])) @@ -50,7 +50,7 @@ class TestAlertDiskSpace(RMFTestCase): total = 21673930752L, used = 14521533603L, free = 7152397149L, path="/") - res = alert_disk_space.execute() + res = alert_disk_space.execute(configurations={'{{cluster-env/stack_root}}': '/usr/hdp'}) self.assertEqual(res, ( 'WARNING', ['Capacity Used: [67.00%, 14.5 GB], Capacity Total: [21.7 GB], path=/'])) @@ -60,7 +60,7 @@ class TestAlertDiskSpace(RMFTestCase): total = 21673930752L, used = 20590234214L, free = 1083696538, path="/") - res = alert_disk_space.execute() + res = alert_disk_space.execute(configurations={'{{cluster-env/stack_root}}': '/usr/hdp'}) self.assertEqual(res, ('CRITICAL', ['Capacity Used: [95.00%, 20.6 GB], Capacity Total: [21.7 GB], path=/'])) @@ -69,7 +69,7 @@ class TestAlertDiskSpace(RMFTestCase): total = 5418482688L, used = 1625544806L, free = 3792937882L, path="/") - res = alert_disk_space.execute() + res = alert_disk_space.execute(configurations={'{{cluster-env/stack_root}}': '/usr/hdp'}) self.assertEqual(res, ('WARNING', [ 'Capacity Used: [30.00%, 1.6 GB], Capacity Total: [5.4 GB], path=/. Total free space is less than 5.0 GB'])) @@ -81,7 +81,7 @@ class TestAlertDiskSpace(RMFTestCase): total = 21673930752L, used = 5695861760L, free = 15978068992L, path="/usr/hdp") - res = alert_disk_space.execute() + res = alert_disk_space.execute(configurations={'{{cluster-env/stack_root}}': '/usr/hdp'}) self.assertEqual(res, ('OK', ['Capacity Used: [26.28%, 5.7 GB], Capacity Total: [21.7 GB], path=/usr/hdp'])) @@ -90,6 +90,6 @@ class TestAlertDiskSpace(RMFTestCase): total = 5418482688L, used = 1625544806L, free = 3792937882L, path="/usr/hdp") - res = alert_disk_space.execute() + res = alert_disk_space.execute(configurations={'{{cluster-env/stack_root}}': '/usr/hdp'}) self.assertEqual(res, ( 'WARNING', ["Capacity Used: [30.00%, 1.6 GB], Capacity Total: [5.4 GB], path=/usr/hdp. Total free space is less than 5.0 GB"]))