CloudWatch: Use context in aws GetLogGroupFieldsWithContext (#77174)

This commit is contained in:
Shabeeb Khalid
2023-10-30 21:14:18 +02:00
committed by GitHub
parent 468d000979
commit abebcf4385
8 changed files with 25 additions and 19 deletions

View File

@@ -221,7 +221,7 @@ func Test_CloudWatch_CallResource_Integration_Test(t *testing.T) {
t.Run("Should handle log group fields request", func(t *testing.T) {
logApi = mocks.LogsAPI{}
logApi.On("GetLogGroupFields", mock.Anything).Return(&cloudwatchlogs.GetLogGroupFieldsOutput{
logApi.On("GetLogGroupFieldsWithContext", mock.Anything).Return(&cloudwatchlogs.GetLogGroupFieldsOutput{
LogGroupFields: []*cloudwatchlogs.LogGroupField{
{
Name: aws.String("field1"),