Skip to content

Commit 40a69b3

Browse files
authored
Changes for 1.7.0.
1 parent 4a46f93 commit 40a69b3

File tree

67 files changed

+3244
-506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3244
-506
lines changed

.azure-devops/pipelines/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Manual trigger only
22
trigger: none
3+
pr: none
34

45
parameters:
56
- name: buildConfiguration
@@ -67,12 +68,6 @@ jobs:
6768
inputs:
6869
version: 'latest'
6970

70-
# - task: Npm@1
71-
# displayName: 'Install Functions core tools (npm install)'
72-
# inputs:
73-
# command: 'custom'
74-
# customCommand: 'install -g azure-functions-core-tools@4 --unsafe-perm true'
75-
7671
- task: CmdLine@2
7772
displayName: 'Check Functions Core tools installation'
7873
inputs:

ChangeLog.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# 1.7.0 (27th July 2023)
2+
3+
LogicAppUnit Testing Framework:
4+
5+
- Mock responses can be configured using a fluent API, this includes the definition of the request matching conditions and the response.
6+
- Removed public methods `ContentHelper.SerializeObject()`, `ContentHelper.DeserializeObject()` and `ContentHelper.JClone()`, these were for internal use only and are now obsolete.
7+
- Include the LogicAppUnit version at the end of the test log.
8+
- The maximum execution time for a workflow can now be set in the `testConfiguration.json` file using the `runner.maxWorkflowExecutionDuration` option. Previously this duration was hard-coded to 5 minutes. The default value for this option is 300 seconds (5 minutes).
9+
- Improved the logic that locates the Azure Functions runtime executable (`func.exe`) when running on a Windows platform. Previous versions of the framework used the PATH environment variable in the `Machine` scope which caused issues when tests were running in an Azure DevOps pipeline (because the `FuncToolsInstaller@0` task adds the path for `func.exe` to the PATH environment variable in the `Process` scope). Now the framework combines the PATH environment variables for the `Machine`, `Process` and `User` scopes to ensure that all possible paths are checked. [[PR #20](https://github.com/LogicAppUnit/TestingFramework/pull/20), [@AlexanderDobrescu](https://github.com/AlexanderDobrescu) and [PR #21](https://github.com/LogicAppUnit/TestingFramework/pull/21), [@danielduartemindera](https://github.com/danielduartemindera)]
10+
11+
LogicAppUnit.Samples.LogicApps.Tests:
12+
13+
- Added a `fluent-workflow` workflow and unit tests to demonstrate the use of the fluent API.
14+
15+
116
# 1.6.0 (5th June 2023)
217

318
LogicAppUnit Testing Framework:
@@ -12,7 +27,7 @@ LogicAppUnit Testing Framework:
1227

1328
LogicAppUnit.Samples.LogicApps.Tests:
1429

15-
- Added an `HttpAsyncWorkflowTest` workflow and unit tests to demonstrate the use of the testing framework with HTTP triggers and asynchronous responses.
30+
- Added a `http-async-workflow` workflow and unit tests to demonstrate the use of the testing framework with HTTP triggers and asynchronous responses.
1631

1732
Thanks to [@easchi](https://github.com/eashi) and [@atthevergeof](https://github.com/atthevergeof) for their contributions.
1833

@@ -28,7 +43,7 @@ LogicAppUnit Testing Framework:
2843

2944
LogicAppUnit.Samples.LogicApps.Tests:
3045

31-
- Added an `InvokeWorkflowTest` workflow and unit tests to demonstrate the use of the testing framework with child workflows that are invoked from a parent workflow.
46+
- Added an `invoke-workflow` workflow and unit tests to demonstrate the use of the testing framework with child workflows that are invoked from a parent workflow.
3247

3348

3449
# 1.4.0 (21st February 2023)
@@ -48,7 +63,7 @@ LogicAppUnit Testing Framework:
4863

4964
LogicAppUnit.Samples.LogicApps.Tests:
5065

51-
- Updated the `HttpWorkflowTest` workflow and unit tests to include tracked properties.
66+
- Updated the `http-workflow` workflow and unit tests to include tracked properties.
5267

5368

5469
# 1.2.0 (9th January 2023)
@@ -62,7 +77,7 @@ LogicAppUnit Testing Framework:
6277

6378
LogicAppUnit.Samples.LogicApps.Tests:
6479

65-
- Added a `LoopWorkflowTest` workflow and unit tests to demonstrate the use of the testing framework with a workflow containing actions in an `Until` loop and a `ForEach` loop.
80+
- Added a `loop-workflow` workflow and unit tests to demonstrate the use of the testing framework with a workflow containing actions in an `Until` loop and a `ForEach` loop.
6681

6782

6883
# 1.1.0 (16th December 2022)
@@ -81,7 +96,7 @@ LogicAppUnit Testing Framework:
8196

8297
LogicAppUnit.Samples.LogicApps.Tests:
8398

84-
- Added a `StatelessWorkflowTest` workflow and unit tests to demonstrate the use of the testing framework with a stateless workflow, a custom client tracking id and a relative path configured in the HTTP trigger.
99+
- Added a `stateless-workflow` workflow and unit tests to demonstrate the use of the testing framework with a stateless workflow, a custom client tracking id and a relative path configured in the HTTP trigger.
85100

86101

87102
# 1.0.0 (9th December 2022)

LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflowTest/BuiltInConnectorWorkflowTest.cs renamed to LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflow/BuiltInConnectorWorkflowTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
using System.Net;
55
using System.Net.Http;
66

7-
namespace LogicAppUnit.Samples.LogicApps.Tests.BuiltInConnectorWorkflowTest
7+
namespace LogicAppUnit.Samples.LogicApps.Tests.BuiltInConnectorWorkflow
88
{
99
/// <summary>
10-
/// Test cases for the <i>built-in-connector-test-workflow</i> workflow.
10+
/// Test cases for the <i>built-in-connector-workflow</i> workflow.
1111
/// </summary>
1212
[TestClass]
1313
public class BuiltInConnectorWorkflowTest : WorkflowTestBase

LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflowTest/MockData/SQL_Request_en_GB.json renamed to LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflow/MockData/SQL_Request_en_GB.json

File renamed without changes.

LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflowTest/MockData/SQL_Request_xx_GB.json renamed to LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflow/MockData/SQL_Request_xx_GB.json

File renamed without changes.

LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflowTest/MockData/ServiceBus_Request_LanguageCode.json renamed to LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflow/MockData/ServiceBus_Request_LanguageCode.json

File renamed without changes.

LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflowTest/MockData/ServiceBus_Request_NoLanguageCode.json renamed to LogicAppUnit.Samples.LogicApps.Tests/BuiltInConnectorWorkflow/MockData/ServiceBus_Request_NoLanguageCode.json

File renamed without changes.

LogicAppUnit.Samples.LogicApps.Tests/Constants.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ public static class Constants
99
public static readonly string LOGIC_APP_TEST_EXAMPLE_BASE_PATH = "../../../../LogicAppUnit.Samples.LogicApps";
1010

1111
// Workflows
12-
public static readonly string BUILT_IN_CONNECTOR_WORKFLOW = "built-in-connector-test-workflow";
13-
public static readonly string HTTP_WORKFLOW = "http-test-workflow";
14-
public static readonly string HTTP_ASYNC_WORKFLOW = "http-async-test-workflow";
15-
public static readonly string INVOKE_WORKFLOW = "invoke-test-workflow";
16-
public static readonly string LOOP_WORKFLOW = "loop-test-workflow";
17-
public static readonly string MANAGED_API_CONNECTOR_WORKFLOW = "managed-api-connector-test-workflow";
18-
public static readonly string STATELESS_WORKFLOW = "stateless-test-workflow";
12+
public static readonly string BUILT_IN_CONNECTOR_WORKFLOW = "built-in-connector-workflow";
13+
public static readonly string FLUENT_REQUEST_MATCHING_WORKFLOW = "fluent-workflow";
14+
public static readonly string HTTP_WORKFLOW = "http-workflow";
15+
public static readonly string HTTP_ASYNC_WORKFLOW = "http-async-workflow";
16+
public static readonly string INVOKE_WORKFLOW = "invoke-workflow";
17+
public static readonly string LOOP_WORKFLOW = "loop-workflow";
18+
public static readonly string MANAGED_API_CONNECTOR_WORKFLOW = "managed-api-connector-workflow";
19+
public static readonly string STATELESS_WORKFLOW = "stateless-workflow";
1920
}
2021
}

0 commit comments

Comments
 (0)