Commit 1d11205
committed
fix ListTagsForResource ARN and harden autodiscover tag test
DescribeLogGroups returns two ARN fields for each log group. The Arn field
carries the log-stream wildcard suffix ":*", while LogGroupArn is documented
by the AWS SDK as the value to use for tagging APIs. ListTagsForResource
rejects the ":*" form with a ValidationException, so tag-based autodiscovery
fails at runtime against real AWS despite the unit test passing with a
non-realistic mock ARN.
Switch to lg.LogGroupArn, update the test mock to include both fields, and
tighten the assertion so a log group whose tags do not match is verified to
be excluded from FilterLogEvents rather than only checking that some record
flowed.
Rename the chloggen entry to match the surrounding naming convention.1 parent d1a6a92 commit 1d11205
3 files changed
Lines changed: 11 additions & 4 deletions
File tree
- .chloggen
- receiver/awscloudwatchreceiver
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
1006 | | - | |
| 1006 | + | |
| 1007 | + | |
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
1010 | | - | |
| 1011 | + | |
| 1012 | + | |
1011 | 1013 | | |
1012 | 1014 | | |
1013 | 1015 | | |
| |||
1047 | 1049 | | |
1048 | 1050 | | |
1049 | 1051 | | |
1050 | | - | |
| 1052 | + | |
1051 | 1053 | | |
1052 | 1054 | | |
1053 | 1055 | | |
1054 | 1056 | | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
1055 | 1062 | | |
1056 | 1063 | | |
1057 | 1064 | | |
| |||
0 commit comments