forked from apache/cassandra-dtest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
internode_ssl_test.py
41 lines (31 loc) · 1.32 KB
/
internode_ssl_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import logging
from dtest import Tester, create_ks, create_cf
from tools.data import putget
from tools.misc import generate_ssl_stores
logger = logging.getLogger(__name__)
class TestInternodeSSL(Tester):
def test_putget_with_internode_ssl(self):
"""
Simple putget test with internode ssl enabled
with default 'all' internode compression
@jira_ticket CASSANDRA-9884
"""
self.__putget_with_internode_ssl_test('all')
def test_putget_with_internode_ssl_without_compression(self):
"""
Simple putget test with internode ssl enabled
without internode compression
@jira_ticket CASSANDRA-9884
"""
self.__putget_with_internode_ssl_test('none')
def __putget_with_internode_ssl_test(self, internode_compression):
cluster = self.cluster
logger.debug("***using internode ssl***")
generate_ssl_stores(self.fixture_dtest_setup.test_path)
cluster.set_configuration_options({'internode_compression': internode_compression})
cluster.enable_internode_ssl(self.fixture_dtest_setup.test_path)
cluster.populate(3).start()
session = self.patient_cql_connection(cluster.nodelist()[0])
create_ks(session, 'ks', 3)
create_cf(session, 'cf', compression=None)
putget(cluster, session)