Skip to content

Commit 27d6257

Browse files
committed
scale-only: Define scenarios in scale_test.go
Signed-off-by: Stefan Büringer [email protected]
1 parent 3d0c9d3 commit 27d6257

File tree

1 file changed

+85
-11
lines changed

1 file changed

+85
-11
lines changed

test/e2e/scale_test.go

Lines changed: 85 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,95 @@ 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),
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),
43+
ControlPlaneMachineCount: pointer.Int64(1),
44+
MachineDeploymentCount: pointer.Int64(0),
45+
WorkerMachineCount: pointer.Int64(0),
46+
DeployClusterInSeparateNamespaces: true,
47+
}
48+
})
49+
})
50+
51+
// Yuvaraj
52+
var _ = Describe("When scale testing using in-memory provider [Scale] [Small medium workload cluster]", func() {
53+
scaleSpec(ctx, func() scaleSpecInput {
54+
return scaleSpecInput{
55+
E2EConfig: e2eConfig,
56+
ClusterctlConfigPath: clusterctlConfigPath,
57+
InfrastructureProvider: pointer.String("in-memory"),
58+
BootstrapClusterProxy: bootstrapClusterProxy,
59+
ArtifactFolder: artifactFolder,
60+
FailFast: false,
61+
SkipWaitForCreation: false,
62+
SkipCleanup: true,
63+
Flavor: pointer.String(""),
64+
// per Scenario
65+
Concurrency: pointer.Int64(20),
66+
ClusterCount: pointer.Int64(200),
67+
ControlPlaneMachineCount: pointer.Int64(3),
68+
MachineDeploymentCount: pointer.Int64(1),
69+
WorkerMachineCount: pointer.Int64(10),
70+
}
71+
})
72+
})
73+
74+
// Yuvaraj
75+
var _ = Describe("When scale testing using in-memory provider [Scale] [Medium workload cluster]", func() {
76+
scaleSpec(ctx, func() scaleSpecInput {
77+
return scaleSpecInput{
78+
E2EConfig: e2eConfig,
79+
ClusterctlConfigPath: clusterctlConfigPath,
80+
InfrastructureProvider: pointer.String("in-memory"),
81+
BootstrapClusterProxy: bootstrapClusterProxy,
82+
ArtifactFolder: artifactFolder,
83+
FailFast: false,
84+
SkipWaitForCreation: false,
85+
SkipCleanup: true,
86+
Flavor: pointer.String(""),
87+
// per Scenario
3688
Concurrency: pointer.Int64(5),
37-
Flavor: pointer.String(""),
38-
ControlPlaneMachineCount: pointer.Int64(1),
89+
ClusterCount: pointer.Int64(40),
90+
ControlPlaneMachineCount: pointer.Int64(3),
3991
MachineDeploymentCount: pointer.Int64(1),
40-
WorkerMachineCount: pointer.Int64(3),
41-
SkipCleanup: skipCleanup,
92+
WorkerMachineCount: pointer.Int64(50),
93+
}
94+
})
95+
})
96+
97+
// Yuvaraj
98+
var _ = Describe("When scale testing using in-memory provider [Scale] [Large workload cluster]", func() {
99+
scaleSpec(ctx, func() scaleSpecInput {
100+
return scaleSpecInput{
101+
E2EConfig: e2eConfig,
102+
ClusterctlConfigPath: clusterctlConfigPath,
103+
InfrastructureProvider: pointer.String("in-memory"),
104+
BootstrapClusterProxy: bootstrapClusterProxy,
105+
ArtifactFolder: artifactFolder,
106+
FailFast: false,
107+
SkipWaitForCreation: false,
108+
SkipCleanup: true,
109+
Flavor: pointer.String(""),
110+
// per Scenario
111+
Concurrency: pointer.Int64(1),
112+
ClusterCount: pointer.Int64(1),
113+
ControlPlaneMachineCount: pointer.Int64(3),
114+
MachineDeploymentCount: pointer.Int64(500),
115+
WorkerMachineCount: pointer.Int64(2),
42116
}
43117
})
44118
})

0 commit comments

Comments
 (0)