@@ -7,7 +7,8 @@ const helper = require('../helper');
7
7
8
8
/**
9
9
* TODO:
10
- * - test option `maxDeletion`
10
+ * - [ ] test deleting source files with `syncFiles`
11
+ * - [ ] test `maxDeletion` options
11
12
*/
12
13
13
14
const files = {
@@ -40,7 +41,7 @@ describe("storage", function() {
40
41
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ListAllMyBucketsResult xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"><Owner><ID>89123456:user-feiowjfOEIJW</ID><DisplayName>12345678:user-feiowjfOEIJW</DisplayName></Owner><Buckets><Bucket><Name>invoices</Name><CreationDate>2023-02-27T11:46:24.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>" ;
41
42
} ) ;
42
43
43
- helper . loadConfig ( 'config.test-swift-s3.json' , function ( err , config ) {
44
+ helper . loadConfig ( path . join ( __dirname , 'config.test-swift-s3.json' ) , function ( err , config ) {
44
45
assert . strictEqual ( err , null ) ;
45
46
_config = config ;
46
47
storage . connection ( _config , 'source' , function ( err ) {
@@ -229,7 +230,7 @@ describe("storage", function() {
229
230
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ListAllMyBucketsResult xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"><Owner><ID>89123456:user-feiowjfOEIJW</ID><DisplayName>12345678:user-feiowjfOEIJW</DisplayName></Owner><Buckets><Bucket><Name>invoices</Name><CreationDate>2023-02-27T11:46:24.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>" ;
230
231
} ) ;
231
232
232
- helper . loadConfig ( 'config.test-s3-s3.json' , function ( err , config ) {
233
+ helper . loadConfig ( path . join ( __dirname , 'config.test-s3-s3.json' ) , function ( err , config ) {
233
234
assert . strictEqual ( err , null ) ;
234
235
_config = config ;
235
236
storage . connection ( _config , 'source' , function ( err ) {
@@ -301,7 +302,7 @@ describe("storage", function() {
301
302
. post ( '/auth/tokens' )
302
303
. reply ( 200 , connectionResultSuccessV3SBG , { "X-Subject-Token" : tokenAuthSwift } ) ;
303
304
304
- helper . loadConfig ( 'config.test-swift-swift.json' , function ( err , config ) {
305
+ helper . loadConfig ( path . join ( __dirname , 'config.test-swift-swift.json' ) , function ( err , config ) {
305
306
assert . strictEqual ( err , null ) ;
306
307
307
308
const _config = config ;
@@ -377,7 +378,7 @@ describe("storage", function() {
377
378
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ListAllMyBucketsResult xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"><Owner><ID>89123456:user-feiowjfOEIJW</ID><DisplayName>12345678:user-feiowjfOEIJW</DisplayName></Owner><Buckets><Bucket><Name>invoices</Name><CreationDate>2023-02-27T11:46:24.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>" ;
378
379
} ) ;
379
380
380
- helper . loadConfig ( 'config.test-s3-swift.json' , function ( err , config ) {
381
+ helper . loadConfig ( path . join ( __dirname , 'config.test-s3-swift.json' ) , function ( err , config ) {
381
382
assert . strictEqual ( err , null ) ;
382
383
_config = config ;
383
384
storage . connection ( _config , 'source' , function ( err ) {
0 commit comments