问题描述
您可以对Azure Logic应用进行自动回归/集成测试吗?
Can you have automated regression/integration tests for Azure Logic Apps?
如果可以的话,怎么办? ...尤其是在CI/CD构建和部署的情况下
And if you can, how? ... especially in the context of CI/CD builds and deployments
...,如果不能,为什么不呢!
推荐答案
尚无任何现成的工具可提供对Azure Logic Apps的自动测试.我们有一些遵循以下模式之一的客户.也有这篇文章详细介绍了如何创建Logic App部署模板:
There isn't any out-of-the-box tooling yet to provide automated testing of Azure Logic Apps. We have a few customers who have followed one of the following patterns. There is also this article that goes into detail on how to create a Logic App deployment template:
- 部署后(使用类似Visual Studio Release Management的发布管理工具),运行一系列的单元测试(用C#编写)以测试Logic App.
由于逻辑应用程序可以具有任何类型的触发器(在队列项上,在HTTP请求上),因此代码通常执行操作并声明结果.
Since a logic app could have any kind of trigger (on queue item, on HTTP request), the code usually performs the action and asserts the result.
- 资源组中的一个逻辑应用程序,可以在工作流程中运行一系列基本测试.这项工作还需要进一步考虑,但是您可以使用一个连接器或调用嵌套应用程序"来执行基本的验证测试(确保连接处于活动状态等)的工作流.
这是我们不时讨论的内容,但是很想知道您是否对要为应用程序配置哪种类型的工具/配置有任何想法(请记住,某些应用程序触发了" ,例如队列中的消息或FTP中的文件).
It's something we have had discussions on from time-to-time, but would love to know if you have any thoughts on what types of tooling/configuration you'd want to configure for an app (remember that some apps "trigger" on something like a message in a queue or a file in FTP).
这篇关于您可以对Azure Logic应用进行自动回归/集成测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!