forked from apache/cassandra-dtest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
internode_ssl_test.py
37 lines (29 loc) · 1.23 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
from dtest import Tester, debug, create_ks, create_cf
from tools.data import putget
from tools.misc import generate_ssl_stores
class TestInternodeSSL(Tester):
def putget_with_internode_ssl_test(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 putget_with_internode_ssl_without_compression_test(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
debug("***using internode ssl***")
generate_ssl_stores(self.test_path)
cluster.set_configuration_options({'internode_compression': internode_compression})
cluster.enable_internode_ssl(self.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)