check in latest test scripts
[sfa.git] / cmdline / testComponent.sh
1 rm -f test.cred
2 rm -f test.cert
3 rm -f pltest1.cred
4
5 NODE_URL=https://198.0.0.131:12345/
6
7 echo XXXXX -------------------------------------------------------------------
8 echo XXXXX Getting User Credential
9 python ./genicli.py --username test --credfile None --outfile test.cred getCredential user planetlab.us.pl.account_test
10
11 echo XXXXX -------------------------------------------------------------------
12 echo XXXXX Get Slice Credential
13 python ./genicli.py --username test --outfile pltest1.cred getCredential slice planetlab.us.pl.test1
14
15 echo XXXXX -------------------------------------------------------------------
16 echo XXXXX Stop a Slice
17 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred --outfile pltest1.cred stopSlice planetlab.us.pl.test1
18
19 echo XXXXX -------------------------------------------------------------------
20 echo XXXXX Start a Slice
21 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred --outfile pltest1.cred startSlice planetlab.us.pl.test1
22
23 echo XXXXX -------------------------------------------------------------------
24 echo XXXXX Reset a Slice
25 python ./genicli.py --server $NODE_URL --username test --credfile pltest1.cred --outfile pltest1.cred resetSlice planetlab.us.pl.test1