7 # private key to use when creating GID for new slice
8 export TEST_KEY=$CWD/testkey.pkey
10 export TEST_SLICE_GID=$CWD/testslice.gid
11 export TEST_SLICE_RECORD=$CWD/testslice.record
12 export TEST_SLICE_HRN=$SFI_AUTH.testslice
14 echo XXXXX -------------------------------------------------------------------
15 echo XXXXX Creating a GID for test slice $TEST_SLICE_HRN
16 echo XXXXX -------------------------------------------------------------------
18 python ./sfi.py creategid -o $TEST_SLICE_GID $TEST_SLICE_HRN $TEST_KEY
20 echo XXXXX -------------------------------------------------------------------
21 echo XXXXX Removing the test slice. this will cause an error if the slice does
22 echo XXXXX not exist -- this error can be ignored
23 echo XXXXX -------------------------------------------------------------------
25 python ./sfi.py remove --type slice $TEST_SLICE_HRN
27 echo XXXXX -------------------------------------------------------------------
28 echo XXXXX Creating a record for the test slice
29 echo XXXXX -------------------------------------------------------------------
31 python ./editRecord.py --hrn $TEST_SLICE_HRN --gidfile $TEST_SLICE_GID --type slice --addresearcher $SFI_USER --outfile $TEST_SLICE_RECORD
33 echo XXXXX -------------------------------------------------------------------
34 echo XXXXX Adding the test slice, $TEST_SLICE_HRN
35 echo XXXXX -------------------------------------------------------------------
37 python ./sfi.py add $TEST_SLICE_RECORD
39 echo XXXXX -------------------------------------------------------------------
40 echo XXXXX The slice should have one researcher, $SFI_USER
41 echo XXXXX -------------------------------------------------------------------
43 python ./sfi.py show $TEST_SLICE_HRN
45 echo XXXXX -------------------------------------------------------------------
46 echo XXXXX Adding $TEST_USER_2 to the slice researchers
47 echo XXXXX -------------------------------------------------------------------
49 python ./editRecord.py --infile $TEST_SLICE_RECORD --outfile $TEST_SLICE_RECORD --addresearcher $TEST_USER_2 --outfile $TEST_SLICE_RECORD
51 echo XXXXX -------------------------------------------------------------------
52 echo XXXXX Updating the slice
53 echo XXXXX -------------------------------------------------------------------
55 python ./sfi.py update $TEST_SLICE_RECORD
57 echo XXXXX -------------------------------------------------------------------
58 echo XXXXX The slice record should now have two users: $SFI_USER, $TEST_USER_2
59 echo XXXXX -------------------------------------------------------------------
61 python ./sfi.py show $TEST_SLICE_HRN