Changeset 37250
- Timestamp:
- 2023-02-02T13:26:38+13:00 (15 months ago)
- Location:
- gs3-installations/test-suite/trunk/sites/test-suite/collect/filelevel-docver--paged-image
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/test-suite/trunk/sites/test-suite/collect/filelevel-docver--paged-image/TEST-STEP02--GET-AND-SET-ASSOCFILES.sh
r37216 r37250 1 1 #!/bin/bash 2 2 3 #a=g 4 #rt=r 5 #ro=1 6 #s=ModifyMetadata 7 # 8 #s1.a=set-metadata-array 9 #s1.collection=filelevel-docver-simpletext 10 #s1.site=test-suite 11 #s1.json=[{\"docid\":\"HASH06c6d1dd2cd7e88c854a99\",\"metatable\":[{\"metaname\":\"username\",\"metavals\":[\"admin\"]},{\"metaname\":\"usertimestamp\",\"metavals\":[1674967220362]},{\"metaname\":\"usercomment\",\"metavals\":[\"My+first+comment\"]}],\"metamode\":\"accumulate\"}] 12 #s1.where=import|archives|index 13 #s1.metamode=accumulate 14 # 15 16 3 17 ./_TEST-STEP02--GET-AND-SET-ASSOCFILES.sh $@ 2>&1 | less -
gs3-installations/test-suite/trunk/sites/test-suite/collect/filelevel-docver--paged-image/_TEST-STEP02--GET-AND-SET-ASSOCFILES.sh
r37219 r37250 99 99 echo "Uploading (URLencoded POST) replacement gsdlassocfile file mydata.json using 'filedata=' for $doc_id:" 100 100 echo "--------" 101 #echo curl -X POST -F "a=set-archives-assocfile" \102 # -F "site=$site" -F "c=$col" -F "d=$doc_id" \103 # -F "mydata.json" \104 # -F 'filedata="{\"test_val\": 1, \"test_bool\": true, \"test_str\": \"a val\", \"test_array\": [ 1, 2, 3 ] }"' \105 # $gs_context_url/cgi-bin/metadata-server.pl106 107 101 echo curl -d "a=set-archives-assocfile&site=$site&c=$col&d=$doc_id&assocname=myfile.json" \ 108 102 -d 'filedata={"test_val": 1, "test_bool": true, "test_str": "a val", "test_array": [ 1, 2, 3 ] }' \
Note:
See TracChangeset
for help on using the changeset viewer.