Agents Common
Basic (utility) libraries.
Libraries
libglite_data_agents_common
- url/surl parsing utilities
- Guid
- agent exceptions base classes
- UserProxyEnv: wrapper class to set the environment variable with the proxy credentail and restore to the previous state when the object goes out of scope.
Diagrams
Exceptions
Testing
How to run the unit tests for the org.glite.data.agents-common module.
ant
Target
test-all depends on : test-common, test-sd, test-cred, test-dao, test-python, test-extra, test-regressions.
test-common
no configuration is necessary
test-sd
no configuration necessary
test-cred
Add the following to ~/glite.build.properties:
myproxy.user.dn="<your dn>"
myproxy.user.passphrase=<password>
myproxy.server=localhost
myproxy.server.retrieval=localhost
myproxy.server.renewal=localhost
Add the following to ${WORKSPACE}/myproxy-server.config:
accepted_credentials "*"
authorized_retrievers "*"
default_retrievers "*"
authorized_renewers "*"
default_renewers "none"
Create a proxy using grid-proxy-init.
Start myproxy-server with the script: {startmyproxyserver script under workspaces...}
#!/bin/bash
WORKSPACE=<workspace>
REPOSITORY=${WORKSPACE}/repository
MYPROXY_LOCATION=${REPOSITORY}/myproxy/0.6.1-VDT-1.2.2/rhel30_gcc32
STORAGE_DIR=${WORKSPACE}/myproxy
if [ ! -e ${STORAGE_DIR} ]; then
mkdir ${STORAGE_DIR}
chmod 700 ${STORAGE_DIR}
fi
${MYPROXY_LOCATION}/sbin/myproxy-server -c ${WORKSPACE}/myproxy-server.config -s ${WORKSPACE}/myproxy
Add myproxy credentials specifying the dn:
myproxy-init -d "
"
Also, these variables should be set:
export MYPROXY_SERVER="localhost"
export MYPROXY_SERVER_DN="<your dn>"
test-dao
contains the targets test-dao-schema-vers-oracle, test-dao-oracle, test-dao-schema-vers-mysql and test-dao- mysql.
test-oracle
set the oracle database 10g express edition environment variables with the script: {script set_dao_oracle_express under the workspace}
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
ORACLE_SID=XE
export ORACLE_SID
NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export NLS_LANG
PATH=$ORACLE_HOME/bin:$PATH
export PATH
In glite.build.properties:
oracle.tns_admin=/home/<login>/.tnsadmin/
oracle.url=jdbc:oracle:thin:@devdb
oracle.username=<username>
oracle.password=<password>
oracle.connectstring=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))
about oracle database 10g express edition:
/usr/bin/firefox/firefox http://127.0.0.1:8080/apex
test-python
no special configuration
test-extra
no special configuration
test-regression
uses mysql
Last edit: PaoloTedesco on 2009-01-22 - 13:32
Number of topics: 1
Maintainer: PaoloTedesco