(method, url, user)
| 51 | } |
| 52 | |
| 53 | function createOptions (method, url, user) { |
| 54 | const options = { |
| 55 | method: method, |
| 56 | url: url, |
| 57 | headers: {} |
| 58 | } |
| 59 | if (user) { |
| 60 | options.agentOptions = userCredentials[user] |
| 61 | } |
| 62 | return options |
| 63 | } |
| 64 | |
| 65 | it('should create the copied resource', function (done) { |
| 66 | const copyFrom = '/samplePublicContainer/nicola.jpg' |