From e0f97df5f4ad7d737c7dbaf0d85187929da136c7 Mon Sep 17 00:00:00 2001 From: David Souther Date: Thu, 2 Nov 2023 15:48:25 -0400 Subject: [PATCH] Rust: Add Testing cross-content entry. --- .doc_gen/metadata/cross_metadata.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.doc_gen/metadata/cross_metadata.yaml b/.doc_gen/metadata/cross_metadata.yaml index 6c29f5682e0..a9396e337d2 100644 --- a/.doc_gen/metadata/cross_metadata.yaml +++ b/.doc_gen/metadata/cross_metadata.yaml @@ -707,4 +707,24 @@ cross_FMPlayground: service_main: bedrock-runtime services: bedrock-runtime: - +cross_Testing: + title: Example approaches for unit and integration testing an &AWS; SDK. + title_abbrev: Unit and integration test with an SDK + synopsis: examples for best-practice techniques when writing unit and integration tests using an &AWS; SDK. + languages: + Rust: + versions: + - sdk_version: 1 + github: rust_dev_preview/examples/testing + excerpts: + - description: Cargo.toml for testing examples + snippet_files: + - rust_dev_preview/examples/testing/Cargo.toml + - description: Unit testing example using automock and a service wrapper. + snippet_files: + - rust_dev_preview/examples/testing/src/wrapper.rs + - description: Integration testing example using StaticReplayClient. + snippet_files: + - rust_dev_preview/examples/testing/src/replay.rs + services: + s3: