From a1e5b178413c8eddd7f8121882c7d9719190e50a Mon Sep 17 00:00:00 2001 From: David Souther Date: Tue, 7 Nov 2023 14:43:02 -0500 Subject: [PATCH] Rust: Add Testing cross-content entry (#5608) * 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..8520fb42421 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 with 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: