Skip to content

Commit 766758e

Browse files
authored
Typo fix (#29)
1 parent 2d336c9 commit 766758e

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

LogicAppUnit.Samples.LogicApps.Tests/testConfiguration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"logging": {
3-
"writeFunctionRuntineStartupLogs": false,
3+
"WriteFunctionRuntimeStartupLogs": false,
44
"WriteMockRequestMatchingLogs": true
55
},
66

LogicAppUnit/Hosting/WorkflowTestHost.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ internal class WorkflowTestHost : IDisposable
3535

3636
/// <c>true</c> if the Functions runtime start-up logs are to be written to the console, otherwise <c>false</c>.
3737
/// The start-up logs can be rather verbose so we don't always went to include this information in the test execution logs.
38-
private readonly bool WriteFunctionRuntineStartupLogsToConsole;
38+
private readonly bool WriteFunctionRuntimeStartupLogsToConsole;
3939

4040
/// <summary>
4141
/// Initializes a new instance of the <see cref="WorkflowTestHost"/> class.
4242
/// </summary>
4343
public WorkflowTestHost(
4444
WorkflowTestInput[] inputs = null,
4545
string localSettings = null, string parameters = null, string connectionDetails = null, string host = null, DirectoryInfo artifactsDirectory = null,
46-
bool writeFunctionRuntineStartupLogsToConsole = false)
46+
bool WriteFunctionRuntimeStartupLogsToConsole = false)
4747
{
4848
this.WorkingDirectory = Path.Combine(Directory.GetCurrentDirectory(), Guid.NewGuid().ToString());
4949
this.OutputData = new List<string>();
5050
this.ErrorData = new List<string>();
51-
this.WriteFunctionRuntineStartupLogsToConsole = writeFunctionRuntineStartupLogsToConsole;
51+
this.WriteFunctionRuntimeStartupLogsToConsole = WriteFunctionRuntimeStartupLogsToConsole;
5252

5353
this.StartFunctionRuntime(inputs, localSettings, parameters, connectionDetails, host, artifactsDirectory);
5454
}
@@ -137,7 +137,7 @@ protected void StartFunctionRuntime(WorkflowTestInput[] inputs, string localSett
137137
{
138138
var outputData = args.Data;
139139

140-
if (WriteFunctionRuntineStartupLogsToConsole || processStarted.Task.IsCompleted)
140+
if (WriteFunctionRuntimeStartupLogsToConsole || processStarted.Task.IsCompleted)
141141
{
142142
Console.WriteLine(outputData);
143143
}

LogicAppUnit/InternalHelper/WorkflowApiHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public CallbackUrlDefinition GetWorkflowCallbackDefinition(string triggerName)
120120
}
121121
catch (HttpRequestException hrex) when (hrex.StatusCode == HttpStatusCode.NotFound)
122122
{
123-
throw new TestException($"The callback endpoint for workflow '{_workflowName}' was not found. This indicates that the Function runtime could not start the workflow. Enable the Function runtime start-up logging using the 'logging.writeFunctionRuntineStartupLogs' option in 'testConfiguration.json'. Then check the logs for any errors.", hrex);
123+
throw new TestException($"The callback endpoint for workflow '{_workflowName}' was not found. This indicates that the Function runtime could not start the workflow. Enable the Function runtime start-up logging using the 'logging.WriteFunctionRuntimeStartupLogs' option in 'testConfiguration.json'. Then check the logs for any errors.", hrex);
124124
}
125125
catch (AggregateException ae)
126126
{

LogicAppUnit/TestConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class TestConfigurationLogging
5555
/// <remarks>
5656
/// Default value is <c>false</c>.
5757
/// </remarks>
58-
public bool WriteFunctionRuntineStartupLogs { get; set; } = false;
58+
public bool WriteFunctionRuntimeStartupLogs { get; set; } = false;
5959

6060
/// <summary>
6161
/// <c>true</c> if the mock request matching logs are to be written to the test execution logs, otherwise <c>false</c>.

LogicAppUnit/TestRunner.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ internal TestRunner(
174174
LoggingHelper.LogBanner("Starting test runner");
175175
//Console.WriteLine($"Max workflow duration: {runnerConfig.MaxWorkflowExecutionDuration} seconds");
176176

177-
if (!loggingConfig.WriteFunctionRuntineStartupLogs)
178-
Console.WriteLine("Logging of the Function runtime startup logs is disabled. This can be enabled using the 'logging.writeFunctionRuntineStartupLogs' option in 'testConfiguration.json'.");
177+
if (!loggingConfig.WriteFunctionRuntimeStartupLogs)
178+
Console.WriteLine("Logging of the Function runtime startup logs is disabled. This can be enabled using the 'logging.WriteFunctionRuntimeStartupLogs' option in 'testConfiguration.json'.");
179179

180180
_client = client;
181181
_workflowDefinition = workflowDefinition;
182182
_runnerConfig = runnerConfig;
183183

184184
var workflowTestInput = new WorkflowTestInput[] { new WorkflowTestInput(workflowDefinition.WorkflowName, workflowDefinition.ToString()) };
185-
_workflowTestHost = new WorkflowTestHost(workflowTestInput, localSettings.ToString(), parameters, connections.ToString(), host, artifactsDirectory, loggingConfig.WriteFunctionRuntineStartupLogs);
185+
_workflowTestHost = new WorkflowTestHost(workflowTestInput, localSettings.ToString(), parameters, connections.ToString(), host, artifactsDirectory, loggingConfig.WriteFunctionRuntimeStartupLogs);
186186
_apiHelper = new WorkflowApiHelper(client, workflowDefinition.WorkflowName);
187187

188188
// Create the mock definition and mock HTTP host

0 commit comments

Comments
 (0)