@@ -41,7 +41,6 @@ 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 ) ;
4544
4645 // Ensure the metadata file exists
4746 if ( ! fs . existsSync ( metadataFile ) ) {
@@ -54,29 +53,23 @@ describe("Ocean CLI Publishing", function() {
5453 process . env . AQUARIUS_URL = "http://127.0.0.1:8001" ;
5554 process . env . PROVIDER_URL = "http://127.0.0.1:8001" ;
5655 process . env . ADDRESS_FILE = path . join ( process . env . HOME || "" , ".ocean/ocean-contracts/artifacts/address.json" ) ;
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 ) ;
56+
6157 exec ( `npm run cli publish ${ metadataFile } ` , { cwd : projectRoot } , ( error , stdout ) => {
6258 try {
6359 const match = stdout . match ( / d i d : o p : [ a - f 0 - 9 ] { 64 } / ) ;
6460 if ( match ) {
6561 downloadDatasetDid = match [ 0 ] ;
66- console . log ( 'match 1: ' , match [ 0 ] )
6762 }
6863 expect ( stdout ) . to . contain ( "Asset published. ID:" ) ;
6964 done ( )
7065 } catch ( assertionError ) {
71- console . log ( 'assertionError' , assertionError ) ;
7266 done ( assertionError ) ;
7367 }
7468 } ) ;
7569 } ) ;
7670
7771 it ( "should publish a compute dataset using 'npm run cli publish'" , function ( done ) {
7872 const metadataFile = path . resolve ( projectRoot , "metadata/simpleComputeDataset.json" ) ;
79- console . log ( 'metadataFile' , metadataFile ) ;
8073 // Ensure the metadata file exists
8174 if ( ! fs . existsSync ( metadataFile ) ) {
8275 done ( new Error ( "Metadata file not found: " + metadataFile ) ) ;
0 commit comments