X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=cmdline%2FtestUser.sh;h=8462446bd508f95d16380ec3721bbf8eb5cfd47c;hb=19f7d1938f0fa86fe4ca0cb4b3ff469c1ef2812b;hp=12b9f5d0189fb3a4d5fe0d6d857d020858976cce;hpb=68b8892b52a11ef3409121274b0eb43f5c2425eb;p=sfa.git diff --git a/cmdline/testUser.sh b/cmdline/testUser.sh index 12b9f5d0..8462446b 100755 --- a/cmdline/testUser.sh +++ b/cmdline/testUser.sh @@ -6,7 +6,7 @@ # The following lines use a test account. The account has a first name of "test" # and a last name of "account". The private key should be in the file test.pkey -USERNAME=test +USERNAME=${USERNAME-`whoami`} PARENT_HRN=planetlab.us.pl USER_HRN=$PARENT_HRN.account_test @@ -18,30 +18,39 @@ USER_HRN=$PARENT_HRN.account_test # The following lines use Tony Mack's planetlab account on a live PLC # database (tony: copy your private key to tmack.pkey in the current directory) -USERNAME=tmack -PARENT_HRN=planetlab.us.princeton -USER_HRN=$PARENT_HRN.Mack_Tony +#USERNAME=tmack +#PARENT_HRN=planetlab.us.princeton +#USER_HRN=$PARENT_HRN.Mack_Tony PRIVKEY_FN=$USERNAME.pkey CRED_FN=$USERNAME.cred CERT_FN=$USERNAME.cert +# The following URL is the URL of the plc wrapper. + +PLC_URL=https://localhost:12345/ + +# PLC_URL=https://198.0.0.132:12345/ + rm -f $CRED_FN rm -f $CERT_FN echo XXXXX ------------------------------------------------------------------- echo XXXXX Getting Credential -python ./genicli.py --username $USERNAME --credfile None --outfile $CRED_FN getCredential user $USER_HRN +python ./genicli.py --server $PLC_URL --username $USERNAME --credfile None --outfile $CRED_FN getCredential user $USER_HRN echo XXXXX ------------------------------------------------------------------- echo XXXXX Resolving Authority -python ./genicli.py --username $USERNAME resolve $PARENT_HRN +python ./genicli.py --server $PLC_URL --username $USERNAME resolve $PARENT_HRN echo XXXXX ------------------------------------------------------------------- echo XXXXX Resolving Self -python ./genicli.py --username $USERNAME resolve $USER_HRN +python ./genicli.py --server $PLC_URL --username $USERNAME resolve $USER_HRN echo XXXXX ------------------------------------------------------------------- echo XXXXX Update Self -python ./genicli.py --username $USERNAME update user $USER_HRN +python ./genicli.py --server $PLC_URL --username $USERNAME update user $USER_HRN +echo XXXXX ------------------------------------------------------------------- +echo XXXXX List Records in parent authority +python ./genicli.py --server $PLC_URL --username $USERNAME --short list $PARENT_HRN \ No newline at end of file