Skip to content

Commit

Permalink
Comment node drain test
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Jan 25, 2025
1 parent 2aae8b0 commit 6085df3
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions test/e2e/capi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,25 @@ var _ = Describe("Running the Cluster API E2E tests", func() {
})
})

Context("Should successfully set and use node drain timeout", func() {
// Use default as the clusterclass name so test infra can find the clusterclass template
Expect(os.Setenv("CLUSTER_CLASS_NAME", "ci-default")).To(Succeed())
Expect(os.Setenv("WORKER_MACHINE_COUNT", "1")).To(Succeed())
capi_e2e.NodeDrainTimeoutSpec(context.TODO(), func() capi_e2e.NodeDrainTimeoutSpecInput {
return capi_e2e.NodeDrainTimeoutSpecInput{
E2EConfig: e2eConfig,
ClusterctlConfigPath: clusterctlConfigPath,
BootstrapClusterProxy: bootstrapClusterProxy,
ArtifactFolder: artifactFolder,
SkipCleanup: skipCleanup,
Flavor: ptr.To("topology"),
ControlPlaneWaiters: clusterctl.ControlPlaneWaiters{
WaitForControlPlaneInitialized: EnsureControlPlaneInitializedNoAddons,
},
}
})
})
// TODO: Uncomment this test when it is fixed to support additional deployments (in our case calico cni)
// Context("Should successfully set and use node drain timeout", func() {
// // Use default as the clusterclass name so test infra can find the clusterclass template
// Expect(os.Setenv("CLUSTER_CLASS_NAME", "ci-default")).To(Succeed())
// Expect(os.Setenv("WORKER_MACHINE_COUNT", "1")).To(Succeed())
// capi_e2e.NodeDrainTimeoutSpec(context.TODO(), func() capi_e2e.NodeDrainTimeoutSpecInput {
// return capi_e2e.NodeDrainTimeoutSpecInput{
// E2EConfig: e2eConfig,
// ClusterctlConfigPath: clusterctlConfigPath,
// BootstrapClusterProxy: bootstrapClusterProxy,
// ArtifactFolder: artifactFolder,
// SkipCleanup: skipCleanup,
// Flavor: ptr.To("topology"),
// ControlPlaneWaiters: clusterctl.ControlPlaneWaiters{
// WaitForControlPlaneInitialized: EnsureControlPlaneInitializedNoAddons,
// },
// }
// })
// })

if os.Getenv("USE_LOCAL_KIND_REGISTRY") != "true" {
Context("API Version Upgrade", func() {
Expand Down

0 comments on commit 6085df3

Please sign in to comment.