diff --git a/test/fn/create-users.spec.js b/test/fn/create-users.spec.js index c72873dea..470281932 100644 --- a/test/fn/create-users.spec.js +++ b/test/fn/create-users.spec.js @@ -315,6 +315,11 @@ describe('create-users', function () { mockTestDir(`data/create-users/multiple-existing-place`); const pwd = 'Secret_1'; api.giveResponses( + { status: 400, body: { code: 400, error: 'not an offline role' } }, + { status: 400, body: { code: 400, error: 'not an offline role' } }, + { status: 400, body: { code: 400, error: 'not an offline role' } }, + { status: 400, body: { code: 400, error: 'not an offline role' } }, + { status: 400, body: { code: 400, error: 'not an offline role' } }, { status: 400, body: { code: 400, error: 'not an offline role' } }, { body: { total_docs: 12000, warn: true, limit: 10000 } }, { body: { total_docs: 10200, warn: true, limit: 10000 } }, @@ -335,6 +340,11 @@ describe('create-users', function () { .catch(() => { assert.equal(readLine.keyInYN.callCount, 1); assert.deepEqual(api.requestLog(), [ + { method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} }, + { method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} }, + { method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} }, + { method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} }, + { method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} }, { method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} }, { method: 'GET', url: '/api/v1/users-info?' + qs(jack), body: {} }, { method: 'GET', url: '/api/v1/users-info?' + qs(jill), body: {} },