Skip to content

Commit 7b831db

Browse files
committed
chore: Update User-Agent string in Lambda test tool
1 parent 3de6e26 commit 7b831db

File tree

7 files changed

+16
-12
lines changed

7 files changed

+16
-12
lines changed

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<OutputType>Exe</OutputType>
77
<Description>A tool to help debug and test your .NET Core AWS Lambda functions locally.</Description>
88
<LangVersion>Latest</LangVersion>
9-
<VersionPrefix>0.15.1</VersionPrefix>
9+
<VersionPrefix>0.15.2</VersionPrefix>
1010
<Product>AWS .NET Lambda Test Tool</Product>
1111
<Copyright>Apache 2</Copyright>
1212
<PackageTags>AWS;Amazon;Lambda</PackageTags>

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester60-pack.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
77
<Description>A tool to help debug and test your .NET 6.0 AWS Lambda functions locally.</Description>
8-
<VersionPrefix>0.15.1</VersionPrefix>
8+
<VersionPrefix>0.15.2</VersionPrefix>
99
<Product>AWS .NET Lambda Test Tool</Product>
1010
<Copyright>Apache 2</Copyright>
1111
<PackageTags>AWS;Amazon;Lambda</PackageTags>

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester70-pack.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
77
<Description>A tool to help debug and test your .NET 7.0 AWS Lambda functions locally.</Description>
8-
<VersionPrefix>0.15.1</VersionPrefix>
8+
<VersionPrefix>0.15.2</VersionPrefix>
99
<Product>AWS .NET Lambda Test Tool</Product>
1010
<Copyright>Apache 2</Copyright>
1111
<PackageTags>AWS;Amazon;Lambda</PackageTags>

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Amazon.Lambda.TestTool.BlazorTester80-pack.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
77
<Description>A tool to help debug and test your .NET 8.0 AWS Lambda functions locally.</Description>
8-
<VersionPrefix>0.15.1</VersionPrefix>
8+
<VersionPrefix>0.15.2</VersionPrefix>
99
<Product>AWS .NET Lambda Test Tool</Product>
1010
<Copyright>Apache 2</Copyright>
1111
<PackageTags>AWS;Amazon;Lambda</PackageTags>

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool.BlazorTester/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ public class Program
1515
{
1616
public static void Main(string[] args)
1717
{
18-
Environment.SetEnvironmentVariable("AWS_EXECUTION_ENV", "AWS_DOTNET_LAMDBA_TEST_TOOL_BLAZOR_" + Utils.DetermineToolVersion());
18+
var version = Utils.DetermineToolVersion();
19+
// The leading and trailing whitespaces are intentional
20+
var userAgent = $" lib/AWS_DOTNET_LAMDBA_TEST_TOOL_BLAZOR#{version} ";
21+
22+
Environment.SetEnvironmentVariable("AWS_EXECUTION_ENV", userAgent);
1923
TestToolStartup.Startup(Constants.PRODUCT_NAME, (options, showUI) => Startup.LaunchWebTester(options, showUI), args);
2024
}
2125
}

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool/Amazon.Lambda.TestTool.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
13-
<PackageReference Include="AWSSDK.SSO" Version="3.7.200.18" />
14-
<PackageReference Include="AWSSDK.SSOOIDC" Version="3.7.200.18" />
12+
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
13+
<PackageReference Include="AWSSDK.SSO" Version="3.7.300.80" />
14+
<PackageReference Include="AWSSDK.SSOOIDC" Version="3.7.301.75" />
1515
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1616
<PackageReference Include="YamlDotNet.Signed" Version="5.2.1" />
1717

18-
<PackageReference Include="AWSSDK.Core" Version="3.7.200.18" />
19-
<PackageReference Include="AWSSDK.SQS" Version="3.7.200.19" />
18+
<PackageReference Include="AWSSDK.Core" Version="3.7.303.20" />
19+
<PackageReference Include="AWSSDK.SQS" Version="3.7.300.80" />
2020
</ItemGroup>
2121

2222

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool/Utils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static string DetermineToolVersion()
2525
var assembly = Assembly.GetEntryAssembly();
2626
if (assembly == null)
2727
return null;
28-
attribute = Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>();
28+
attribute = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
2929
}
3030
catch (Exception)
3131
{
@@ -35,7 +35,7 @@ public static string DetermineToolVersion()
3535
var version = attribute?.InformationalVersion;
3636

3737
// Check to see if the version has a git commit id suffix and if so remove it.
38-
if (version == null && version.IndexOf('+') != -1)
38+
if (version != null && version.IndexOf('+') != -1)
3939
{
4040
version = version.Substring(0, version.IndexOf('+'));
4141
}

0 commit comments

Comments
 (0)