【问题标题】:Integration tests with Azure Hybrid Connection使用 Azure 混合连接进行集成测试
【发布时间】:2021-12-17 03:28:58
【问题描述】:

我有一个向本地资源发送 HTTP 请求的 ASP.NET Core Web API。 adding Hybrid Connections to the App Service(在“网络”下)使这成为可能。这很好用。

我添加了调用我的 API 端点的integration tests。当我在 Azure DevOps 管道中运行这些测试时,显然这些本地资源不可用,因为不涉及混合连接。

我可以将WebApplicationFactory 配置为使用混合连接吗?

【问题讨论】:

    标签: azure integration-testing asp.net-core-webapi azure-hybrid-connections


    【解决方案1】:

    我最终改为在自托管代理上运行管道。然后我的本地资源就可用了。

    【讨论】:

      猜你喜欢
      • 2019-07-26
      • 2021-11-19
      • 2020-09-28
      • 1970-01-01
      • 1970-01-01
      • 2019-01-31
      • 2019-05-05
      • 2018-04-13
      • 2013-04-07
      相关资源
      最近更新 更多