Skip to content

Commit

Permalink
Updated documentation and metadata and fixed leftovers from .NET6
Browse files Browse the repository at this point in the history
  • Loading branch information
dhelper committed Aug 1, 2024
1 parent ac28a30 commit 69ba2ad
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions dotnet-test-samples/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)

# .NET Test Samples

Expand All @@ -12,7 +12,7 @@ This portion of the repository contains code samples for testing serverless appl
|[Hexagonal Architecture](./hexagonal-architecture)|An example of hexagonal architecture implemented using AWS Lambda with tests.|
|[Kinesis Data Streams](./kinesis-lambda-dynamodb/)|This project contains unit and integration tests for a pattern using Kinesis Data Streams, AWS Lambda and Amazon DynamoDB.|
|[SQS with AWS Lambda and DynamoDb](./sqs-lambda)|This project contains unit and integration tests for AWS Lambda that is invoked by Amazon Simple Queue Service (SQS)|
|[Local testing using containers](./test-containers)|This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 6. It also demonstrates how you can use a local emulated version of DynamoDB to increase the speed of feedback loops as you make changes to your application code.|
|[Local testing using containers](./test-containers)|This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 8. It also demonstrates how you can use a local emulated version of DynamoDB to increase the speed of feedback loops as you make changes to your application code.|
|[Load Testing](./load-testing)|A description of how load testing can be carried out before deploying to production |

## Test Asynchronous Architectures
Expand Down
4 changes: 2 additions & 2 deletions dotnet-test-samples/apigw-lambda-ddb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### Description

This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 6.
This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 8.

Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage. Please see the AWS Pricing page for details. You are responsible for any AWS costs incurred.

Expand Down Expand Up @@ -199,7 +199,7 @@ sam delete
* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured
* [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM) installed
* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed
* [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet) installed

## Video Walkthroughs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "DeleteProduct::DeleteProduct.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "GetProduct::GetProduct.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "GetProducts::GetProducts.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "PutProduct::PutProduct.Function::FunctionHandler"
Expand Down
6 changes: 3 additions & 3 deletions dotnet-test-samples/apigw-lambda-list-s3-buckets/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)]()
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)]()
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-blueviolet)]()
[![Amazon: Api Gateway](https://img.shields.io/badge/Amazon-API%20Gateway-blueviolet)]()
[![Amazon: S3](https://img.shields.io/badge/Amazon-S3-blueviolet)]()
Expand Down Expand Up @@ -40,7 +40,7 @@ The SAM CLI is an extension of the AWS CLI that adds functionality for building
To use the SAM CLI, you need the following tools.

* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
* .NET 6 - [Install .NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
* .NET 8 - [Install .NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)

[[top]](#dotnet-test-samples)
Expand Down Expand Up @@ -508,7 +508,7 @@ Globals:
Function:
# Tracing: PassThrough
Timeout: 10
Runtime: dotnet6
Runtime: dotnet8
Architectures:
- arm64
# Api:
Expand Down
4 changes: 2 additions & 2 deletions dotnet-test-samples/async-lambda-dynamodb/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)]()
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)]()
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-blueviolet)]()
[![Amazon: S3](https://img.shields.io/badge/Amazon-S3-blueviolet)]()
[![Amazon: DynamoDB](https://img.shields.io/badge/Amazon-DynamoDB-blueviolet)]()
Expand Down Expand Up @@ -39,7 +39,7 @@ The SAM CLI is an extension of the AWS CLI that adds functionality for building
To use the SAM CLI, you need the following tools.

- SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
- .NET 6 - [Install .NET 6](https://dotnet.microsoft.com/en-us/download)
- .NET 8 - [Install .NET 8](https://dotnet.microsoft.com/en-us/download)

[[top]](#asynchronous-integration-test-with-lambda-event-listener-and-dynamodb)

Expand Down
4 changes: 2 additions & 2 deletions dotnet-test-samples/async-lambda-sqs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)]()
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)]()
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-blueviolet)]()
[![Amazon: S3](https://img.shields.io/badge/Amazon-S3-blueviolet)]()
[![Amazon: SQS](https://img.shields.io/badge/Amazon-SQS-blueviolet)]()
Expand Down Expand Up @@ -36,7 +36,7 @@ The SAM CLI is an extension of the AWS CLI that adds functionality for building
To use the SAM CLI, you need the following tools.

- SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
- .NET 6 - [Install .NET 6](https://dotnet.microsoft.com/en-us/download)
- .NET 8 - [Install .NET 8](https://dotnet.microsoft.com/en-us/download)

## Build the project

Expand Down
8 changes: 4 additions & 4 deletions dotnet-test-samples/hexagonal-architecture/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-blueviolet)](https://img.shields.io/badge/AWS-Lambda-blueviolet)
[![Amazon: API Gateway](https://img.shields.io/badge/Amazon-API%20Gateway-blueviolet)]()
[![Amazon: DynamoDB](https://img.shields.io/badge/Amazon-DynamoDB-blueviolet)]()
Expand All @@ -23,12 +23,12 @@ In Lambda functions, hexagonal architecture can help you implement new business
### Application description
The example application is a backend web service built using Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. Business logic in the domain layer should be tested with unit tests. Responses from secondary actors via ports should be mocked during unit testing to speed up test execution.

This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 6.
This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET.

**Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage. Please see the AWS Pricing page for details. You are responsible for any AWS costs incurred.**

## Language
.NET 6
.NET 8

## Framework
The framework used to deploy the infrastructure is SAM
Expand Down Expand Up @@ -218,5 +218,5 @@ It uses the [IClassFixture](https://xunit.net/docs/shared-context) feature of [x
* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured
* [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM) installed
* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed
* [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet) installed
* [Fixer.io - 3rd party service to retrieve real-time currencies value for this example](https://fixer.io/)
8 changes: 4 additions & 4 deletions dotnet-test-samples/kinesis-lambda-dynamodb/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-blueviolet)]()
[![AWS: Kinesis](https://img.shields.io/badge/AWS-Kinesis-blueviolet)]()
[![AWS: DynamoDB](https://img.shields.io/badge/Amazon-DynamoDB-blueviolet)]()
Expand All @@ -9,12 +9,12 @@

### Description

This pattern creates an AWS Lambda function that consumes messages from an Amazon Kinesis Data Streams and dumps them to Amazon DynamoDB using SAM and .NET 6.
This pattern creates an AWS Lambda function that consumes messages from an Amazon Kinesis Data Streams and dumps them to Amazon DynamoDB using SAM and .NET.

> **Important:** *This application uses various AWS services and there are costs associated with these services after the Free Tier usage. Please see the AWS Pricing page for details. You are responsible for any AWS costs incurred.*
## Language
.NET 6
.NET 8

## Framework
The framework used to deploy the infrastructure is [SAM](https://aws.amazon.com/serverless/sam)
Expand Down Expand Up @@ -272,4 +272,4 @@ sam delete
* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured
* [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM) installed
* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed
* [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet) installed
2 changes: 1 addition & 1 deletion dotnet-test-samples/kinesis-lambda-dynamodb/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Amazon Kinesis Data Streams with AWS Lambda Function & Amazon DynamoDB",
"description": "This pattern creates an AWS Lambda function that consumes messages from an Amazon Kinesis Data Streams and dumps them to Amazon DynamoDB using SAM and .NET 6.",
"description": "This pattern creates an AWS Lambda function that consumes messages from an Amazon Kinesis Data Streams and dumps them to Amazon DynamoDB using SAM and .NET 8.",
"content_language": "English",
"language": ".NET",
"type": ["Unit", "Integration"],
Expand Down
2 changes: 1 addition & 1 deletion dotnet-test-samples/load-testing/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![.NET: 6.0](https://img.shields.io/badge/.NET-6.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![.NET: 8.0](https://img.shields.io/badge/.NET-8.0-Green)](https://img.shields.io/badge/.NET-6.0-Green)
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-blueviolet)](https://img.shields.io/badge/AWS-Lambda-blueviolet)
[![test: unit](https://img.shields.io/badge/Test-Unit-blue)](https://img.shields.io/badge/Test-Unit-blue)
[![test: integration](https://img.shields.io/badge/Test-Integration-yellow)](https://img.shields.io/badge/Test-Integration-yellow)
Expand Down
8 changes: 4 additions & 4 deletions dotnet-test-samples/sqs-lambda/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Built with: .Net 6](https://img.shields.io/badge/Microsoft-.Net%206-blue?style=plastic&logo=microsoft)](https://learn.microsoft.com/en-us/dotnet/core/introduction)
[![Built with: .Net 8](https://img.shields.io/badge/Microsoft-.Net%208-blue?style=plastic&logo=microsoft)](https://learn.microsoft.com/en-us/dotnet/core/introduction)
[![Amazon: SQS](https://img.shields.io/badge/Amazon-SQS-blueviolet?style=plastic&logo=amazonaws)]()
[![AWS: Lambda](https://img.shields.io/badge/AWS-Lambda-orange?style=plastic&logo=amazonaws)]()
[![AWS: DynamoDB](https://img.shields.io/badge/Amazon-DynamoDB-darkblue?style=plastic&logo=amazonaws)]()
Expand All @@ -9,12 +9,12 @@

### Description

This pattern creates an AWS Lambda function that consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue using SAM and .NET 6.
This pattern creates an AWS Lambda function that consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue using SAM and .NET 8.

> **Important:** *This application uses various AWS services and there are costs associated with these services after the Free Tier usage. Please see the AWS Pricing page for details. You are responsible for any AWS costs incurred.*
## Language
.NET 6
.NET 8

## Framework
The framework used to deploy the infrastructure is [SAM](https://aws.amazon.com/serverless/sam)
Expand Down Expand Up @@ -258,4 +258,4 @@ sam delete
* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured
* [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM) installed
* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed
* [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet) installed
2 changes: 1 addition & 1 deletion dotnet-test-samples/sqs-lambda/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Amazon Simple Queue Service (SQS), AWS Lambda Function & Amazon DynamoDB",
"description": "This project contains an AWS Lambda function that consumes messages from an Amazon Simple Queue Service (Amazon SQS) and inserts them to Amazon DynamoDB using SAM and .NET 6.",
"description": "This project contains an AWS Lambda function that consumes messages from an Amazon Simple Queue Service (Amazon SQS) and inserts them to Amazon DynamoDB using SAM and .NET 8",
"content_language": "English",
"language": ".NET",
"type": ["Unit", "Integration"],
Expand Down
4 changes: 2 additions & 2 deletions dotnet-test-samples/test-containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### Description

This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 6. It also demonstrates how you can use a local emulated version of DynamoDB to increase the speed of feedback loops as you make changes to your application code.
This pattern creates an Amazon API Gateway HTTP API, an AWS Lambda function, and a DynamoDB Table using SAM and .NET 8. It also demonstrates how you can use a local emulated version of DynamoDB to increase the speed of feedback loops as you make changes to your application code.

Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage. Please see the AWS Pricing page for details. You are responsible for any AWS costs incurred.

Expand Down Expand Up @@ -260,7 +260,7 @@ sam delete
* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured
* [Git Installed](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM) installed
* [.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) installed
* [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet) installed
* The ability to run Docker containers

## Video Walkthroughs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "DeleteProduct::DeleteProduct.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<PublishReadyToRun>true</PublishReadyToRun>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "GetProducts::GetProducts.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "PutProduct::PutProduct.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"region": "",
"configuration": "Release",
"function-architecture": "x86_64",
"function-runtime": "dotnet6",
"function-runtime": "dotnet8",
"function-memory-size": 256,
"function-timeout": 30,
"function-handler": "GetProduct::GetProduct.Function::FunctionHandler"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
]
},
"Properties": {
"Runtime": "dotnet6",
"Runtime": "dotnet8",
"CodeUri": ".",
"MemorySize": 256,
"Timeout": 30,
Expand Down Expand Up @@ -41,7 +41,7 @@
]
},
"Properties": {
"Runtime": "dotnet6",
"Runtime": "dotnet8",
"CodeUri": ".",
"MemorySize": 256,
"Timeout": 30,
Expand Down Expand Up @@ -70,7 +70,7 @@
]
},
"Properties": {
"Runtime": "dotnet6",
"Runtime": "dotnet8",
"CodeUri": ".",
"MemorySize": 256,
"Timeout": 30,
Expand Down Expand Up @@ -99,7 +99,7 @@
]
},
"Properties": {
"Runtime": "dotnet6",
"Runtime": "dotnet8",
"CodeUri": ".",
"MemorySize": 256,
"Timeout": 30,
Expand Down

0 comments on commit 69ba2ad

Please sign in to comment.