Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01414185B8 for ; Tue, 1 Mar 2016 19:33:19 +0000 (UTC) Received: (qmail 68478 invoked by uid 500); 1 Mar 2016 19:26:39 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 68412 invoked by uid 500); 1 Mar 2016 19:26:39 -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 68337 invoked by uid 99); 1 Mar 2016 19:26:39 -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; Tue, 01 Mar 2016 19:26:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BBFFADFCF2; Tue, 1 Mar 2016 19:26:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: odiachenko@apache.org To: commits@ambari.apache.org Message-Id: <81b0f187ceed40469914ce41473dc2d5@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-15252. Server python unit-test failing on branch-2.2(Lav Jain via odiachenko). Date: Tue, 1 Mar 2016 19:26:38 +0000 (UTC) Repository: ambari Updated Branches: refs/heads/branch-2.2 bc2004e50 -> beac3462d AMBARI-15252. Server python unit-test failing on branch-2.2(Lav Jain via odiachenko). Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/beac3462 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/beac3462 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/beac3462 Branch: refs/heads/branch-2.2 Commit: beac3462dba54000a4a93a7cc5d9aa78e5f9706a Parents: bc2004e Author: Oleksandr Diachenko Authored: Tue Mar 1 11:26:35 2016 -0800 Committer: Oleksandr Diachenko Committed: Tue Mar 1 11:26:35 2016 -0800 ---------------------------------------------------------------------- .../src/test/python/stacks/2.3/common/test_stack_advisor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/beac3462/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py index 316d172..9638054 100644 --- a/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py +++ b/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py @@ -584,23 +584,23 @@ class TestHDP23StackAdvisor(TestCase): self.assertEquals(configurations['hdfs-site']['properties']['dfs.namenode.inode.attributes.provider.class'], 'org.apache.ranger.authorization.hadoop.RangerHdfsAuthorizer', "Test with Ranger HDFS plugin is enabled") # Test 1 for dfs.allow.truncate with no HAWQ and dfs.allow.truncate not set - self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, hosts) + self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, None) self.assertTrue('dfs.allow.truncate' not in configurations['hdfs-site']['properties']) # Test 2 for dfs.allow.truncate with HAWQ and dfs.allow.truncate not set services["services"].append({"StackServices" : {"service_name" : "HAWQ"}, "components":[]}) - self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, hosts) + self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, None) self.assertEquals(configurations['hdfs-site']['properties']['dfs.allow.truncate'], 'true') # Test 3 for dfs.allow.truncate with no HAWQ and dfs.allow.truncate set to false services["services"].remove({"StackServices" : {"service_name" : "HAWQ"}, "components":[]}) configurations['hdfs-site']['properties']['dfs.allow.truncate'] = 'false' - self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, hosts) + self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, None) self.assertEquals(configurations['hdfs-site']['properties']['dfs.allow.truncate'], 'false') # Test 4 for dfs.allow.truncate with HAWQ and dfs.allow.truncate set to false services["services"].append({"StackServices" : {"service_name" : "HAWQ"}, "components":[]}) - self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, hosts) + self.stackAdvisor.recommendHDFSConfigurations(configurations, clusterData, services, None) self.assertEquals(configurations['hdfs-site']['properties']['dfs.allow.truncate'], 'true') def test_recommendYARNConfigurations(self):