

@attr('smoketest')
def test_basic_connector_add_remove(self):
    self.setup_cluster_assert_connectors()
    self.run_prestoadmin('connector remove tpch')
    self.run_prestoadmin('server restart')
    self.assert_path_removed(self.cluster.master, os.path.join(constants.CONNECTORS_DIR, 'tpch.properties'))
    self._assert_connectors_loaded([['system']])
    for host in self.cluster.all_hosts():
        self.assert_path_removed(host, os.path.join(constants.REMOTE_CATALOG_DIR, 'tcph.properties'))
    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')
    self.run_prestoadmin('server restart')
    for host in self.cluster.all_hosts():
        host.assert_has_default_connector(host)
    self._assert_connectors_loaded([['system'], ['tpch']])

dataset/ETHPy150Open prestodb/presto-admin/tests/product/test_connectors.py TestConnectors.test_basic_connector_add_remove/VarMisuse@160/252 `self`->`host`