(key, hasContent)
| 54 | |
| 55 | // Get an object request with the given key. |
| 56 | function getObjectPutReq(key, hasContent) { |
| 57 | const bodyContent = hasContent ? 'body content' : ''; |
| 58 | return new DummyRequest({ |
| 59 | bucketName, |
| 60 | namespace, |
| 61 | objectKey: key, |
| 62 | headers: {}, |
| 63 | url: `/${bucketName}/${key}`, |
| 64 | }, Buffer.from(bodyContent, 'utf8')); |
| 65 | } |
| 66 | |
| 67 | const taggingPutReq = new TaggingConfigTester() |
| 68 | .createObjectTaggingRequest('PUT', bucketName, keyA); |
no outgoing calls
no test coverage detected