f567495b4215872ea90e6f5a61fde073d8366ec1
[sfa.git] / cmdline / testComponent.sh
1 # Assumptions:
2 #    planetlab.us.pl.account_test is a user that exists on the registry
3 #    planetlab.us.pl.test1 (pl_test1) is a slice that exists on the node
4
5 rm -f test.cred
6 rm -f test.cert
7 rm -f pltest1.cred
8
9 NODE_URL=https://198.0.0.131:12345/
10
11 echo XXXXX -------------------------------------------------------------------
12 echo XXXXX Getting User Credential
13 python ./genicli.py --username test --credfile None --outfile test.cred getCredential user planetlab.us.pl.account_test
14
15 echo XXXXX -------------------------------------------------------------------
16 echo XXXXX Get Slice Credential
17 python ./genicli.py --username test --outfile pltest1.cred getCredential slice planetlab.us.pl.test1
18
19 echo XXXXX -------------------------------------------------------------------
20 echo XXXXX Get a Ticket
21 python ./genicli.py --username test --credfile pltest1.cred --outfile pltest1.ticket getTicket planetlab.us.pl.test1
22
23 echo XXXXX -------------------------------------------------------------------
24 echo XXXXX Redeem a Ticket
25 python ./genicli.py --server $NODE_URL --username test --ticketfile pltest1.ticket redeemTicket
26
27 echo XXXXX -------------------------------------------------------------------
28 echo XXXXX Stop a Slice
29 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred stopSlice
30
31 echo XXXXX -------------------------------------------------------------------
32 echo XXXXX Start a Slice
33 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred startSlice
34
35 echo XXXXX -------------------------------------------------------------------
36 echo XXXXX Reset a Slice
37 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred resetSlice
38
39 echo XXXXX -------------------------------------------------------------------
40 echo XXXXX Delete a Slice
41 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred deleteSlice
42
43 echo XXXXX -------------------------------------------------------------------
44 echo XXXXX List Slices
45 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred --outfile pltest1.cred listSlices\r
46 \r