MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_defaults_messenger_app

Method test_defaults_messenger_app

python/tests/proton_tests/ssl.py:899–921  ·  view source on GitHub ↗

Test an SSL connection using the Messenger apps (no certificates)

(self)

Source from the content-addressed store, hash-verified

897 self.tearDown()
898
899 def test_defaults_messenger_app(self):
900 """ Test an SSL connection using the Messenger apps (no certificates)
901 """
902 if os.name == "nt":
903 raise Skipped("Windows SChannel lacks anonymous cipher support.")
904 port = common.free_tcp_ports()[0]
905
906 receiver = common.MessengerReceiverC()
907 receiver.subscriptions = ["amqps://~0.0.0.0:%s" % port]
908 receiver.receive_count = 1
909 receiver.timeout = self.timeout
910 receiver.start()
911
912 sender = common.MessengerSenderC()
913 sender.targets = ["amqps://0.0.0.0:%s/X" % port]
914 sender.send_count = 1
915 sender.timeout = self.timeout
916 sender.start()
917 sender.wait()
918 assert sender.status() == 0, "Command '%s' failed" % str(sender.cmdline())
919
920 receiver.wait()
921 assert receiver.status() == 0, "Command '%s' failed" % str(receiver.cmdline())
922
923 def test_server_authentication_messenger_app(self):
924 """ Test an SSL authentication using the Messenger apps.

Callers

nothing calls this directly

Calls 6

SkippedClass · 0.85
cmdlineMethod · 0.80
waitMethod · 0.65
strFunction · 0.50
startMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected