@budibase/worker 2.4.44-alpha.12 → 2.4.44-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.4.44-alpha.
|
|
4
|
+
"version": "2.4.44-alpha.13",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "Budibase",
|
|
38
38
|
"license": "GPL-3.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@budibase/backend-core": "2.4.44-alpha.
|
|
41
|
-
"@budibase/pro": "2.4.44-alpha.
|
|
42
|
-
"@budibase/string-templates": "2.4.44-alpha.
|
|
43
|
-
"@budibase/types": "2.4.44-alpha.
|
|
40
|
+
"@budibase/backend-core": "2.4.44-alpha.13",
|
|
41
|
+
"@budibase/pro": "2.4.44-alpha.12",
|
|
42
|
+
"@budibase/string-templates": "2.4.44-alpha.13",
|
|
43
|
+
"@budibase/types": "2.4.44-alpha.13",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@sentry/node": "6.17.7",
|
|
46
46
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"typescript": "4.7.3",
|
|
103
103
|
"update-dotenv": "1.1.1"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "8450b2ecd96fe84154f113b8b9c8dd27483c73f7"
|
|
106
106
|
}
|
|
@@ -255,6 +255,45 @@ describe("scim", () => {
|
|
|
255
255
|
)
|
|
256
256
|
})
|
|
257
257
|
|
|
258
|
+
it("a new user can minim information", async () => {
|
|
259
|
+
const userData = {
|
|
260
|
+
externalId: structures.uuid(),
|
|
261
|
+
email: structures.generator.email(),
|
|
262
|
+
username: structures.generator.name(),
|
|
263
|
+
firstName: undefined,
|
|
264
|
+
lastName: undefined,
|
|
265
|
+
}
|
|
266
|
+
const body = structures.scim.createUserRequest(userData)
|
|
267
|
+
|
|
268
|
+
const response = await postScimUser({ body })
|
|
269
|
+
|
|
270
|
+
const expectedScimUser = {
|
|
271
|
+
schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"],
|
|
272
|
+
id: expect.any(String),
|
|
273
|
+
externalId: userData.externalId,
|
|
274
|
+
meta: {
|
|
275
|
+
resourceType: "User",
|
|
276
|
+
created: mocks.date.MOCK_DATE.toISOString(),
|
|
277
|
+
lastModified: mocks.date.MOCK_DATE.toISOString(),
|
|
278
|
+
},
|
|
279
|
+
userName: userData.username,
|
|
280
|
+
active: true,
|
|
281
|
+
emails: [
|
|
282
|
+
{
|
|
283
|
+
value: userData.email,
|
|
284
|
+
type: "work",
|
|
285
|
+
primary: true,
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
}
|
|
289
|
+
expect(response).toEqual(expectedScimUser)
|
|
290
|
+
|
|
291
|
+
const persistedUsers = await config.api.scimUsersAPI.get()
|
|
292
|
+
expect(persistedUsers.Resources).toEqual(
|
|
293
|
+
expect.arrayContaining([expectedScimUser])
|
|
294
|
+
)
|
|
295
|
+
})
|
|
296
|
+
|
|
258
297
|
it("an event is dispatched", async () => {
|
|
259
298
|
const body = structures.scim.createUserRequest()
|
|
260
299
|
|
|
@@ -398,7 +437,7 @@ describe("scim", () => {
|
|
|
398
437
|
name: {
|
|
399
438
|
...user.name,
|
|
400
439
|
familyName: newFamilyName,
|
|
401
|
-
formatted: `${user.name
|
|
440
|
+
formatted: `${user.name!.givenName} ${newFamilyName}`,
|
|
402
441
|
},
|
|
403
442
|
}
|
|
404
443
|
expect(response).toEqual(expectedScimUser)
|