Skip to content

Commit

Permalink
adding windows 2025 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Dec 17, 2024
1 parent ed779d3 commit 73723e9
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 0 deletions.
21 changes: 21 additions & 0 deletions generator/resources/ec2_windows_performance_test_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,26 @@
"arc": "amd64",
"valuesPerMinute": 5000,
"family": "windows"
},
{
"os": "win-2025",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 100,
"family": "windows"
},
{
"os": "win-2022",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 1000,
"family": "windows"
},
{
"os": "win-2022",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 5000,
"family": "windows"
}
]
28 changes: 28 additions & 0 deletions generator/resources/ec2_windows_stress_test_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,33 @@
"arc": "amd64",
"valuesPerMinute": 50000,
"family": "windows"
},
{
"os": "win-2025",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 1000,
"family": "windows"
},
{
"os": "win-2025",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 5000,
"family": "windows"
},
{
"os": "win-2025",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 10000,
"family": "windows"
},
{
"os": "win-2025",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"arc": "amd64",
"valuesPerMinute": 50000,
"family": "windows"
}
]
12 changes: 12 additions & 0 deletions generator/resources/ec2_windows_test_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@
"instanceType":"t3a.medium",
"ami": "cloudwatch-agent-integration-test-win-2022*",
"useSSM": true
},
{
"os": "win-2025",
"instanceType":"t3a.medium",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"useSSM": false
},
{
"os": "win-2025",
"instanceType":"t3a.medium",
"ami": "cloudwatch-agent-integration-test-win-2025*",
"useSSM": true
}
]
5 changes: 5 additions & 0 deletions generator/test_case_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ var testTypeToTestConfig = map[string][]testConfig{
terraformDir: "terraform/eks/daemon/windows/2022",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{
testDir: "./test/metric_value_benchmark",
terraformDir: "terraform/eks/daemon/windows/2025",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{
testDir: "./test/statsd", terraformDir: "terraform/eks/daemon/statsd",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
Expand Down
14 changes: 14 additions & 0 deletions terraform/eks/daemon/windows/2025/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT

module "windows" {
source = "../"
windows_ami_type = var.windows_ami_type
windows_os_version = var.windows_os_version
test_dir = var.test_dir
ami_type = var.ami_type
instance_type = var.instance_type
k8s_version = var.k8s_version
cwagent_image_repo = var.cwagent_image_repo
cwagent_image_tag = var.cwagent_image_tag
}
47 changes: 47 additions & 0 deletions terraform/eks/daemon/windows/2025/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT

variable "region" {
type = string
default = "us-west-2"
}

variable "test_dir" {
type = string
default = "./test/metric_value_benchmark"
}

variable "cwagent_image_repo" {
type = string
default = "public.ecr.aws/cloudwatch-agent/cloudwatch-agent"
}

variable "cwagent_image_tag" {
type = string
default = "latest"
}

variable "k8s_version" {
type = string
default = "1.24"
}

variable "ami_type" {
type = string
default = "AL2_x86_64"
}

variable "instance_type" {
type = string
default = "t3a.medium"
}

variable "windows_ami_type" {
type = string
default = "WINDOWS_CORE_2025_x86_64"
}

variable "windows_os_version" {
type = string
default = "2025"
}

0 comments on commit 73723e9

Please sign in to comment.