@budibase/worker 2.4.42-alpha.1 → 2.4.42-alpha.2
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.42-alpha.
|
|
4
|
+
"version": "2.4.42-alpha.2",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Budibase",
|
|
37
37
|
"license": "GPL-3.0",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@budibase/backend-core": "2.4.42-alpha.
|
|
40
|
-
"@budibase/pro": "2.4.42-alpha.
|
|
41
|
-
"@budibase/string-templates": "2.4.42-alpha.
|
|
42
|
-
"@budibase/types": "2.4.42-alpha.
|
|
39
|
+
"@budibase/backend-core": "2.4.42-alpha.2",
|
|
40
|
+
"@budibase/pro": "2.4.42-alpha.1",
|
|
41
|
+
"@budibase/string-templates": "2.4.42-alpha.2",
|
|
42
|
+
"@budibase/types": "2.4.42-alpha.2",
|
|
43
43
|
"@koa/router": "8.0.8",
|
|
44
44
|
"@sentry/node": "6.17.7",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"typescript": "4.7.3",
|
|
102
102
|
"update-dotenv": "1.1.1"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "4fe26031c5fed1bafd904d365e853e2f034dee52"
|
|
105
105
|
}
|
|
@@ -7,6 +7,7 @@ export const fetch = async (ctx: BBContext) => {
|
|
|
7
7
|
cloud: !env.SELF_HOSTED,
|
|
8
8
|
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
|
|
9
9
|
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
|
10
|
+
baseUrl: env.PLATFORM_URL,
|
|
10
11
|
// in test need to pretend its in production for the UI (Cypress)
|
|
11
12
|
isDev: env.isDev() && !env.isTest(),
|
|
12
13
|
}
|
|
@@ -58,17 +58,4 @@ describe("/api/global/tenants", () => {
|
|
|
58
58
|
expect(res.body).toEqual(config.adminOnlyResponse())
|
|
59
59
|
})
|
|
60
60
|
})
|
|
61
|
-
|
|
62
|
-
describe("GET /api/system/tenants/:tenantId/info", () => {
|
|
63
|
-
it("allows retrieving information about the tenant", async () => {
|
|
64
|
-
const user1 = await config.createTenant()
|
|
65
|
-
const res = await config.api.tenants.info(user1.tenantId)
|
|
66
|
-
expect(res.body.exists).toEqual(true)
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
it("check a tenant that doesn't exist", async () => {
|
|
70
|
-
const res = await config.api.tenants.info("cannot-exist-tenantid")
|
|
71
|
-
expect(res.body.exists).toEqual(false)
|
|
72
|
-
})
|
|
73
|
-
})
|
|
74
61
|
})
|
package/src/tests/api/tenants.ts
CHANGED
|
@@ -14,11 +14,4 @@ export class TenantAPI extends TestAPI {
|
|
|
14
14
|
.set(opts?.headers)
|
|
15
15
|
.expect(opts?.status ? opts.status : 204)
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
info = (tenantId: string) => {
|
|
19
|
-
return this.request
|
|
20
|
-
.get(`/api/system/tenants/${tenantId}/info`)
|
|
21
|
-
.set(this.config.defaultHeaders())
|
|
22
|
-
.expect(200)
|
|
23
|
-
}
|
|
24
17
|
}
|