@@ -16,24 +16,17 @@ const bigSize = listingHardLimit + 1;
1616const config = getRealAwsConfig ( credentialOne ) ;
1717const gcpClient = new GCP ( config ) ;
1818
19- console . log ( 'Middleware stack:' , gcpClient . middlewareStack . identify ( ) ) ;
20- console . log ( 'config.s3Params.credentials:' , config . s3Params . credentials ) ;
21- console . log ( 'gcpClient._config:' , gcpClient . _config ) ;
22- console . log ( 'gcpClient._config.s3Params.credentials:' , gcpClient . _config . s3Params . credentials ) ;
23-
2419function populateBucket ( createdObjects , callback ) {
2520 process . stdout . write (
2621 `Putting ${ createdObjects . length } objects into bucket\n` ) ;
2722 async . mapLimit ( createdObjects , 10 ,
2823 ( object , moveOn ) => {
29- console . log ( 'Putting object:' , object ) ;
3024 makeGcpRequest ( {
3125 method : 'PUT' ,
3226 bucket : bucketName ,
3327 objectKey : object ,
3428 authCredentials : config . credentials ,
3529 } , err => {
36- console . log ( 'Put object callback err:' , err ) ;
3730 moveOn ( err ) ;
3831 } ) ;
3932 } , err => {
@@ -74,7 +67,6 @@ describe('GCP: GET Bucket', function testSuite() {
7467 bucket : bucketName ,
7568 authCredentials : config . credentials ,
7669 } , 0 , err => {
77- console . log ( 'Create bucket callback err:' , err ) ;
7870 if ( err ) {
7971 process . stdout . write ( `err in creating bucket ${ err } \n` ) ;
8072 }
@@ -112,7 +104,6 @@ describe('GCP: GET Bucket', function testSuite() {
112104 gcpClient . listObjects ( {
113105 Bucket : bucketName ,
114106 } , ( err , res ) => {
115- console . log ( 'listObjects callback err:' , err , 'res:' , res ) ;
116107 assert . equal ( err , null , `Expected success, but got ${ err } ` ) ;
117108 assert . strictEqual ( res . $metadata ?. httpStatusCode , 200 ) ;
118109 return done ( ) ;
@@ -130,11 +121,9 @@ describe('GCP: GET Bucket', function testSuite() {
130121 after ( done => removeObjects ( createdObjects , done ) ) ;
131122
132123 it ( `should list all ${ smallSize } created objects` , done => {
133- console . log ( 'About to call listObjects...' ) ;
134124 gcpClient . listObjects ( {
135125 Bucket : bucketName ,
136126 } , ( err , res ) => {
137- console . log ( 'Callback called! err:' , err , 'res keys:' , res ? Object . keys ( res ) : null ) ;
138127 assert . equal ( err , null , `Expected success, but got ${ err } ` ) ;
139128 assert . strictEqual ( res . Contents . length , smallSize ) ;
140129 return done ( ) ;
0 commit comments