You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by zz...@apache.org on 2017/07/13 00:15:42 UTC

[31/50] cassandra-dtest git commit: add test to confirm that hostname validation is working

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 <ja...@gmail.com>
Authored: Thu May 25 14:59:37 2017 -0700
Committer: Philip Thompson <pt...@gmail.com>
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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org