@@ -6,14 +6,6 @@ var util = require('../demo/util');
66var config = require ( '../demo/config' ) ;
77var Writable = require ( 'stream' ) . Writable ;
88
9- if ( process . env . AppId ) {
10- config = {
11- SecretId : process . env . SecretId ,
12- SecretKey : process . env . SecretKey ,
13- Bucket : process . env . Bucket ,
14- Region : process . env . Region
15- }
16- }
179var dataURItoUploadBody = function ( dataURI ) {
1810 return Buffer . from ( dataURI . split ( ',' ) [ 1 ] , 'base64' ) ;
1911} ;
@@ -60,7 +52,7 @@ var cos = new COS({
6052 UploadCheckContentMd5 : true , // 上传过程计算 Content-MD5
6153} ) ;
6254
63- var AppId = config . AppId ;
55+ var AppId ;
6456var Bucket = config . Bucket ;
6557var BucketShortName = Bucket ;
6658var BucketLongName = Bucket + '-' + AppId ;
@@ -2591,6 +2583,13 @@ group('BucketInventory', function () {
25912583 Region : config . Region ,
25922584 Id : InventoryConfiguration . Id
25932585 } , function ( err , data ) {
2586+ console . log ( '-----------------------------' ) ;
2587+ console . log ( JSON . stringify ( config ) ) ;
2588+ console . log ( '-----------------------------' ) ;
2589+ console . log ( JSON . stringify ( InventoryConfiguration ) ) ;
2590+ console . log ( '-----------------------------' ) ;
2591+ console . log ( JSON . stringify ( data . InventoryConfiguration ) ) ;
2592+ console . log ( '-----------------------------' ) ;
25942593 assert . ok ( comparePlainObject ( InventoryConfiguration , data . InventoryConfiguration ) ) ;
25952594 done ( ) ;
25962595 } ) ;
0 commit comments