WIP - Rewriting tests to use vitest #3282
windows-ci.yml
on: pull_request
Windows Integration Tests
9m 1s
Annotations
10 errors
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > new batch > should support root batch:
src/http/http.ts#L145
Error: HTTP 400 Invalid parameters: Invalid request parameter (requests in body: Required)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ KintoClient._batchRequests src/http/base.ts:455:28
❯ KintoClient.batch src/http/base.ts:515:23
❯ test/http/integration_test.ts:138:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/batch', status: 400, ok: false, redirected: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, r
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > new batch > should support bucket batch:
src/http/http.ts#L145
Error: HTTP 400 Invalid parameters: Invalid request parameter (requests in body: Required)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ KintoClient._batchRequests src/http/base.ts:455:28
❯ KintoClient.batch src/http/base.ts:515:23
❯ test/http/integration_test.ts:153:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/batch', status: 400, ok: false, redirected: false, statusText: 'Bad Request', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, r
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > Server properties > should retrieve user information:
test/http/integration_test.ts#L188
TypeError: Cannot read properties of undefined (reading 'id')
❯ test/http/integration_test.ts:188:22
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #createBucket > Default options > Autogenerated id > should create a bucket:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:203:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Function
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #createBucket > Default options > Custom id > should create a bucket with the passed id:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:213:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets/foo', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Func
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #createBucket > Default options > Custom id > should create a bucket having a list of write permissions:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:213:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets/foo', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Func
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #createBucket > Default options > Custom id > data option > should create bucket data:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:213:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets/foo', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Func
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #createBucket > Default options > Custom id > Safe option > should not override existing bucket:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:213:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets/foo', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Func
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #createBucket > permissions option > should create a bucket having a list of write permissions:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:246:26
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets/foo', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Func
|
test/http/integration_test.ts > HTTP Integration tests > Default server configuration > #deleteBucket() > should delete a bucket:
src/http/http.ts#L145
Error: HTTP 401 Unauthorized: Missing Authorization Token (Please authenticate yourself to use this endpoint.)
❯ HTTP.processResponse src/http/http.ts:145:13
❯ KintoClient.execute src/http/base.ts:583:20
❯ test/http/integration_test.ts:259:21
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, timeout: +0, constructor: 'Function<Response>', url: 'http://0.0.0.0:8888/v1/buckets/foo', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', get: 'Function<get>', forEach: 'Function<forEach>', set: 'Function<set>', append: 'Function<append>', has: 'Function<has>', delete: 'Function<delete>', raw: 'Function<raw>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<[Symbol.iterator]>' }, clone: 'Function<clone>', body: { _readableState: { state: 325654, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { prefinish: 'Function<prefinish>', error: [ 'Function<anonymous>', 'Function<anonymous>' ], data: 'Function<anonymous>', end: 'Function<anonymous>' }, _eventsCount: 4, _maxListeners: undefined, _writableState: { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, defaultEncoding: 'utf8', length: +0, writing: false, corked: +0, sync: false, bufferProcessing: false, onwrite: 'Function<bound onwrite>', writecb: null, writelen: +0, afterWriteTickInfo: null, buffered: [], bufferedIndex: +0, allBuffers: true, allNoop: true, pendingcb: +0, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: true, closeEmitted: true, constructor: 'Function<WritableState>', getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', writable: false, writableHighWaterMark: 16384, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, destroy: 'Function<destroy>', _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymous>', readable: false, readableDidRead: true, readableAborted: false, readableHighWaterMark: 16384, readableBuffer: { head: null, tail: null, length: +0, constructor: 'Func
|