@budibase/worker 2.20.7 → 2.20.11
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.20.
|
|
4
|
+
"version": "2.20.11",
|
|
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.20.
|
|
41
|
-
"@budibase/pro": "2.20.
|
|
42
|
-
"@budibase/string-templates": "2.20.
|
|
43
|
-
"@budibase/types": "2.20.
|
|
40
|
+
"@budibase/backend-core": "2.20.11",
|
|
41
|
+
"@budibase/pro": "2.20.11",
|
|
42
|
+
"@budibase/string-templates": "2.20.11",
|
|
43
|
+
"@budibase/types": "2.20.11",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "10a2470d89088ff359dfddf62b1af42cdf996002"
|
|
112
112
|
}
|
package/scripts/test.sh
CHANGED
|
@@ -4,10 +4,10 @@ set -e
|
|
|
4
4
|
if [[ -n $CI ]]
|
|
5
5
|
then
|
|
6
6
|
# Running in ci, where resources are limited
|
|
7
|
-
echo "jest --coverage --maxWorkers=2 --forceExit --bail"
|
|
8
|
-
jest --coverage --maxWorkers=2 --forceExit --bail
|
|
7
|
+
echo "jest --coverage --maxWorkers=2 --forceExit --bail $@"
|
|
8
|
+
jest --coverage --maxWorkers=2 --forceExit --bail $@
|
|
9
9
|
else
|
|
10
10
|
# --maxWorkers performs better in development
|
|
11
|
-
echo "jest --coverage --maxWorkers=2 --forceExit"
|
|
12
|
-
jest --coverage --maxWorkers=2 --forceExit
|
|
11
|
+
echo "jest --coverage --maxWorkers=2 --forceExit $@"
|
|
12
|
+
jest --coverage --maxWorkers=2 --forceExit $@
|
|
13
13
|
fi
|
|
@@ -654,6 +654,26 @@ describe("scim", () => {
|
|
|
654
654
|
totalResults: groupCount,
|
|
655
655
|
})
|
|
656
656
|
})
|
|
657
|
+
|
|
658
|
+
it("can fetch groups even if internal groups exist", async () => {
|
|
659
|
+
mocks.licenses.useGroups()
|
|
660
|
+
await config.api.groups.saveGroup(structures.userGroups.userGroup())
|
|
661
|
+
await config.api.groups.saveGroup(structures.userGroups.userGroup())
|
|
662
|
+
|
|
663
|
+
const response = await getScimGroups()
|
|
664
|
+
|
|
665
|
+
expect(response).toEqual({
|
|
666
|
+
Resources: expect.arrayContaining(groups),
|
|
667
|
+
itemsPerPage: 25,
|
|
668
|
+
schemas: ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
|
|
669
|
+
startIndex: 1,
|
|
670
|
+
totalResults: groupCount,
|
|
671
|
+
})
|
|
672
|
+
|
|
673
|
+
expect((await config.api.groups.fetch()).body.data).toHaveLength(
|
|
674
|
+
25 + 2 // scim groups + internal groups
|
|
675
|
+
)
|
|
676
|
+
})
|
|
657
677
|
})
|
|
658
678
|
})
|
|
659
679
|
|
package/src/tests/api/groups.ts
CHANGED
|
@@ -53,4 +53,12 @@ export class GroupsAPI extends TestAPI {
|
|
|
53
53
|
.expect("Content-Type", /json/)
|
|
54
54
|
.expect(200)
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
fetch = ({ expect } = { expect: 200 }) => {
|
|
58
|
+
return this.request
|
|
59
|
+
.get(`/api/global/groups`)
|
|
60
|
+
.set(this.config.defaultHeaders())
|
|
61
|
+
.expect("Content-Type", /json/)
|
|
62
|
+
.expect(expect)
|
|
63
|
+
}
|
|
56
64
|
}
|