add test to confirm that hostname validation is working
Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/bea71d8f Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/bea71d8f Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/bea71d8f Branch: refs/heads/master Commit: bea71d8fd2e02777bd5c03234489ae9e0efe177e Parents: 538d658 Author: Jason Brown <[email protected]> Authored: Thu May 25 14:59:37 2017 -0700 Committer: Philip Thompson <[email protected]> Committed: Tue May 30 14:18:13 2017 +0200 ---------------------------------------------------------------------- sslnodetonode_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra-dtest/blob/bea71d8f/sslnodetonode_test.py ---------------------------------------------------------------------- diff --git a/sslnodetonode_test.py b/sslnodetonode_test.py index c4a9184..a11a3f4 100644 --- a/sslnodetonode_test.py +++ b/sslnodetonode_test.py @@ -26,6 +26,18 @@ class TestNodeToNodeSSLEncryption(Tester): self.cluster.start() self.cql_connection(self.node1) + def ssl_correct_hostname_with_validation_test(self): + """Should be able to start with valid ssl options""" + + credNode1 = sslkeygen.generate_credentials("127.0.0.1") + credNode2 = sslkeygen.generate_credentials("127.0.0.2", credNode1.cakeystore, credNode1.cacert) + + self.setup_nodes(credNode1, credNode2, endpointVerification=True) + self.allow_log_errors = False + self.cluster.start() + time.sleep(2) + self.cql_connection(self.node1) + def ssl_wrong_hostname_no_validation_test(self): """Should be able to start with valid ssl options""" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
