def prepare(self, ks_name, table_name=None, cdc_enabled_table=None, gc_grace_seconds=None, column_spec=None, configuration_overrides=None, table_id=None):
    "\n        Create a 1-node cluster, start it, create a keyspace, and if\n        <table_name>, create a table in that keyspace. If <cdc_enabled_table>,\n        that table is created with CDC enabled. If <column_spec>, use that\n        string to specify the schema of the table -- for example, a valid value\n        is 'a int PRIMARY KEY, b int'. The <configuration_overrides> is\n        treated as a dict-like object and passed to\n        self.cluster.set_configuration_options.\n        "
    config_defaults = {'cdc_enabled': True, 'commitlog_segment_size_in_mb': 2}
    if (configuration_overrides is None):
        configuration_overrides = {}
    self.cluster.populate(1)
    self.cluster.set_configuration_options(dict(config_defaults, **configuration_overrides))
    self.cluster.start()
    node = self.cluster.nodelist()[0]
    session = self.patient_cql_connection(node)
    create_ks(session, ks_name, rf=1)
    if (table_name is not None):
        assert (cdc_enabled_table is not None), 'if creating a table in prepare, must specify whether or not CDC is enabled on it'
        assert (column_spec is not None), 'if creating a table in prepare, must specify its schema'
        options = {}
        if (gc_grace_seconds is not None):
            options['gc_grace_seconds'] = gc_grace_seconds
        if (table_id is not None):
            options['id'] = table_id
        if cdc_enabled_table:
            options['cdc'] = 'true'
        stmt = _get_create_table_statement(ks_name, table_name, column_spec, options=options)
        logger.debug(stmt)
        session.execute(stmt)
    return (node, session)
Create a 1-node cluster, start it, create a keyspace, and if
<table_name>, create a table in that keyspace. If <cdc_enabled_table>,
that table is created with CDC enabled. If <column_spec>, use that
string to specify the schema of the table -- for example, a valid value
is 'a int PRIMARY KEY, b int'. The <configuration_overrides> is
treated as a dict-like object and passed to
self.cluster.set_configuration_options.
def prepare(self, ks_name, table_name=None, cdc_enabled_table=None, gc_grace_seconds=None, column_spec=None, configuration_overrides=None, table_id=None):
    "\n        Create a 1-node cluster, start it, create a keyspace, and if\n        <table_name>, create a table in that keyspace. If <cdc_enabled_table>,\n        that table is created with CDC enabled. If <column_spec>, use that\n        string to specify the schema of the table -- for example, a valid value\n        is 'a int PRIMARY KEY, b int'. The <configuration_overrides> is\n        treated as a dict-like object and passed to\n        self.cluster.set_configuration_options.\n        "
    config_defaults = {'cdc_enabled': True, 'commitlog_segment_size_in_mb': 2}
    if (configuration_overrides is None):
        configuration_overrides = {}
    self.cluster.populate(1)
    self.cluster.set_configuration_options(dict(config_defaults, **configuration_overrides))
    self.cluster.start()
    node = self.cluster.nodelist()[0]
    session = self.patient_cql_connection(node)
    create_ks(session, ks_name, rf=1)
    if (table_name is not None):
        assert (cdc_enabled_table is not None), 'if creating a table in prepare, must specify whether or not CDC is enabled on it'
        assert (column_spec is not None), 'if creating a table in prepare, must specify its schema'
        options = {}
        if (gc_grace_seconds is not None):
            options['gc_grace_seconds'] = gc_grace_seconds
        if (table_id is not None):
            options['id'] = table_id
        if cdc_enabled_table:
            options['cdc'] = 'true'
        stmt = _get_create_table_statement(ks_name, table_name, column_spec, options=options)
        logger.debug(stmt)
        session.execute(stmt)
    return (node, session)