Changeset 2866
- Timestamp:
- 31/08/07 17:02:05 (14 years ago)
- Location:
- TI12-security/trunk/python
- Files:
-
- 3 added
- 3 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.server/ndg/security/server/SessionMgr/__init__.py
r2827 r2866 915 915 else: 916 916 raise SessionMgrError,\ 917 '"sessID" or " proxyCert" keywords must be set'917 '"sessID" or "userCert" keywords must be set' 918 918 919 919 try: -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/AttAuthority/siteAServer.sh
r2058 r2866 16 16 export NDGSEC_AA_UNITTEST_DIR=${PWD} 17 17 18 if [ -d ../../server/AttAuthority ]; then 19 SRV_DIR=../../server/AttAuthority 18 EXEC=twistd 19 OPTIONS="--pidfile=twistd-$$.pid -noy" 20 TACFILE=attAuthority.tac 20 21 21 elif [ -d ../../../../../ndg.security.server/ndg/security/server/AttAuthority ]; then 22 SRV_DIR=../../../../../ndg.security.server/ndg/security/server/AttAuthority 23 fi 22 CONFIG=${NDGSEC_DIR}/conf/${TACFILE} 24 23 25 cd $SRV_DIR 26 exec ./start-container.sh"$@"24 set - ${EXEC} ${OPTIONS} ${CONFIG} "$@" 25 exec "$@" 27 26 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/AttAuthority/siteBServer.sh
r2058 r2866 16 16 export NDGSEC_AA_UNITTEST_DIR=${PWD} 17 17 18 if [ -d ../../server/AttAuthority ]; then 19 SRV_DIR=../../server/AttAuthority 18 EXEC=twistd 19 OPTIONS="--pidfile=twistd-$$.pid -noy" 20 TACFILE=attAuthority.tac 20 21 21 elif [ -d ../../../../../ndg.security.server/ndg/security/server/AttAuthority ]; then 22 SRV_DIR=../../../../../ndg.security.server/ndg/security/server/AttAuthority 23 fi 22 CONFIG=${NDGSEC_DIR}/conf/${TACFILE} 24 23 25 cd $SRV_DIR 26 exec ./start-container.sh"$@"24 set - ${EXEC} ${OPTIONS} ${CONFIG} "$@" 25 exec "$@" 27 26 27 28 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgr/SessionMgrClientTest.py
r2746 r2866 224 224 attAuthorityURI=self.cfg['test6GetAttCertUsingSessID']['aauri']) 225 225 226 print "Attribute Certificate:\n%s" % attCert 226 print "Attribute Certificate:\n%s" % attCert 227 attCert.filePath = \ 228 self.cfg['test6GetAttCertUsingSessID']['acoutfilepath'] 229 attCert.write() 227 230 228 231 … … 263 266 264 267 def test6cGetAttCertWithExtAttCertListUsingSessID(self): 265 """test6 GetAttCertUsingSessID: make an attribute request using268 """test6cGetAttCertUsingSessID: make an attribute request using 266 269 a session ID as authentication credential""" 267 270 … … 272 275 aaURI = \ 273 276 self.cfg['test6cGetAttCertWithExtAttCertListUsingSessID']['aauri'] 274 277 278 # Use output from test6GetAttCertUsingSessID! 279 extACFilePath = \ 280 self.cfg['test6cGetAttCertWithExtAttCertListUsingSessID']['extacfilepath'] 281 extAttCert = open(extACFilePath).read() 282 275 283 attCert = self.clnt.getAttCert(sessID=self.sessID, 276 284 attAuthorityURI=aaURI, 277 extAttCertList=[ 'AC1', 'AC2', 'AC3'])285 extAttCertList=[extAttCert]) 278 286 279 287 print "Attribute Certificate:\n%s" % attCert -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgr/server.sh
r2063 r2866 3 3 # NERC Data Grid Project 4 4 # 5 # Session Managerclient unit test - start server5 # Attribute Authority client unit test - start server 6 6 # 7 #@author P J Kershaw 2 5/01/077 #@author P J Kershaw 24/01/07 8 8 # 9 9 #@copyright (C) 2007 CCLRC & NERC … … 11 11 #@licence: This software may be distributed under the terms of the Q Public 12 12 # License, version 1.0 or later. 13 # 14 # $Id:$ 13 15 export NDGSEC_SM_PROPFILEPATH=${PWD}/sessionMgrProperties.xml 14 16 export NDGSEC_SM_UNITTEST_DIR=${PWD} 15 17 16 srvDir1=../../server/SessionMgr 17 srvDir2=../../../../../ndg.security.server/ndg/security/server/SessionMgr 18 EXEC=twistd 19 OPTIONS="--pidfile=twistd-$$.pid -noy" 20 TACFILE=sessionMgr.tac 18 21 19 if [ -d $srvDir1 ]; then 20 SRV_DIR=$srvDir1 22 CONFIG=${NDGSEC_DIR}/conf/${TACFILE} 21 23 22 elif [ -d $srvDir2 ]; then 23 SRV_DIR=$srvDir2 24 fi 24 set - ${EXEC} ${OPTIONS} ${CONFIG} "$@" 25 exec "$@" 25 26 26 cd $SRV_DIR27 exec ./start-container.sh "$@"28 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrClientTest.cfg
r2827 r2866 56 56 username = raphaelTest 57 57 #username = gabriel 58 #passphrase =58 passphrase = 59 59 60 60 [test3ConnectNoCreateServerSess] 61 61 username = raphaelTest 62 62 #username = gabriel 63 #passphrase =63 passphrase = 64 64 65 65 [test6GetAttCertUsingSessID] 66 66 aaURI = http://localhost:5000/AttributeAuthority 67 acOutFilePath = ac-out.xml 67 68 68 69 [test6aGetAttCertRefusedUsingSessID] … … 74 75 [test6cGetAttCertWithExtAttCertListUsingSessID] 75 76 aaURI = http://localhost:5100/AttributeAuthority 77 # Use output from test6GetAttCertUsingSessID! 78 extACFilePath = ac-out.xml 76 79 77 80 [test7GetAttCertUsingProxyCert] 78 #aaURI = https://localhost:5000/AttributeAuthority79 aaURI = http://glue.badc.rl.ac.uk/services/ndg/security/AttributeAuthority81 aaURI = http://localhost:5000/AttributeAuthority 82 #aaURI = http://glue.badc.rl.ac.uk/services/ndg/security/AttributeAuthority
Note: See TracChangeset
for help on using the changeset viewer.