Skip to content

Commit bfa0ca4

Browse files
committed
scale-only: Define scenarios in scale_test.go
Signed-off-by: Stefan Büringer [email protected]
1 parent 32e822d commit bfa0ca4

File tree

1 file changed

+84
-11
lines changed

1 file changed

+84
-11
lines changed

test/e2e/scale_test.go

Lines changed: 84 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,94 @@ import (
2424
"k8s.io/utils/pointer"
2525
)
2626

27-
var _ = Describe("When scale testing using in-memory provider [Scale]", func() {
27+
// Stefan
28+
var _ = Describe("When scale testing using in-memory provider [Scale] [Small workload cluster]", func() {
2829
scaleSpec(ctx, func() scaleSpecInput {
2930
return scaleSpecInput{
30-
E2EConfig: e2eConfig,
31-
ClusterctlConfigPath: clusterctlConfigPath,
32-
InfrastructureProvider: pointer.String("in-memory"),
33-
BootstrapClusterProxy: bootstrapClusterProxy,
34-
ArtifactFolder: artifactFolder,
35-
ClusterCount: pointer.Int64(10),
36-
Concurrency: pointer.Int64(5),
37-
Flavor: pointer.String(""),
31+
E2EConfig: e2eConfig,
32+
ClusterctlConfigPath: clusterctlConfigPath,
33+
InfrastructureProvider: pointer.String("in-memory"),
34+
BootstrapClusterProxy: bootstrapClusterProxy,
35+
ArtifactFolder: artifactFolder,
36+
FailFast: false,
37+
SkipWaitForCreation: false,
38+
SkipCleanup: true,
39+
Flavor: pointer.String(""),
40+
// per Scenario
41+
Concurrency: pointer.Int64(50),
42+
ClusterCount: pointer.Int64(2000),
3843
ControlPlaneMachineCount: pointer.Int64(1),
44+
MachineDeploymentCount: pointer.Int64(0),
45+
WorkerMachineCount: pointer.Int64(0),
46+
}
47+
})
48+
})
49+
50+
// Yuvaraj
51+
var _ = Describe("When scale testing using in-memory provider [Scale] [Small medium workload cluster]", func() {
52+
scaleSpec(ctx, func() scaleSpecInput {
53+
return scaleSpecInput{
54+
E2EConfig: e2eConfig,
55+
ClusterctlConfigPath: clusterctlConfigPath,
56+
InfrastructureProvider: pointer.String("in-memory"),
57+
BootstrapClusterProxy: bootstrapClusterProxy,
58+
ArtifactFolder: artifactFolder,
59+
FailFast: false,
60+
SkipWaitForCreation: false,
61+
SkipCleanup: true,
62+
Flavor: pointer.String(""),
63+
// per Scenario
64+
Concurrency: pointer.Int64(20),
65+
ClusterCount: pointer.Int64(200),
66+
ControlPlaneMachineCount: pointer.Int64(3),
3967
MachineDeploymentCount: pointer.Int64(1),
40-
WorkerMachineCount: pointer.Int64(3),
41-
SkipCleanup: skipCleanup,
68+
WorkerMachineCount: pointer.Int64(10),
69+
}
70+
})
71+
})
72+
73+
// Yuvaraj
74+
var _ = Describe("When scale testing using in-memory provider [Scale] [Medium workload cluster]", func() {
75+
scaleSpec(ctx, func() scaleSpecInput {
76+
return scaleSpecInput{
77+
E2EConfig: e2eConfig,
78+
ClusterctlConfigPath: clusterctlConfigPath,
79+
InfrastructureProvider: pointer.String("in-memory"),
80+
BootstrapClusterProxy: bootstrapClusterProxy,
81+
ArtifactFolder: artifactFolder,
82+
FailFast: false,
83+
SkipWaitForCreation: false,
84+
SkipCleanup: true,
85+
Flavor: pointer.String(""),
86+
// per Scenario
87+
Concurrency: pointer.Int64(5),
88+
ClusterCount: pointer.Int64(40),
89+
ControlPlaneMachineCount: pointer.Int64(3),
90+
MachineDeploymentCount: pointer.Int64(1),
91+
WorkerMachineCount: pointer.Int64(50),
92+
}
93+
})
94+
})
95+
96+
// Yuvaraj
97+
var _ = Describe("When scale testing using in-memory provider [Scale] [Large workload cluster]", func() {
98+
scaleSpec(ctx, func() scaleSpecInput {
99+
return scaleSpecInput{
100+
E2EConfig: e2eConfig,
101+
ClusterctlConfigPath: clusterctlConfigPath,
102+
InfrastructureProvider: pointer.String("in-memory"),
103+
BootstrapClusterProxy: bootstrapClusterProxy,
104+
ArtifactFolder: artifactFolder,
105+
FailFast: false,
106+
SkipWaitForCreation: false,
107+
SkipCleanup: true,
108+
Flavor: pointer.String(""),
109+
// per Scenario
110+
Concurrency: pointer.Int64(1),
111+
ClusterCount: pointer.Int64(1),
112+
ControlPlaneMachineCount: pointer.Int64(3),
113+
MachineDeploymentCount: pointer.Int64(500),
114+
WorkerMachineCount: pointer.Int64(2),
42115
}
43116
})
44117
})

0 commit comments

Comments
 (0)