Browse Source

storage-node: test download in CI checks

Mokhtar Naamani 4 years ago
parent
commit
614fb20142
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/run-network-tests.yml

+ 6 - 0
.github/workflows/run-network-tests.yml

@@ -223,3 +223,9 @@ jobs:
               echo "Upload test failed, will retry"
             fi
           done
+          # Wait for storage-node to set status Accepted on uploaded content
+          sleep 6
+          cd utils/api-scripts/
+          # Assume only one accepted data object was created
+          CONTENT_ID=`yarn --silent script get-first-content-id | tail -n2 | head -n1`
+          yarn storage-cli download http://localhost:3001 ${CONTENT_ID} ./download.png