Skip to content

Commit 7681750

Browse files
committed
Add more logs into the tests.
1 parent 478df75 commit 7681750

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

src/publishAsset.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,6 @@ export async function publishAsset(params: PublishAssetParams, signer: Signer, c
5858
],
5959
};
6060

61-
// stats: {
62-
// allocated: 0,
63-
// orders: 0,
64-
// price: {
65-
// value: params.isCharged ? params.price : "0"
66-
// }
67-
// },
68-
// nft: {
69-
// address: "",
70-
// name: "Ocean Data NFT",
71-
// symbol: "OCEAN-NFT",
72-
// state: 5,
73-
// tokenURI: "",
74-
// owner: "",
75-
// created: ""
76-
// }
77-
7861
// Asset URL setup based on storage type
7962
const assetUrl = {
8063
nftAddress: '0x0', // Will be updated after creating asset

test/consumeFlow.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe("Ocean CLI Publishing", function() {
4141

4242
it("should publish a dataset using 'npm run cli publish'", function(done) {
4343
const metadataFile = path.resolve(projectRoot, "metadata/simpleDownloadDataset.json");
44+
console.log('metadataFile 1 ', metadataFile);
4445

4546
// Ensure the metadata file exists
4647
if (!fs.existsSync(metadataFile)) {
@@ -53,13 +54,16 @@ describe("Ocean CLI Publishing", function() {
5354
process.env.AQUARIUS_URL = "http://127.0.0.1:8001";
5455
process.env.PROVIDER_URL = "http://127.0.0.1:8001";
5556
process.env.ADDRESS_FILE = path.join(process.env.HOME || "", ".ocean/ocean-contracts/artifacts/address.json");
56-
57+
console.log('RPC', process.env.RPC);
58+
console.log('AQUARIUS_URL', process.env.AQUARIUS_URL);
59+
console.log('PROVIDER_URL', process.env.PROVIDER_URL);
60+
console.log('ADDRESS_FILE', process.env.ADDRESS_FILE);
5761
exec(`npm run cli publish ${metadataFile}`, { cwd: projectRoot }, (error, stdout) => {
5862
try {
5963
const match = stdout.match(/did:op:[a-f0-9]{64}/);
6064
if (match) {
6165
downloadDatasetDid = match[0];
62-
console.log('match: ', match[0])
66+
console.log('match 1: ', match[0])
6367
}
6468
expect(stdout).to.contain("Asset published. ID:");
6569
done()
@@ -72,7 +76,7 @@ describe("Ocean CLI Publishing", function() {
7276

7377
it("should publish a compute dataset using 'npm run cli publish'", function(done) {
7478
const metadataFile = path.resolve(projectRoot, "metadata/simpleComputeDataset.json");
75-
79+
console.log('metadataFile', metadataFile);
7680
// Ensure the metadata file exists
7781
if (!fs.existsSync(metadataFile)) {
7882
done(new Error("Metadata file not found: " + metadataFile));

0 commit comments

Comments
 (0)