Changeset 37250


Ignore:
Timestamp:
2023-02-02T13:26:38+13:00 (15 months ago)
Author:
davidb
Message:

Extended tests for new fldv actions in metadata-server.pl

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  
    11#!/bin/bash
    22
     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
    317./_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  
    9999echo "Uploading (URLencoded POST) replacement gsdlassocfile file mydata.json using 'filedata=' for $doc_id:"
    100100echo "--------"
    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
    106 
    107101echo curl -d "a=set-archives-assocfile&site=$site&c=$col&d=$doc_id&assocname=myfile.json" \
    108102     -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.