source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/myProxy/README @ 3192

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/myProxy/README@3192
Revision 3192, 1.5 KB checked in by pjkersha, 13 years ago (diff)

Working version of Session Manager unit tests with certs included in SVN issued from test CA.

security/python/ndg.security.test/ndg/security/test/attAuthority/README: added note about test config file.

security/python/ndg.security.test/ndg/security/test/attAuthority/siteAAttAuthorityProperties.xml,
security/python/ndg.security.test/ndg/security/test/attAuthority/siteBAttAuthorityProperties.xml:
added note about MyProxy? CA certificate inclusion for WSSE signature handler to trust requests authenticated by certs from MyProxy? CA. This is needed for running these services with Session Manager and Session Manager Cleint unit tests

security/python/ndg.security.test/ndg/security/test/ca/README: added note that this unit test is currently defunct.

security/python/ndg.security.test/ndg/security/test/gatekeeper/README,
security/python/ndg.security.test/ndg/security/test/Log: added

security/python/ndg.security.test/ndg/security/test/myProxy/README: added note about ensuring test creds are removed from the repository.

security/python/ndg.security.test/ndg/security/test/sessionCookie/README: note that this test is defunct. Pylons code can perform the same function

security/python/ndg.security.test/ndg/security/test/sessionCookie/SessionCookieTest.py,
security/python/ndg.security.test/ndg/security/test/sessionCookie/sessionCookieTest.cfg:
altered so that files are ref'd by env vars so that tests can be run from any dir

security/python/ndg.security.test/ndg/security/test/README: added

security/python/ndg.security.test/ndg/security/test/sessionMgr/sessionMgrProperties.xml,
security/python/ndg.security.test/ndg/security/test/sessionMgr/sessionMgrTest.cfg,
security/python/ndg.security.test/ndg/security/test/sessionMgr/test.py:

  • altered so that files are ref'd by env vars so that tests can be run from any dir
  • test1Connect PKI output is dumped to user.creds file.
Line 
1MyProxyClient Unit Tests
2========================
3To set-up this test, A MyProxy server process must be running to test against.
4MyProxy is installed as part of the NDG Security installation.  See the
5installation guide for details:
6
7http://proj.badc.rl.ac.uk/ndg/browser/TI12-security/trunk/documentation/InstallationGuide/pdf/NDGSecurityInstallationGuide.pdf?format=raw
8
91) Start myproxy-server on it's host machine e.g. as root run,
10
11$ myproxy-server
12
132) Edit myProxyProperties.xml and set the hostname element to the fully
14qualified domain name of the MyProxy host OR alternatively set the environment
15variable MYPROXY_SERVER to the host name.
16
173) Run the tests with the command:
18
19$ python ./MyProxyClientTest.py
20
214) To run individual tests give the test method name:
22
23$ python ./MyProxyClientTest.py MyProxyClientTestCase.test1Store
24
25 * Note that some tests are dependent on the output of previous tests. 
26 * test1Store adds a new credential to the repository.  Running all the tests
27   together as in 3) will ensure the credential is removed afterwards.  To
28   check the existence of the credential after the test run test3Info:
29   
30   $ python ./MyProxyClientTest.py MyProxyClientTestCase.test3Info
31   
32   or use MyProxy client commands on the MyProxy host: myproxy-info,
33   myproxy-destroy.  If these fail, the content of /var/myproxy on the
34   target host can be checked to see if testuser credentials still exist.
35 * See myProxyClientTest.cfg configuration file to change test parameters.
36 * See the installation guide for MyProxy trouble shooting information.
37
Note: See TracBrowser for help on using the repository browser.