Changeset 37219 for gs3-installations


Ignore:
Timestamp:
2023-01-30T15:24:02+13:00 (15 months ago)
Author:
davidb
Message:

Added extra formdata test

File:
1 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

    r37217 r37219  
    9696echo ""
    9797
     98echo "========"
     99echo "Uploading (URLencoded POST) replacement gsdlassocfile file mydata.json using 'filedata=' for $doc_id:"
     100echo "--------"
     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.pl
    98106
     107echo curl -d "a=set-archives-assocfile&site=$site&c=$col&d=$doc_id&assocname=myfile.json" \
     108     -d 'filedata={"test_val": 1, "test_bool": true, "test_str": "a val", "test_array": [ 1, 2, 3 ] }' \
     109     $gs_context_url/cgi-bin/metadata-server.pl
     110
     111echo ""
     112curl -s -d "a=set-archives-assocfile&site=$site&c=$col&d=$doc_id&assocname=myfile.json" \
     113     -d 'filedata={"test_val": 1, "test_bool": true, "test_str": "a val", "test_array": [ 1, 2, 3 ] }' \
     114     $gs_context_url/cgi-bin/metadata-server.pl
Note: See TracChangeset for help on using the changeset viewer.