Skip to content

Commit 1907275

Browse files
authored
Changes for 1.12.0.
1 parent bba90ac commit 1907275

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

ChangeLog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 1.12.0 (18th July 2025)
2+
3+
LogicAppUnit Testing Framework:
4+
5+
- HTTP actions with the authentication type set to `ManagedServiceIdentity` are updated to use the `None` authentication type. [[Issue #49](https://github.com/LogicAppUnit/TestingFramework/issues/49)], [[Issue #50](https://github.com/LogicAppUnit/TestingFramework/issues/50)] and [[PR #51](https://github.com/LogicAppUnit/TestingFramework/pull/51), [@ronaldbosma ](https://github.com/ronaldbosma)]
6+
7+
8+
LogicAppUnit.Samples.LogicApps.Tests:
9+
10+
- Added a `http-with-managed-identity-workflow` workflow and unit test to test a workflow that includes a HTTP action with the authentication type set to `ManagedServiceIdentity`.
11+
12+
113
# 1.11.0 (11th April 2025)
214

315
LogicAppUnit Testing Framework:

src/LogicAppUnit.Samples.LogicApps.Tests/HttpWithManagedIdentityWorkflow/HttpWithManagedIdentityWorkflowTest.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
1+
using LogicAppUnit.Mocking;
2+
using Microsoft.VisualStudio.TestTools.UnitTesting;
43
using System.Net;
54
using System.Net.Http;
6-
using System.Text;
7-
using System.Threading.Tasks;
8-
using LogicAppUnit.Helper;
9-
using LogicAppUnit.Mocking;
10-
using Microsoft.VisualStudio.TestTools.UnitTesting;
115

126
namespace LogicAppUnit.Samples.LogicApps.Tests.HttpWithManagedIdentityWorkflow
137
{

src/LogicAppUnit/LogicAppUnit.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<RootNamespace>LogicAppUnit</RootNamespace>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7-
<Version>1.11.0</Version>
7+
<Version>1.12.0</Version>
88
<Title>Logic App Unit Testing Framework</Title>
99
<Description>Unit testing framework for Standard Logic Apps.</Description>
1010
<RepositoryUrl>https://github.com/LogicAppUnit/TestingFramework</RepositoryUrl>

src/LogicAppUnit/Wrapper/WorkflowDefinitionWrapper.cs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,10 @@ public void ReplaceBuiltInConnectorActionsWithHttp(List<string> builtInConnector
244244
/// </remarks>
245245
public void RemoveHttpChunkingConfiguration()
246246
{
247-
var httpActionsWithChunking = _jObjectWorkflow.SelectTokens("$..actions.*").Where(x => x["type"].ToString() == "Http")
248-
.Where(x => x["runtimeConfiguration"]?["contentTransfer"]?["transferMode"].ToString() == "Chunked").Select(x => x["runtimeConfiguration"] as JObject).ToList();
247+
var httpActionsWithChunking = _jObjectWorkflow.SelectTokens("$..actions.*")
248+
.Where(x => x["type"].ToString() == "Http")
249+
.Where(x => x["runtimeConfiguration"]?["contentTransfer"]?["transferMode"].ToString() == "Chunked")
250+
.Select(x => x["runtimeConfiguration"] as JObject).ToList();
249251

250252
if (httpActionsWithChunking.Count > 0)
251253
{
@@ -266,7 +268,9 @@ public void RemoveHttpChunkingConfiguration()
266268
/// </summary>
267269
public void ReplaceCallLocalFunctionActionsWithHttp()
268270
{
269-
var callLocalFunctionActions = _jObjectWorkflow.SelectTokens("$..actions.*").Where(x => x["type"].ToString() == "InvokeFunction").Select(x => x as JObject).ToList();
271+
var callLocalFunctionActions = _jObjectWorkflow.SelectTokens("$..actions.*")
272+
.Where(x => x["type"].ToString() == "InvokeFunction")
273+
.Select(x => x as JObject).ToList();
270274

271275
if (callLocalFunctionActions.Count > 0)
272276
{
@@ -305,8 +309,10 @@ public void ReplaceCallLocalFunctionActionsWithHttp()
305309
/// </remarks>
306310
public void ReplaceManagedIdentityAuthenticationTypeWithNone()
307311
{
308-
var httpActionsWithManagedIdentityAuthenticationType = _jObjectWorkflow.SelectTokens("$..actions.*").Where(x => x["type"].ToString() == "Http")
309-
.Where(x => x["inputs"]?["authentication"]?["type"].ToString() == "ManagedServiceIdentity").Select(x => x["inputs"]?["authentication"] as JObject).ToList();
312+
var httpActionsWithManagedIdentityAuthenticationType = _jObjectWorkflow.SelectTokens("$..actions.*")
313+
.Where(x => x["type"].ToString() == "Http")
314+
.Where(x => x["inputs"]?["authentication"]?["type"].ToString() == "ManagedServiceIdentity")
315+
.Select(x => x["inputs"]?["authentication"] as JObject).ToList();
310316

311317
if (httpActionsWithManagedIdentityAuthenticationType.Count > 0)
312318
{

0 commit comments

Comments
 (0)