usr/src/test/python/client/test_connect.py
changeset 862 f20f2afa6263
parent 849 e46ba1c7ace1
equal deleted inserted replaced
861:98a84e2ccca6 862:f20f2afa6263
    55 # default implementation of RADCommon.get_modules() for all classes using the
    55 # default implementation of RADCommon.get_modules() for all classes using the
    56 # TCP transport.
    56 # TCP transport.
    57 #
    57 #
    58 class TCP(object):
    58 class TCP(object):
    59     def get_modules(self):
    59     def get_modules(self):
    60 	return	["/usr/lib/rad/transport/mod_xport_tcp.so"]
    60 	return	["/usr/lib/rad/transport/mod_tcp.so"]
    61 
    61 
    62 #
    62 #
    63 # default implementation of RADCommon.get_modules() for all classes using the
    63 # default implementation of RADCommon.get_modules() for all classes using the
    64 # TLS transport.
    64 # TLS transport.
    65 #
    65 #
    66 class TLS(object):
    66 class TLS(object):
    67     def get_modules(self):
    67     def get_modules(self):
    68 	return	["/usr/lib/rad/transport/mod_xport_tls.so"]
    68 	return	["/usr/lib/rad/transport/mod_tls.so"]
    69 
    69 
    70 #
    70 #
    71 # Base class for all connection tests.
    71 # Base class for all connection tests.
    72 #
    72 #
    73 class ConnectTest(tests.RADTestObject):
    73 class ConnectTest(tests.RADTestObject):
   171 #
   171 #
   172 # Base class for all local AF_UNIX connection tests.
   172 # Base class for all local AF_UNIX connection tests.
   173 #
   173 #
   174 class ConnectTestLocalAFUNIX(ConnectTestLocal):
   174 class ConnectTestLocalAFUNIX(ConnectTestLocal):
   175     def get_modules(self):
   175     def get_modules(self):
   176 	return ["/usr/lib/rad/transport/mod_xport_unix.so"]
   176 	return ["/usr/lib/rad/transport/mod_unix.so"]
   177 
   177 
   178     def get_unix_path(self):
   178     def get_unix_path(self):
   179 	return os.path.join(TEST_DIRNAME, AFUNIX_FILENAME)
   179 	return os.path.join(TEST_DIRNAME, AFUNIX_FILENAME)
   180 
   180 
   181     # This function verifies the connection and retrieves the logged used
   181     # This function verifies the connection and retrieves the logged used