Skip to content

Commit

Permalink
Merge pull request #97 from oceanprotocol/issue-96-consumeflow-file
Browse files Browse the repository at this point in the history
Issue 96 consumeflow file
  • Loading branch information
paulo-ocean authored Mar 3, 2025
2 parents 1cae4d4 + 972a667 commit ed26461
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
node-version: '18.19.0'

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down
2 changes: 1 addition & 1 deletion metadata/simpleDownloadDataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"files": [
{
"type": "url",
"url": "https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-abstract10.xml.gz-rss.xml",
"url": "https://raw.githubusercontent.com/oceanprotocol/ocean-node/refs/heads/main/LICENSE",
"method": "GET"
}
]
Expand Down
6 changes: 3 additions & 3 deletions test/consumeFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ describe("Ocean CLI Publishing", function() {
expect(stdout).to.contain("File downloaded successfully");

// Path to the downloaded file
const downloadedFilePath = './enwiki-latest-abstract10.xml.gz-rss.xml';
const downloadedFilePath = './LICENSE';

// Verify the downloaded file content hash matches the original file hash
const downloadedFileHash = computeFileHash(downloadedFilePath);
const originalFilePath = './metadata/enwiki-latest-abstract10.xml.gz-rss.xml';
const originalFilePath = './metadata/LICENSE';

await downloadFile("https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-abstract10.xml.gz-rss.xml", originalFilePath);
await downloadFile("https://raw.githubusercontent.com/oceanprotocol/ocean-node/refs/heads/main/LICENSE", originalFilePath);
const originalFileHash = computeFileHash(originalFilePath);

expect(downloadedFileHash).to.equal(originalFileHash);
Expand Down

0 comments on commit ed26461

Please sign in to comment.