(payload, bucket, cb)
| 44 | } |
| 45 | |
| 46 | function indexPutRequest(payload, bucket, cb) { |
| 47 | makeRequest({ |
| 48 | authCredentials: backbeatAuthCredentials, |
| 49 | hostname: ipAddress, |
| 50 | port: 8000, |
| 51 | method: 'POST', |
| 52 | path: |
| 53 | `/_/backbeat/index/${bucket}`, |
| 54 | headers: {}, |
| 55 | jsonResponse: true, |
| 56 | requestBody: JSON.stringify(payload), |
| 57 | queryObj: { operation: 'add' }, |
| 58 | }, cb); |
| 59 | } |
| 60 | |
| 61 | function indexGetRequest(bucket, cb) { |
| 62 | makeRequest({ |
no test coverage detected