Exemple #1
0
 def test_scale_cluster(self, configure_instances, configure_topology_data,
                        _update_include_files, refresh_hadoop_nodes,
                        refresh_yarn_nodes, start_dn_nm_processes,
                        configure_zk, refresh_zk, get_resourcemanager,
                        install_ssl_certs):
     get_resourcemanager.return_value = 'node1'
     pctx = mock.Mock()
     scaling.scale_cluster(pctx, self.cluster, self.instances)
     configure_instances.assert_called_once_with(pctx, self.instances)
     _update_include_files.assert_called_once_with(self.cluster)
     refresh_hadoop_nodes.assert_called_once_with(self.cluster)
     get_resourcemanager.assert_called_once_with(self.cluster)
     refresh_yarn_nodes.assert_called_once_with(self.cluster)
     configure_topology_data.assert_called_once_with(pctx, self.cluster)
     start_dn_nm_processes.assert_called_once_with(self.instances)
     install_ssl_certs.assert_called_once_with(self.instances)
     configure_topology_data.assert_called_once_with(pctx, self.cluster)
     configure_zk.assert_called_once_with(self.cluster)
     refresh_zk.assert_called_once_with(self.cluster)
 def scale_cluster(self, cluster, instances):
     sc.scale_cluster(self.pctx, cluster, instances)
Exemple #3
0
 def scale_cluster(self, cluster, instances):
     sc.scale_cluster(self.pctx, cluster, instances)
Exemple #4
0
 def scale_cluster(self, cluster, instances):
     keypairs.provision_keypairs(cluster, instances)
     sc.scale_cluster(self.pctx, cluster, instances)
Exemple #5
0
 def scale_cluster(self, cluster, instances):
     keypairs.provision_keypairs(cluster, instances)
     sc.scale_cluster(self.pctx, cluster, instances)