def setup_cluster_ssl(client_auth=False): """ We need some custom setup for this module. This will start the ccm cluster with basic ssl connectivity, and client authentication if needed. """ use_single_node(start=False) ccm_cluster = get_cluster() ccm_cluster.stop() # Configure ccm to use ssl. config_options = { 'client_encryption_options': { 'enabled': True, 'keystore': SERVER_KEYSTORE_PATH, 'keystore_password': DEFAULT_PASSWORD } } if (client_auth): client_encyrption_options = config_options['client_encryption_options'] client_encyrption_options['require_client_auth'] = True client_encyrption_options['truststore'] = SERVER_TRUSTSTORE_PATH client_encyrption_options['truststore_password'] = DEFAULT_PASSWORD ccm_cluster.set_configuration_options(config_options) start_cluster_wait_for_up(ccm_cluster)
def setup_cluster_ssl(client_auth=False): """ We need some custom setup for this module. This will start the ccm cluster with basic ssl connectivity, and client authenticiation if needed. """ use_single_node(start=False) ccm_cluster = get_cluster() ccm_cluster.stop() # Fetch the absolute path to the keystore for ccm. abs_path_server_keystore_path = os.path.abspath(SERVER_KEYSTORE_PATH) # Configure ccm to use ssl. config_options = { 'client_encryption_options': { 'enabled': True, 'keystore': abs_path_server_keystore_path, 'keystore_password': DEFAULT_PASSWORD } } if (client_auth): abs_path_server_truststore_path = os.path.abspath( SERVER_TRUSTSTORE_PATH) client_encyrption_options = config_options['client_encryption_options'] client_encyrption_options['require_client_auth'] = True client_encyrption_options[ 'truststore'] = abs_path_server_truststore_path client_encyrption_options['truststore_password'] = DEFAULT_PASSWORD ccm_cluster.set_configuration_options(config_options) ccm_cluster.start(wait_for_binary_proto=True, wait_other_notice=True)
def setup_cluster_ssl(client_auth=False): """ We need some custom setup for this module. This will start the ccm cluster with basic ssl connectivity, and client authenticiation if needed. """ use_single_node(start=False) ccm_cluster = get_cluster() ccm_cluster.stop() # Fetch the absolute path to the keystore for ccm. abs_path_server_keystore_path = os.path.abspath(SERVER_KEYSTORE_PATH) # Configure ccm to use ssl. config_options = {'client_encryption_options': {'enabled': True, 'keystore': abs_path_server_keystore_path, 'keystore_password': DEFAULT_PASSWORD}} if(client_auth): abs_path_server_truststore_path = os.path.abspath(SERVER_TRUSTSTORE_PATH) client_encyrption_options = config_options['client_encryption_options'] client_encyrption_options['require_client_auth'] = True client_encyrption_options['truststore'] = abs_path_server_truststore_path client_encyrption_options['truststore_password'] = DEFAULT_PASSWORD ccm_cluster.set_configuration_options(config_options) ccm_cluster.start(wait_for_binary_proto=True, wait_other_notice=True)
def setup_package(): warnings.simplefilter('always') # for testing warnings, make sure all are let through os.environ[CQLENG_ALLOW_SCHEMA_MANAGEMENT] = '1' use_single_node() setup_connection(DEFAULT_KEYSPACE) create_keyspace_simple(DEFAULT_KEYSPACE, 1)
def setup_package(): warnings.simplefilter('always') # for testing warnings, make sure all are let through os.environ[CQLENG_ALLOW_SCHEMA_MANAGEMENT] = '1' use_single_node() keyspace = 'cqlengine_test' connection.setup(['localhost'], protocol_version=PROTOCOL_VERSION, default_keyspace=keyspace) create_keyspace_simple(keyspace, 1)
def use_single_node_with_graph_and_solr(start=True): use_single_node(start=start, workloads=['graph', 'solr'])
def use_single_node_with_graph(start=True, options={}): use_single_node(start=start, workloads=['graph'], options=options)
def setup_module(): if DSE_VERSION: use_single_node()
def use_single_node_with_graph(start=True): use_single_node(start=start, workloads=['graph'])
def use_single_node_with_graph_and_solr(start=True, options={}): use_single_node(start=start, workloads=['graph', 'solr'], configuration_options=options)
def use_single_node_with_graph(start=True, options={}, dse_options={}): use_single_node(start=start, workloads=['graph'], configuration_options=options, dse_options=dse_options)
def setup_module(): use_single_node()