We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be02ebd commit cef854fCopy full SHA for cef854f
1 file changed
src/deploy/functions/release/fabricator.spec.ts
@@ -1805,6 +1805,28 @@ describe("Fabricator", () => {
1805
}),
1806
);
1807
});
1808
+
1809
+ it("always sets callable triggers to public on creation", async () => {
1810
+ runv2.createService.resolves({ uri: "https://service", name: "service" } as any);
1811
+ run.setInvokerCreate.resolves();
1812
1813
+ const ep = endpoint(
1814
+ { callableTrigger: {} },
1815
+ {
1816
+ platform: "run",
1817
+ baseImageUri: "gcr.io/base",
1818
+ command: ["cmd"],
1819
+ args: ["arg"],
1820
+ },
1821
+ );
1822
+ await fab.createRunFunction(ep);
1823
1824
+ expect(run.setInvokerCreate).to.have.been.calledWith(
1825
+ ep.project,
1826
+ sinon.match.string,
1827
+ ["public"],
1828
1829
+ });
1830
1831
1832
describe("updateRunFunction", () => {
0 commit comments