Strip ipfsCIDv1 before testing index-v2

This commit is contained in:
Jochen Sprickerhof 2023-04-04 23:19:09 +02:00 committed by Hans-Christoph Steiner
parent 239ab5bd21
commit d59a88f844
4 changed files with 40 additions and 21 deletions

View file

@ -306,8 +306,10 @@ $sed -i.tmp -e 's,timestamp="[0-9]*",timestamp="1676634233",' repo/index.xml
diff -uw $WORKSPACE/tests/repo/index.xml repo/index.xml
sed -i --expression='s,"timestamp": [0-9]*,"timestamp": 1676634233000,' repo/index-v1.json
diff -uw $WORKSPACE/tests/repo/index-v1.json repo/index-v1.json
sed -i --expression='s,"timestamp": [0-9]*,"timestamp": 1676634233000,' repo/index-v2.json
diff -uw $WORKSPACE/tests/repo/index-v2.json repo/index-v2.json
jq "del(.packages[]|.versions[]|.file.ipfsCIDv1)" $WORKSPACE/tests/repo/index-v2.json > repo/index-v2.org.json
jq "del(.packages[]|.versions[]|.file.ipfsCIDv1)" repo/index-v2.json > repo/index-v2.mod.json
sed -i --expression='s,"timestamp": [0-9]*,"timestamp": 1676634233000,' repo/index-v2.mod.json
diff -uw repo/index-v2.org.json repo/index-v2.mod.json
#------------------------------------------------------------------------------#