From 88b6a41c4193e217b2f404b39f7db83d70efcf8e Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 30 Jul 2024 18:19:26 +0000 Subject: [PATCH] feat(client-cloudwatch-logs): Add v2 smoke tests and smithy smokeTests trait for SDK testing. --- .../aws-models/cloudwatch-logs.json | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/cloudwatch-logs.json b/codegen/sdk-codegen/aws-models/cloudwatch-logs.json index ff44e31cb709..ec025b725892 100644 --- a/codegen/sdk-codegen/aws-models/cloudwatch-logs.json +++ b/codegen/sdk-codegen/aws-models/cloudwatch-logs.json @@ -2325,7 +2325,20 @@ "outputToken": "nextToken", "items": "logGroups", "pageSize": "limit" - } + }, + "smithy.test#smokeTests": [ + { + "id": "DescribeLogGroupsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.cloudwatchlogs#DescribeLogGroupsRequest": { @@ -3946,7 +3959,23 @@ "outputToken": "nextForwardToken", "items": "events", "pageSize": "limit" - } + }, + "smithy.test#smokeTests": [ + { + "id": "GetLogEventsFailure", + "params": { + "logGroupName": "fakegroup", + "logStreamName": "fakestream" + }, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "failure": {} + } + } + ] } }, "com.amazonaws.cloudwatchlogs#GetLogEventsRequest": { @@ -5328,7 +5357,7 @@ "sdkId": "CloudWatch Logs", "arnNamespace": "logs", "cloudFormationName": "Logs", - "cloudTrailEventSource": "cloudwatchlogs.amazonaws.com", + "cloudTrailEventSource": "logs.amazonaws.com", "docId": "logs-2014-03-28", "endpointPrefix": "logs" },