@@ -20,6 +20,7 @@ const {
20
20
awsGetLatestVerId,
21
21
getAwsRetry,
22
22
genUniqID,
23
+ isCEPH,
23
24
} = require ( '../utils' ) ;
24
25
25
26
const someBody = 'testbody' ;
@@ -151,8 +152,11 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
151
152
( awsVerId , next ) => delAndAssertResult ( s3 , { bucket,
152
153
key, versionId : 'null' , resultType : deleteVersion } ,
153
154
err => next ( err , awsVerId ) ) ,
154
- ( awsVerId , next ) => _awsGetAssertDeleted ( { key,
155
- versionId : awsVerId , errorCode : 'NoSuchVersion' } , next ) ,
155
+ ( awsVerId , next ) => {
156
+ const wanted = isCEPH ? 'NoSuchKey' : 'NoSuchVersion' ;
157
+ _awsGetAssertDeleted ( { key,
158
+ versionId : awsVerId , errorCode : wanted } , next ) ;
159
+ } ,
156
160
] , done ) ;
157
161
} ) ;
158
162
@@ -184,8 +188,11 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
184
188
( awsVerId , next ) => delAndAssertResult ( s3 , { bucket,
185
189
key, versionId : 'null' , resultType : deleteVersion } ,
186
190
err => next ( err , awsVerId ) ) ,
187
- ( awsVerId , next ) => _awsGetAssertDeleted ( { key,
188
- versionId : awsVerId , errorCode : 'NoSuchVersion' } , next ) ,
191
+ ( awsVerId , next ) => {
192
+ const wanted = isCEPH ? 'NoSuchKey' : 'NoSuchVersion' ;
193
+ _awsGetAssertDeleted ( { key,
194
+ versionId : awsVerId , errorCode : wanted } , next ) ;
195
+ } ,
189
196
] , done ) ;
190
197
} ) ;
191
198
@@ -200,8 +207,11 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
200
207
( s3VerId , awsVerId , next ) => delAndAssertResult ( s3 , { bucket,
201
208
key, versionId : s3VerId , resultType : deleteVersion } ,
202
209
err => next ( err , awsVerId ) ) ,
203
- ( awsVerId , next ) => _awsGetAssertDeleted ( { key,
204
- versionId : awsVerId , errorCode : 'NoSuchVersion' } , next ) ,
210
+ ( awsVerId , next ) => {
211
+ const wanted = isCEPH ? 'NoSuchKey' : 'NoSuchVersion' ;
212
+ _awsGetAssertDeleted ( { key,
213
+ versionId : awsVerId , errorCode : wanted } , next ) ;
214
+ } ,
205
215
] , done ) ;
206
216
} ) ;
207
217
@@ -451,8 +461,11 @@ describeSkipIfNotMultiple('AWS backend delete object w. versioning: ' +
451
461
err => next ( err , awsVid ) ) ,
452
462
( awsVid , next ) => _getAssertDeleted ( s3 , { key,
453
463
errorCode : 'NoSuchKey' } , ( ) => next ( null , awsVid ) ) ,
454
- ( awsVerId , next ) => _awsGetAssertDeleted ( { key,
455
- versionId : awsVerId , errorCode : 'NoSuchVersion' } , next ) ,
464
+ ( awsVerId , next ) => {
465
+ const wanted = isCEPH ? 'NoSuchKey' : 'NoSuchVersion' ;
466
+ _awsGetAssertDeleted ( { key,
467
+ versionId : awsVerId , errorCode : wanted } , next ) ;
468
+ } ,
456
469
] , done ) ;
457
470
} ) ;
458
471
0 commit comments