Show Children Hide Children

Main FTS Pages
FtsRelease22
Install
Configuration
Administration
Procedures
Operations
Development
Previous FTSes
FtsRelease21
FtsRelease21
All FTS Pages
FtsWikiPages
Last Page Update
PaoloTedesco
2009-01-22

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

agents-common-exceptions.jpg

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


Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg agents-common-exceptions.jpg r1 manage 251.0 K 2007-11-20 - 15:50 PaoloTedesco Exceptions class diagram
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2009-01-22 - PaoloTedesco
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EGEE All webs login

This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Ask a support question or Send feedback