source: fedd/abac_test.sh @ 7723a2f

axis_examplecompt_changesinfo-opsversion-3.01version-3.02
Last change on this file since 7723a2f was 7723a2f, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

Added tests for Alice, Bill, and James.
Alice is still misbehaving.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[af51a97]1#!/bin/sh
2
[e14f472]3# Create a new contexts for the negotiation
[181cf9c]4./abac_client.py create --cert=emulab.pem --transport=soap \
[20cda34]5        --url=http://localhost:8443/axis2/services/feddABACPort \
[7723a2f]6        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/ucla.txt
7#       --trace \
8./abac_client.py create --cert=emulab.pem --transport=soap \
9        --url=http://localhost:8443/axis2/services/feddABACPort \
10        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/bill.txt
11#       --trace \
12./abac_client.py create --cert=emulab.pem --transport=soap \
13        --url=http://localhost:8443/axis2/services/feddABACPort \
14        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/alice.txt
15#       --trace \
[e14f472]16./abac_client.py create --cert=emulab.pem --transport=soap \
[20cda34]17        --url=http://localhost:8443/axis2/services/feddABACPort \
[7723a2f]18        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/james.txt
19#       --trace \
[e14f472]20# Run the negotiation with an access request
21#./abac_client.py access --cert=emulab.pem --transport=soap \
22#       --trace \
23#       --url=http://localhost:8443/axis2/services/feddABACPort \
24#       --context_id=0 --goal='GENI:GENI.CTFaccess<<---Alice'
[20cda34]25# Test a two part negoitation
26./abac_client.py access --cert=emulab.pem --transport=soap \
[7723a2f]27        --url=http://localhost:8443/axis2/services/feddABACPort \
28        --context_id=UCLA --goal='UCLA:GENI.CTFaccess<<---Alice' \
[2ed74c6]29        --srcURL=https://localhost:8443/axis2/services/feddABACPort \
[e14f472]30        --dstContext=Alice \
[2ed74c6]31        --dstURL=https://localhost:8443/axis2/services/feddABACPort
[7723a2f]32#       --trace \
33./abac_client.py access --cert=emulab.pem --transport=soap \
34        --url=http://localhost:8443/axis2/services/feddABACPort \
35        --context_id=UCLA --goal='UCLA:GENI.CTFaccess<<---James' \
36        --srcURL=https://localhost:8443/axis2/services/feddABACPort \
37        --dstContext=James \
38        --dstURL=https://localhost:8443/axis2/services/feddABACPort
39#       --trace \
40./abac_client.py access --cert=emulab.pem --transport=soap \
41        --url=http://localhost:8443/axis2/services/feddABACPort \
42        --context_id=UCLA --goal='UCLA:GENI.CTFaccess<<---Bill' \
43        --srcURL=https://localhost:8443/axis2/services/feddABACPort \
44        --dstContext=Bill \
45        --dstURL=https://localhost:8443/axis2/services/feddABACPort
[20cda34]46
Note: See TracBrowser for help on using the repository browser.