http://git-wip-us.apache.org/repos/asf/ambari/blob/c96a9e41/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 67ac25f..aa7688b 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 @@ -152,6 +152,19 @@ class TestHDP23StackAdvisor(TestCase): self.assertFalse('HAWQSEGMENT' in recommendedComponents) + def test_createComponentLayoutRecommendations_pxf_co_locate_with_namenode_or_datanode(self): + """ Test that PXF gets recommended on same host group which has NAMENODE or DATANODE""" + + services = self.load_json("services-pxf-hdfs.json") + hosts = self.load_json("hosts-3-hosts.json") + recommendations = self.stackAdvisor.createComponentLayoutRecommendations(services, hosts) + + for hostgroup in recommendations["blueprint"]["host_groups"]: + component_names = [component["name"] for component in hostgroup["components"]] + if "NAMENODE" in component_names or "DATANODE" in component_names: + self.assertTrue("PXF" in component_names) + + def fqdn_mock_result(value=None): return 'c6401.ambari.apache.org' if value is None else value
- [24/50] [abbrv] ambari git commit: AMBARI-14517 Database version che... ncole
- [25/50] [abbrv] ambari git commit: AMBARI-14518 hadoop.proxyuser.yar... ncole
- [32/50] [abbrv] ambari git commit: AMBARI-14521. Ambari Admin: exter... ncole
- [50/50] [abbrv] ambari git commit: Merge branch 'trunk' into branch-... ncole
- [46/50] [abbrv] ambari git commit: AMBARI-14539 Disable Kerberos lin... ncole
- [04/50] [abbrv] ambari git commit: AMBARI-14492 Copy Ranger config f... ncole
- [23/50] [abbrv] ambari git commit: AMBARI-14515. Improve Ambari UI U... ncole
- [27/50] [abbrv] ambari git commit: AMBARI-14522. Unable to install R... ncole
- [44/50] [abbrv] ambari git commit: AMBARI-14498. Create RU/EU upgrad... ncole
- [36/50] [abbrv] ambari git commit: AMBARI-14412. Recommend PXF compo... ncole
- [35/50] [abbrv] ambari git commit: AMBARI-14412. Recommend PXF compo... ncole
- [14/50] [abbrv] ambari git commit: AMBARI-14509. Handle the case whe... ncole
- [28/50] [abbrv] ambari git commit: AMBARI-14523. RU: Mahout client r... ncole
- [21/50] [abbrv] ambari git commit: AMBARI-14515. Improve Ambari UI U... ncole
- [10/50] [abbrv] ambari git commit: AMBARI-14489 EU/RU: failure not s... ncole
- [06/50] [abbrv] ambari git commit: AMBARI-14501 Improve config recom... ncole
- [11/50] [abbrv] ambari git commit: AMBARI-14443. In the Move Master ... ncole
- [08/50] [abbrv] ambari git commit: Revert "AMBARI-14504. Role c... ncole
- [47/50] [abbrv] ambari git commit: AMBARI-14408: common-services fol... ncole
- [38/50] [abbrv] ambari git commit: AMBARI-14477. Custom command labe... ncole
- [40/50] [abbrv] ambari git commit: AMBARI-14531. Improve Ambari UI U... ncole
