Package myproxy :: Package ws :: Package test :: Module test_myproxywsgi_with_paster :: Class MyProxyLogonAppWithPasterTestCase
[hide private]

Class MyProxyLogonAppWithPasterTestCase

source code


Test MyProxy Logon App WSGI in Paster web application server container with bash shell script clients. For POSIX-like systems ONLY

Instance Methods [hide private]
 
__init__(self, *arg, **kw)
Read settings from a config file and create thread for paster based MyProxy Web Service app running over HTTPS
source code
 
test01GetTrustRootsScriptWithBootstrap(self) source code
 
test02LogonScript(self) source code
 
addService(self, *arg, **kw)
Utility for setting up threads to run Paste HTTP based services with unit tests
source code
 
__del__(self)
Stop any services started with the addService method and clean up the CA directory following the trust roots call
source code
Class Variables [hide private]
  THIS_DIR = path.abspath(path.dirname(__file__))
  CA_DIRNAME = 'ca'
  CA_DIR = test_ca_dir
  CA_ENV_VARNAME = 'X509_CERT_DIR'
  tmp_ca_dir = path.join(THIS_DIR, 'tmp_ca')
  RESERVED_CA_DIR_FILENAMES = '3d41aba9.0',
  INI_FILENAME = 'myproxywsgi.ini'
  INI_FILEPATH = path.join(THIS_DIR, INI_FILENAME)
  CONFIG_FILENAME = 'test_myproxywsgi.cfg'
  CONFIG_FILEPATH = path.join(THIS_DIR, CONFIG_FILENAME)
  SSLCERT_FILEPATH = 'localhost.crt'
  SSLKEY_FILEPATH = 'localhost.key'
  SERVICE_PORTNUM = 10443
  LOGON_SCRIPT_CMD = logon_shell_script_path
  LOGON_SCRIPT_USER_OPTNAME = '-l'
  LOGON_SCRIPT_STDIN_PASS_OPTNAME = '-S'
  SCRIPT_URI_OPTNAME = '-U'
  GET_TRUSTROOTS_SCRIPT_CMD = get_trustroots_shell_script_path
  GET_TRUSTROOTS_SCRIPT_BOOTSTRAP_OPTNAME = '-b'
Method Details [hide private]

addService(self, *arg, **kw)

source code 

Utility for setting up threads to run Paste HTTP based services with unit tests

Parameters:
  • arg (tuple) - tuple contains ini file path setting for the service
  • kw (dict) - keywords including "port" - port number to run the service from