Back to index

rabbitmq-server  2.8.4
Public Member Functions | Private Member Functions
ssl_lifecycle.TestSslClient Class Reference

List of all members.

Public Member Functions

def test_ssl_connect
def test_ssl_auth_connect
def test_ssl_send_receive
def test_ssl_auth_send_receive

Private Member Functions

def __ssl_connect
def __ssl_auth_connect
def __test_conn

Detailed Description

Definition at line 11 of file ssl_lifecycle.py.


Member Function Documentation

Definition at line 24 of file ssl_lifecycle.py.

00024 
00025     def __ssl_auth_connect(self):
00026         conn = stomp.Connection(host_and_ports = [ ('localhost', 61614) ],
00027                                 use_ssl = True, ssl_key_file = ssl_key_file,
00028                                 ssl_cert_file = ssl_cert_file,
00029                                 ssl_ca_certs = ssl_ca_certs)
00030         conn.start()
00031         conn.connect()
00032         return conn

Here is the caller graph for this function:

Definition at line 13 of file ssl_lifecycle.py.

00013 
00014     def __ssl_connect(self):
00015         conn = stomp.Connection(user="guest", passcode="guest",
00016                                 host_and_ports = [ ('localhost', 61614) ],
00017                                 use_ssl = True, ssl_key_file = ssl_key_file,
00018                                 ssl_cert_file = ssl_cert_file,
00019                                 ssl_ca_certs = ssl_ca_certs)
00020 
00021         conn.start()
00022         conn.connect()
00023         return conn

Here is the caller graph for this function:

def ssl_lifecycle.TestSslClient.__test_conn (   self,
  conn 
) [private]

Definition at line 49 of file ssl_lifecycle.py.

00049 
00050     def __test_conn(self, conn):
00051         try:
00052             listener = base.WaitableListener()
00053 
00054             conn.set_listener('', listener)
00055 
00056             d = "/topic/ssl.test"
00057             conn.subscribe(destination=d, receipt="sub")
00058 
00059             self.assertTrue(listener.await(1))
00060 
00061             self.assertEquals("sub",
00062                               listener.receipts[0]['headers']['receipt-id'])
00063 
00064             listener.reset(1)
00065             conn.send("Hello SSL!", destination=d)
00066 
00067             self.assertTrue(listener.await())
00068 
00069             self.assertEquals("Hello SSL!", listener.messages[0]['message'])
00070         finally:
00071             conn.disconnect()

Here is the caller graph for this function:

Definition at line 37 of file ssl_lifecycle.py.

00037 
00038     def test_ssl_auth_connect(self):
00039         conn = self.__ssl_auth_connect()
00040         conn.stop()

Here is the call graph for this function:

Definition at line 45 of file ssl_lifecycle.py.

00045 
00046     def test_ssl_auth_send_receive(self):
00047         conn = self.__ssl_auth_connect()
00048         self.__test_conn(conn)

Here is the call graph for this function:

Definition at line 33 of file ssl_lifecycle.py.

00033 
00034     def test_ssl_connect(self):
00035         conn = self.__ssl_connect()
00036         conn.stop()

Here is the call graph for this function:

Definition at line 41 of file ssl_lifecycle.py.

00041 
00042     def test_ssl_send_receive(self):
00043         conn = self.__ssl_connect()
00044         self.__test_conn(conn)

Here is the call graph for this function:


The documentation for this class was generated from the following file: