Skip to content
Snippets Groups Projects
Commit f2bdab43 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

minor code improvments

parent e736e5cf
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!85Introduce new Benchmark class and Patcher,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
This commit is part of merge request !83. Comments created here will be created in the context of that merge request.
......@@ -20,23 +20,23 @@ execution:
configOverrides:
- patcher:
type: "NodeSelectorPatcher"
resource: "workloadGenerator.yaml"
resource: "uc1-load-generator-deployment.yaml"
variableName: "env"
value: "prod"
- patcher:
type: "NodeSelectorPatcher"
resource: "aggregation-deployment.yaml"
resource: "uc1-kstreams-deployment.yaml"
variableName: "env"
value: "prod"
- patcher:
type: "ResourceLimitPatcher"
resource: "aggregation-deployment.yaml"
resource: "uc1-kstreams-deployment.yaml"
container: "uc-application"
variableName: "cpu"
value: "50m"
- patcher:
type: "ResourceLimitPatcher"
resource: "aggregation-deployment.yaml"
resource: "uc1-kstreams-deployment.yaml"
container: "uc-application"
variableName: "memory"
value: "2Gi"
\ No newline at end of file
name: "theodolite ist cool"
appResource:
- "aggregation-deployment.yaml"
- "uc1-kstreams-deployment.yaml"
- "aggregation-service.yaml"
- "jmx-configmap.yaml"
loadGenResource:
- "workloadGenerator.yaml"
- "uc1-load-generator-deployment.yaml"
resourceTypes:
- typeName: "Instances"
patchers:
- type: "ReplicaPatcher"
resource: "aggregation-deployment.yaml"
resource: "uc1-kstreams-deployment.yaml"
loadTypes:
- typeName: "NumSensors"
patchers:
- type: "EnvVarPatcher"
resource: "workloadGenerator.yaml"
resource: "uc1-load-generator-deployment.yaml"
container: "workload-generator"
variableName: "NUM_SENSORS"
kafkaConfig:
......
......@@ -62,25 +62,25 @@ class ResourceLimitPatcherTest {
}
@Test
fun case1() {
fun testWithExistingCpuAndMemoryDeclarations() {
// Case 1: In the given YAML declaration memory and cpu are defined
applyTest("cpu-memory-deployment.yaml")
}
@Test
fun case2() {
fun testOnlyWithExistingCpuDeclarations() {
// Case 2: In the given YAML declaration only cpu is defined
applyTest("cpu-deployment.yaml")
}
@Test
fun case3() {
fun testOnlyWithExistingMemoryDeclarations() {
// Case 3: In the given YAML declaration only memory is defined
applyTest("memory-deployment.yaml")
}
@Test
fun case4() {
fun testWithoutResourceDeclarations() {
// Case 4: In the given YAML declaration neither `Resource Request` nor `Request Limit` is defined
applyTest("no-resources-deployment.yaml")
}
......
......@@ -62,25 +62,25 @@ class ResourceRequestPatcherTest {
}
@Test
fun case1() {
fun testWithExistingCpuAndMemoryDeclarations() {
// Case 1: In the given YAML declaration memory and cpu are defined
applyTest("cpu-memory-deployment.yaml")
}
@Test
fun case2() {
fun testOnlyWithExistingCpuDeclarations() {
// Case 2: In the given YAML declaration only cpu is defined
applyTest("cpu-deployment.yaml")
}
@Test
fun case3() {
fun testOnlyWithExistingMemoryDeclarations() {
// Case 3: In the given YAML declaration only memory is defined
applyTest("memory-deployment.yaml")
}
@Test
fun case4() {
fun testWithoutResourceDeclarations() {
// Case 4: In the given YAML declaration neither `Resource Request` nor `Request Limit` is defined
applyTest("no-resources-deployment.yaml")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment