We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a05e4c commit 9b7a990Copy full SHA for 9b7a990
1 file changed
src/deploy/functions/services/ailogic.spec.ts
@@ -30,6 +30,20 @@ describe("AILogicService", () => {
30
sinon.restore();
31
});
32
33
+ describe("requiredProjectBindings", () => {
34
+ it("should bind the AI logic service account with the Cloud Run invoker role", async () => {
35
+ const bindings = await service.requiredProjectBindings("123456789");
36
+ expect(bindings).to.deep.equal([
37
+ {
38
+ role: "roles/run.invoker",
39
+ members: [
40
+ "serviceAccount:service-123456789@gcp-sa-firebasevertexai.iam.gserviceaccount.com",
41
+ ],
42
+ },
43
+ ]);
44
+ });
45
46
+
47
describe("validateTrigger", () => {
48
it("should throw if two regional triggers of same type in same region", () => {
49
const ep1: backend.Endpoint = {
0 commit comments