From 9df451fb68281d8e7ea3d42483c631a96c8c79cd Mon Sep 17 00:00:00 2001 From: paulo-ocean Date: Mon, 3 Mar 2025 10:47:14 +0000 Subject: [PATCH 1/3] update file to download --- metadata/simpleDownloadDataset.json | 2 +- test/consumeFlow.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata/simpleDownloadDataset.json b/metadata/simpleDownloadDataset.json index 1bd5a42..d65f213 100644 --- a/metadata/simpleDownloadDataset.json +++ b/metadata/simpleDownloadDataset.json @@ -31,7 +31,7 @@ "files": [ { "type": "url", - "url": "https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-abstract10.xml.gz-rss.xml", + "url": "https://github.com/oceanprotocol/ocean-node/blob/main/LICENSE", "method": "GET" } ] diff --git a/test/consumeFlow.test.ts b/test/consumeFlow.test.ts index c7bf0f7..bcd617f 100644 --- a/test/consumeFlow.test.ts +++ b/test/consumeFlow.test.ts @@ -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://github.com/oceanprotocol/ocean-node/blob/main/LICENSE", originalFilePath); const originalFileHash = computeFileHash(originalFilePath); expect(downloadedFileHash).to.equal(originalFileHash); From 0d10c8b1bf1d16f98698f0c50dc90f068b44b468 Mon Sep 17 00:00:00 2001 From: paulo-ocean Date: Mon, 3 Mar 2025 10:48:44 +0000 Subject: [PATCH 2/3] fix url --- metadata/simpleDownloadDataset.json | 2 +- test/consumeFlow.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata/simpleDownloadDataset.json b/metadata/simpleDownloadDataset.json index d65f213..452faef 100644 --- a/metadata/simpleDownloadDataset.json +++ b/metadata/simpleDownloadDataset.json @@ -31,7 +31,7 @@ "files": [ { "type": "url", - "url": "https://github.com/oceanprotocol/ocean-node/blob/main/LICENSE", + "url": "https://raw.githubusercontent.com/oceanprotocol/ocean-node/refs/heads/main/LICENSE", "method": "GET" } ] diff --git a/test/consumeFlow.test.ts b/test/consumeFlow.test.ts index bcd617f..46b76ab 100644 --- a/test/consumeFlow.test.ts +++ b/test/consumeFlow.test.ts @@ -196,7 +196,7 @@ describe("Ocean CLI Publishing", function() { const downloadedFileHash = computeFileHash(downloadedFilePath); const originalFilePath = './metadata/LICENSE'; - await downloadFile("https://github.com/oceanprotocol/ocean-node/blob/main/LICENSE", originalFilePath); + await downloadFile("https://raw.githubusercontent.com/oceanprotocol/ocean-node/refs/heads/main/LICENSE", originalFilePath); const originalFileHash = computeFileHash(originalFilePath); expect(downloadedFileHash).to.equal(originalFileHash); From 972a667327888abb6bc870894eb12ea6093208ac Mon Sep 17 00:00:00 2001 From: paulo-ocean Date: Mon, 3 Mar 2025 10:55:21 +0000 Subject: [PATCH 3/3] update github actions version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf6a677..74991c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: