X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=cmdline%2FtestUser.sh;h=8462446bd508f95d16380ec3721bbf8eb5cfd47c;hb=79d483b9ee74b5235d5cdc23720d6b6e97666baa;hp=59b909c725def550c2aa39b9ac939da055ccf55a;hpb=22d352d6f32908012b963a8b635e48ce3fc3d551;p=sfa.git diff --git a/cmdline/testUser.sh b/cmdline/testUser.sh index 59b909c7..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,9 +18,9 @@ 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 @@ -51,3 +51,6 @@ echo XXXXX ------------------------------------------------------------------- echo XXXXX Update Self 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