如何使用Firebase模拟器通过Firestore触发器测试Java云功能?

时间:2020-07-10 07:24:42

标签: java firebase google-cloud-firestore google-cloud-functions

我正在尝试将Java11运行时用于最近发布的Google云/ firebase函数。我想在我的本地计算机上测试Firestore触发功能。互联网上的指南似乎正在使用命令firebase functions:shell本身启动所需的仿真过程。但是,我找不到任何方法为firebase functions:shell命令指定.jar文件。或以任何方式指定功能。我知道它不会加载我的Java http函数,因为它显示了已加载的函数,而helloWorld不是其中之一:

gintas-mac:functions gintas$ firebase functions:shell
⚠  Your requested "node" version "10" doesn't match your global version "8"
i  functions: Loaded functions: helloWorld
⚠  functions: The following emulators are not running, calls to these services will affect production: firestore, database, pubsub

1 个答案:

答案 0 :(得分:1)

不可能使用Firebase CLI来测试用Java编写的功能。 Firebase仅支持使用nodejs上的firebase-functions模块编写的函数。

相关问题