@@ -6,14 +6,6 @@ var util = require('../demo/util');
6
6
var config = require ( '../demo/config' ) ;
7
7
var Writable = require ( 'stream' ) . Writable ;
8
8
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
- }
17
9
var dataURItoUploadBody = function ( dataURI ) {
18
10
return Buffer . from ( dataURI . split ( ',' ) [ 1 ] , 'base64' ) ;
19
11
} ;
@@ -60,7 +52,7 @@ var cos = new COS({
60
52
UploadCheckContentMd5 : true , // 上传过程计算 Content-MD5
61
53
} ) ;
62
54
63
- var AppId = config . AppId ;
55
+ var AppId ;
64
56
var Bucket = config . Bucket ;
65
57
var BucketShortName = Bucket ;
66
58
var BucketLongName = Bucket + '-' + AppId ;
@@ -2591,6 +2583,13 @@ group('BucketInventory', function () {
2591
2583
Region : config . Region ,
2592
2584
Id : InventoryConfiguration . Id
2593
2585
} , 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 ( '-----------------------------' ) ;
2594
2593
assert . ok ( comparePlainObject ( InventoryConfiguration , data . InventoryConfiguration ) ) ;
2595
2594
done ( ) ;
2596
2595
} ) ;
0 commit comments