

def test_connector_add_by_name(self):
    host.setup_cluster(NoHadoopBareImageProvider(), self.STANDALONE_PRESTO_CLUSTER)
    self.run_prestoadmin('connector remove tpch')
    self.cluster.write_content_to_host('connector.name=tpch', os.path.join(constants.CONNECTORS_DIR, 'tpch.properties'), self.cluster.master)
    self.run_prestoadmin('connector add tpch')
    self.run_prestoadmin('server start')
    for host in self.cluster.all_hosts():
        self.assert_has_default_connector(host)
    self._assert_connectors_loaded([['system'], ['tpch']])

dataset/ETHPy150Open prestodb/presto-admin/tests/product/test_connectors.py TestConnectors.test_connector_add_by_name/VarMisuse@10/16 `self`->`host`