Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update examples 1.7.1 #486

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/Idempotency/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWS.Lambda.Powertools.Idempotency" Version="0.1.0-preview" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Idempotency" Version="0.2.2-preview" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="Testcontainers" Version="3.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="Testcontainers" Version="3.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions examples/Logging/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.2" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.201.12" />
</ItemGroup>
</Project>
10 changes: 5 additions & 5 deletions examples/Logging/test/HelloWorld.Test/HelloWorld.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.201.12" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions examples/Metrics/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.3.3" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.2" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.4.2" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.201.12" />
</ItemGroup>
</Project>
10 changes: 5 additions & 5 deletions examples/Metrics/test/HelloWorld.Test/HelloWorld.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.201.12" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion examples/Parameters/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Parameters" Version="1.1.0" />
<PackageReference Include="AWS.Lambda.Powertools.Parameters" Version="1.1.2" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion examples/Parameters/test/HelloWorld.Test/FunctionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public async Task TestHelloWorldFunctionHandler()

// Act
var function = new Function(helper);
var response = await function.FunctionHandler(request, context).ConfigureAwait(false);
var response = await function.FunctionHandler(request, context);

// Assert
await helper.Received(1).GetSingleParameterWithSsmProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
10 changes: 5 additions & 5 deletions examples/Parameters/test/HelloWorld.Test/ParameterLookupTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public async Task TestGetSingleParameterWithSsmProvider()

// Act
var helper = new ParameterLookupHelper(provider, parameterProviderType);
var result = await helper.GetSingleParameterWithSsmProvider().ConfigureAwait(false);
var result = await helper.GetSingleParameterWithSsmProvider();

// Assert
await provider.Received(1).GetAsync(parameterName);
Expand Down Expand Up @@ -107,7 +107,7 @@ public async Task TestGetMultipleParametersWithSsmProvider()

// Act
var helper = new ParameterLookupHelper(provider, parameterProviderType);
var result = await helper.GetMultipleParametersWithSsmProvider().ConfigureAwait(false);
var result = await helper.GetMultipleParametersWithSsmProvider();

// Assert
await provider.Received(1).GetMultipleAsync(parameterPathPrefix);
Expand Down Expand Up @@ -147,7 +147,7 @@ public async Task TestGetSingleSecretWithSecretsProvider()

// Act
var helper = new ParameterLookupHelper(provider, parameterProviderType);
var result = await helper.GetSingleSecretWithSecretsProvider().ConfigureAwait(false);
var result = await helper.GetSingleSecretWithSecretsProvider();

// Assert
await provider.Received(1).GetAsync<SecretRecord>(secretName);
Expand Down Expand Up @@ -184,7 +184,7 @@ public async Task TestGetSingleParameterWithDynamoDBProvider()

// Act
var helper = new ParameterLookupHelper(provider, parameterProviderType);
var result = await helper.GetSingleParameterWithDynamoDBProvider().ConfigureAwait(false);
var result = await helper.GetSingleParameterWithDynamoDBProvider();

// Assert
await provider.Received(1).GetAsync(dynamoDbHashKey);
Expand Down Expand Up @@ -221,7 +221,7 @@ public async Task TestGetMultipleParametersWithDynamoDBProvider()

// Act
var helper = new ParameterLookupHelper(provider, parameterProviderType);
var result = await helper.GetMultipleParametersWithDynamoDBProvider().ConfigureAwait(false);
var result = await helper.GetMultipleParametersWithDynamoDBProvider();

// Assert
await provider.Received(1).GetMultipleAsync(dynamoDbHashKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.AspNetCoreServer" Version="8.1.0" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.3.3" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.2" />
<PackageReference Include="AWS.Lambda.Powertools.Metrics" Version="1.4.2" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.3.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions examples/Tracing/src/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.6.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.0" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.3.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
<PackageReference Include="AWS.Lambda.Powertools.Logging" Version="1.3.2" />
<PackageReference Include="AWS.Lambda.Powertools.Tracing" Version="1.3.2" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.201.12" />
</ItemGroup>
</Project>
10 changes: 5 additions & 5 deletions examples/Tracing/test/HelloWorld.Test/HelloWorld.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.3.1" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.200.23" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.201.12" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down