source: TI12-security/trunk/python/Makefile @ 3044

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Makefile@3175
Revision 3044, 1.9 KB checked in by pjkersha, 13 years ago (diff)

SessionMgr? SessionMgrClient? unit tests complete with tests for getSessionStatus included

ndg.security.server/ndg/security/server/conf/sessionMgr.tac:

  • code for getSessionStatus incorporated

ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py,
ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py,
ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py,
www/html/sessionMgr.wsdl: fixed getSessionStatusResponse - isAlive element needs to be nested within a sequence elem.

ndg.security.test/ndg/security/test/sessionMgrClient/SessionMgrClientTest.py,

ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrProperties.xml: default to https for tests

ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrClientTest.cfg: get rid of test1AddUser and added test2GetSessionStatus

ndg.security.test/ndg/security/test/sessionMgr/test.py: SessionMgr? unit tests all working

ndg.security.common/ndg/security/common/SessionMgr/init.py: added getSessionStatus method

ndg.security.common/ndg/security/common/AttAuthority/init.py: fix to getHostInfo - return dict indexed by hostname

ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services.py: re-ran code generation from WSDL

Makefile: added targets for building ZSI code stubs from AA and SM WSDLs.

Line 
1#
2# NERC Data Grid Project
3#
4# @author P J Kershaw 15/03/07
5#
6# Make all eggs
7#
8# @copyright: (C) 2007 CCLRC & NERC
9#
10# @license: This software may be distributed under the terms of the Q Public
11# License, version 1.0 or later.
12#
13# $Id$
14EGG_DIRS=ndg.security.common ndg.security.client ndg.security.server \
15ndg.security.test .
16
17# Override on the command line for alternative path
18PYTHON=python
19
20eggs:
21        @-for dir in ${EGG_DIRS}; do \
22                cd $$dir; \
23                ${PYTHON} setup.py bdist_egg; \
24                cd ..; \
25        done;
26
27clean:
28        @-for dir in ${EGG_DIRS}; do \
29                cd $$dir; \
30                rm -f dist/*.egg; \
31                rm -rf *.egg-info; \
32                rm -rf build; \
33                cd ..; \
34        done;
35
36replace: clean eggs
37
38# Convenient alias
39force: replace
40
41NDG_EGG_DIST_USER=
42NDG_EGG_DIST_HOST=
43NDG_EGG_DIST_DIR=
44
45install_eggs: eggs
46        scp ndg-security-install.py dist/*.egg ndg.*/dist/*.egg \
47        ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR}
48
49# Generate HTML from embedded epydoc text in source code.
50EPYDOC=epydoc
51EPYDOC_OUTDIR=../documentation/epydoc
52EPYDOC_NAME='NDG Security'
53EPYDOC_LOGFILE=epydoc.log
54EPYDOC_FRAMES_OPT=--no-frames
55
56# Make ZSI stubs from Session Manager WSDL
57SM_ZSI_STUB_DIRS=./ndg.security.server/ndg/security/server/SessionMgr \
58                                 ./ndg.security.common/ndg/security/common/SessionMgr
59
60sm_zsi_wsdl_stubs:
61        @-for dir in ${SM_ZSI_STUB_DIRS}; do \
62                cd $$dir && make && cd ../../../../..; \
63        done;
64
65# Make ZSI stubs from Attribute Authority WSDL
66AA_ZSI_STUB_DIRS=./ndg.security.server/ndg/security/server/AttAuthority \
67                                 ./ndg.security.common/ndg/security/common/AttAuthority
68                                 
69aa_zsi_wsdl_stubs:
70        @-for dir in ${AA_ZSI_STUB_DIRS}; do \
71                cd $$dir && make && cd ../../../../..; \
72        done;
73
74# Make all ZSI stubs for NDG security
75zsi_wsdl_stubs: sm_zsi_wsdl_stubs aa_zsi_wsdl_stubs
76       
77epydoc:
78        ${EPYDOC} ./ndg.security.*/ndg -o ${EPYDOC_OUTDIR} \
79        --name ${EPYDOC_NAME} ${EPYDOC_FRAMES_OPT} --include-log --graph all -v \
80        >& ${EPYDOC_LOGFILE}
Note: See TracBrowser for help on using the repository browser.