Skip to content

Commit

Permalink
Have the config files match changes
Browse files Browse the repository at this point in the history
  • Loading branch information
varunch77 committed Jan 24, 2025
1 parent 5ae23eb commit 6293de5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/cloudwatchlogs/publish_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func TestLogGroupClass(t *testing.T) {

for _, param := range cloudWatchLogGroupClassTestParameters {
t.Run(param.testName, func(t *testing.T) {
// add instance id to ensure that running integration tests concurrently doesn't cause tests
// to operate and validate with the same log groups and lead to flaky results
param.logGroupName += "-" + instanceId
defer awsservice.DeleteLogGroupAndStream(param.logGroupName, instanceId)
common.DeleteFile(common.AgentLogFile)
common.TouchFile(common.AgentLogFile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"collect_list": [
{
"file_path": "/tmp/cwagent_log_test.log",
"log_group_name": "infrequent_access",
"log_group_name": "infrequent_access-{instance_id}",
"log_stream_name": "{instance_id}",
"timezone": "UTC",
"log_group_class": "INFREQUENT_ACCESS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"collect_list": [
{
"file_path": "/tmp/cwagent_log_test.log",
"log_group_name": "standard-no-specification",
"log_group_name": "standard-no-specification-{instance_id}",
"log_stream_name": "{instance_id}",
"timezone": "UTC"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"collect_list": [
{
"file_path": "/tmp/cwagent_log_test.log",
"log_group_name": "standard-with-specification",
"log_group_name": "standard-with-specification-{instance_id}",
"log_stream_name": "{instance_id}",
"timezone": "UTC",
"log_group_class": "STANDARD"
Expand Down

0 comments on commit 6293de5

Please sign in to comment.