

def test_connector_add_no_dir(self):
    self.setup_cluster(NoHadoopBareImageProvider(), self.STANDALONE_PRESTO_CLUSTER)
    self.cluster.exec_cmd_on_host(self.cluster.master, 'rm -r /etc/opt/prestoadmin/connectors')
    missing_dir_error = self.fatal_error('Cannot add connectors because directory /etc/opt/prestoadmin/connectors does not exist')
    self.assertRaisesRegexp(OSError, missing_dir_error, self.run_prestoadmin, 'connector add')

dataset/ETHPy150Open prestodb/presto-admin/tests/product/test_connectors.py TestConnectors.test_connector_add_no_dir/original