You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester31-pack.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
<PropertyGroup>
6
6
<OutputType>Exe</OutputType>
7
7
<Description>A tool to help debug and test your .NET Core 3.1 AWS Lambda functions locally.</Description>
Copy file name to clipboardExpand all lines: Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester50-pack.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
<PropertyGroup>
6
6
<OutputType>Exe</OutputType>
7
7
<Description>A tool to help debug and test your .NET 5.0 AWS Lambda functions locally.</Description>
Copy file name to clipboardExpand all lines: Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester60-pack.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
<PropertyGroup>
6
6
<OutputType>Exe</OutputType>
7
7
<Description>A tool to help debug and test your .NET 6.0 AWS Lambda functions locally.</Description>
Copy file name to clipboardExpand all lines: Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester70-pack.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
<PropertyGroup>
6
6
<OutputType>Exe</OutputType>
7
7
<Description>A tool to help debug and test your .NET 7.0 AWS Lambda functions locally.</Description>
runConfiguration.OutputWriter.WriteLine($"... Setting AWS_PROFILE environment variable to {awsProfile}.");
148
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine($"... Setting AWS_PROFILE environment variable to {awsProfile}.");
145
149
}
146
150
else
147
151
{
148
-
runConfiguration.OutputWriter.WriteLine($"... Warning: Profile {awsProfile} not found in the aws credential store.");
152
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine($"... Warning: Profile {awsProfile} not found in the aws credential store.");
149
153
awsProfile=null;
150
154
}
151
155
}
152
156
else
153
157
{
154
-
runConfiguration.OutputWriter.WriteLine("... No profile choosen for AWS credentials. The --profile switch can be used to configure an AWS profile.");
158
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine("... No profile choosen for AWS credentials. The --profile switch can be used to configure an AWS profile.");
runConfiguration.OutputWriter.WriteLine($"... Setting AWS_REGION environment variable to {awsRegion}.");
164
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine($"... Setting AWS_REGION environment variable to {awsRegion}.");
161
165
}
162
166
else
163
167
{
164
-
runConfiguration.OutputWriter.WriteLine("... No default AWS region configured. The --region switch can be used to configure an AWS Region.");
168
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine("... No default AWS region configured. The --region switch can be used to configure an AWS Region.");
165
169
}
166
170
167
171
// Create the execution request that will be sent into the LocalLambdaRuntime.
@@ -178,7 +182,7 @@ public static void ExecuteWithNoUi(LocalLambdaOptions localLambdaOptions, Comman
runConfiguration.OutputWriter.WriteLine($"... Using payload with from the file {payload}");
287
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine($"... Using payload with from the file {payload}");
284
288
payload=File.ReadAllText(payload);
285
289
payloadFileFound=true;
286
290
}
@@ -302,7 +306,7 @@ private static string DeterminePayload(LocalLambdaOptions localLambdaOptions, Co
302
306
{
303
307
if(File.Exists(possiblePath))
304
308
{
305
-
runConfiguration.OutputWriter.WriteLine($"... Using payload with from the file {Path.GetFullPath(possiblePath)}");
309
+
if(!shouldDisableLogs)runConfiguration.OutputWriter.WriteLine($"... Using payload with from the file {Path.GetFullPath(possiblePath)}");
306
310
payload=File.ReadAllText(possiblePath);
307
311
payloadFileFound=true;
308
312
break;
@@ -313,13 +317,16 @@ private static string DeterminePayload(LocalLambdaOptions localLambdaOptions, Co
313
317
314
318
if(!payloadFileFound)
315
319
{
316
-
if(!string.IsNullOrEmpty(payload))
320
+
if(!shouldDisableLogs)
317
321
{
318
-
runConfiguration.OutputWriter.WriteLine($"... Using payload with the value {payload}");
319
-
}
320
-
else
321
-
{
322
-
runConfiguration.OutputWriter.WriteLine("... No payload configured. If a payload is required set the --payload switch to a file path or a JSON document.");
322
+
if(!string.IsNullOrEmpty(payload))
323
+
{
324
+
runConfiguration.OutputWriter.WriteLine($"... Using payload with the value {payload}");
325
+
}
326
+
else
327
+
{
328
+
runConfiguration.OutputWriter.WriteLine("... No payload configured. If a payload is required set the --payload switch to a file path or a JSON document.");
Copy file name to clipboardExpand all lines: Tools/LambdaTestTool/tests/Amazon.Lambda.TestTool.Tests.Shared/NoUiStartupTests.cs
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,13 +96,23 @@ public void NoProfileAndRegion()
96
96
Assert.Contains("No default AWS region configured. The --region switch can be used to configure an AWS Region.",runConfiguration.OutputWriter.ToString());
0 commit comments