@@ -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 ( / d i d : o p : [ a - f 0 - 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