[qpid-proton] branch main updated: PROTON-2397: test fixes and extra test

2021-06-23 Thread cliffjansen
This is an automated email from the ASF dual-hosted git repository.

cliffjansen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/main by this push:
 new 1151c36  PROTON-2397: test fixes and extra test
1151c36 is described below

commit 1151c36ee65a43d380f12eeebead2d2fe73b76d7
Author: Cliff Jansen 
AuthorDate: Wed Jun 23 08:55:03 2021 -0700

PROTON-2397: test fixes and extra test
---
 python/tests/proton_tests/ssl.py | 51 +---
 1 file changed, 48 insertions(+), 3 deletions(-)

diff --git a/python/tests/proton_tests/ssl.py b/python/tests/proton_tests/ssl.py
index a2efeb2..55facd0 100644
--- a/python/tests/proton_tests/ssl.py
+++ b/python/tests/proton_tests/ssl.py
@@ -100,8 +100,33 @@ class SslTest(common.Test):
 def test_anonymous_cipher(self):
 if os.name == "nt":
 raise Skipped("Windows SChannel lacks anonymous cipher support.")
-""" By default, both the server and the client support anonymous
-ciphers - they should connect without need for a certificate.
+""" With no configuration at all, the client default
+VERIFY_PEER_NAME should preclude anonymous cipher TLS negotiation.
+"""
+server = SslTest.SslTestConnection(self.server_domain, 
mode=Transport.SERVER)
+client = SslTest.SslTestConnection(self.client_domain)
+
+# check that no SSL connection exists
+assert not server.ssl.cipher_name()
+assert not client.ssl.protocol_name()
+
+# client.transport.trace(Transport.TRACE_DRV)
+# server.transport.trace(Transport.TRACE_DRV)
+
+client.connection.open()
+server.connection.open()
+self._pump(client, server)
+
+assert client.transport.closed
+assert server.transport.closed
+assert client.connection.state & Endpoint.REMOTE_UNINIT
+assert server.connection.state & Endpoint.REMOTE_UNINIT
+
+def test_simple_anonymous(self):
+if os.name == "nt":
+raise Skipped("Windows SChannel lacks anonymous cipher support.")
+""" The simplest SSL configuration using anonymous
+ciphers.
 """
 self.client_domain.set_peer_authentication(SSLDomain.ANONYMOUS_PEER)
 server = SslTest.SslTestConnection(self.server_domain, 
mode=Transport.SERVER)
@@ -147,13 +172,33 @@ class SslTest(common.Test):
 server.connection.close()
 self._pump(client, server)
 
-def test_server_certificate(self):
+def test_server_certificate_fail(self):
+""" Test that default configured clients cannot connect to a server 
that has
+a certificate configured.
+"""
+
self.server_domain.set_credentials(self._testpath("server-certificate.pem"),
+   
self._testpath("server-private-key.pem"),
+   "server-password")
+server = SslTest.SslTestConnection(self.server_domain, 
mode=Transport.SERVER)
+client = SslTest.SslTestConnection(self.client_domain)
+
+client.connection.open()
+server.connection.open()
+self._pump(client, server)
+
+assert client.transport.closed
+assert server.transport.closed
+assert client.connection.state & Endpoint.REMOTE_UNINIT
+assert server.connection.state & Endpoint.REMOTE_UNINIT
+
+def test_server_certificate_no_verify(self):
 """ Test that anonymous clients can still connect to a server that has
 a certificate configured.
 """
 
self.server_domain.set_credentials(self._testpath("server-certificate.pem"),

self._testpath("server-private-key.pem"),
"server-password")
+self.client_domain.set_peer_authentication(SSLDomain.ANONYMOUS_PEER)
 server = SslTest.SslTestConnection(self.server_domain, 
mode=Transport.SERVER)
 client = SslTest.SslTestConnection(self.client_domain)
 

-
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org



[qpid-dispatch] branch dependabot/npm_and_yarn/console/react/testing-library/react-12.0.0 created (now e0576e2)

2021-06-23 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/npm_and_yarn/console/react/testing-library/react-12.0.0
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git.


  at e0576e2  Bump @testing-library/react from 11.2.6 to 12.0.0 in 
/console/react

No new revisions were added by this update.

-
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org



[qpid-dispatch] branch dependabot/npm_and_yarn/console/react/patternfly/patternfly-4.115.2 created (now 7d85ee7)

2021-06-23 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/npm_and_yarn/console/react/patternfly/patternfly-4.115.2
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git.


  at 7d85ee7  Bump @patternfly/patternfly from 4.102.2 to 4.115.2 in 
/console/react

No new revisions were added by this update.

-
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org



[qpid-protonj2] branch main updated: PROTON-2398 Fix typo on internal variable naming

2021-06-23 Thread tabish
This is an automated email from the ASF dual-hosted git repository.

tabish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-protonj2.git


The following commit(s) were added to refs/heads/main by this push:
 new 8fce9db  PROTON-2398 Fix typo on internal variable naming
8fce9db is described below

commit 8fce9dbed10563759eecb53fc2c9c1ebde749aac
Author: Timothy Bish 
AuthorDate: Wed Jun 23 15:10:20 2021 -0400

PROTON-2398 Fix typo on internal variable naming
---
 .../org/apache/qpid/protonj2/client/ConnectionOptions.java   | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/ConnectionOptions.java
 
b/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/ConnectionOptions.java
index 1a550d2..d0170a6 100644
--- 
a/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/ConnectionOptions.java
+++ 
b/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/ConnectionOptions.java
@@ -68,7 +68,7 @@ public class ConnectionOptions {
 private String virtualHost;
 private boolean traceFrames;
 
-private BiConsumer connectedhedHandler;
+private BiConsumer connectedHandler;
 private BiConsumer disconnectedHandler;
 private BiConsumer interruptedHandler;
 private BiConsumer reconnectedHandler;
@@ -118,7 +118,7 @@ public class ConnectionOptions {
 other.user(user);
 other.password(password);
 other.traceFrames(traceFrames);
-other.connectedHandler(connectedhedHandler);
+other.connectedHandler(connectedHandler);
 other.interruptedHandler(interruptedHandler);
 other.reconnectedHandler(reconnectedHandler);
 other.disconnectedHandler(disconnectedHandler);
@@ -673,7 +673,7 @@ public class ConnectionOptions {
  * @return the connection established handler that is currently registered
  */
 public BiConsumer connectedHandler() {
-return connectedhedHandler;
+return connectedHandler;
 }
 
 /**
@@ -692,7 +692,7 @@ public class ConnectionOptions {
  * @see #reconnectedHandler
  */
 public ConnectionOptions connectedHandler(BiConsumer connectedHandler) {
-this.connectedhedHandler = connectedHandler;
+this.connectedHandler = connectedHandler;
 return this;
 }
 
@@ -715,7 +715,7 @@ public class ConnectionOptions {
  *
  * @return this {@link ReconnectOptions} instance.
  *
- * @see #connectedhedHandler
+ * @see #connectedHandler
  * @see #reconnectedHandler
  * @see #disconnectedHandler
  */
@@ -741,7 +741,7 @@ public class ConnectionOptions {
  *
  * @return this {@link ReconnectOptions} instance.
  *
- * @see #connectedhedHandler
+ * @see #connectedHandler
  * @see #interruptedHandler
  * @see #disconnectedHandler
  */

-
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org