Skip to content

Commit b3dcbdb

Browse files
committed
Rename destroy machine test to machine remediation test
1 parent 0067888 commit b3dcbdb

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

test/e2e/config/cloudstack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ providers:
8282
- sourcePath: "../data/infrastructure-cloudstack/v1beta1/cluster-template-insufficient-compute-resources.yaml"
8383
- sourcePath: "../data/infrastructure-cloudstack/v1beta1/cluster-template-invalid-worker-offering.yaml"
8484
- sourcePath: "../data/infrastructure-cloudstack/v1beta1/cluster-template-node-drain.yaml"
85-
- sourcePath: "../data/infrastructure-cloudstack/v1beta1/cluster-template-destroy-machine.yaml"
85+
- sourcePath: "../data/infrastructure-cloudstack/v1beta1/cluster-template-machine-remediation.yaml"
8686
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
8787
versions:
8888
- name: v1.0.0

test/e2e/destroy_machine.go renamed to test/e2e/machine_remediation.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ import (
3131
"sigs.k8s.io/cluster-api/util"
3232
)
3333

34-
// DestroyMachineSpec implements a test that verifies that an app deployed to the workload cluster works.
35-
func DestroyMachineSpec(ctx context.Context, inputGetter func() CommonSpecInput) {
34+
// MachineRemediationSpec implements a test that verifies that an app deployed to the workload cluster works.
35+
func MachineRemediationSpec(ctx context.Context, inputGetter func() CommonSpecInput) {
3636
var (
37-
specName = "destroy-machine"
37+
specName = "machine-remediation"
3838
input CommonSpecInput
3939
namespace *corev1.Namespace
4040
cancelWatches context.CancelFunc
@@ -71,7 +71,7 @@ func DestroyMachineSpec(ctx context.Context, inputGetter func() CommonSpecInput)
7171
ClusterctlConfigPath: input.ClusterctlConfigPath,
7272
KubeconfigPath: input.BootstrapClusterProxy.GetKubeconfigPath(),
7373
InfrastructureProvider: clusterctl.DefaultInfrastructureProvider,
74-
Flavor: "destroy-machine",
74+
Flavor: "machine-remediation",
7575
Namespace: namespace.Name,
7676
ClusterName: fmt.Sprintf("%s-%s", specName, util.RandomString(6)),
7777
KubernetesVersion: input.E2EConfig.GetVariable(KubernetesVersion),

test/e2e/destroy_machine_test.go renamed to test/e2e/machine_remediation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424
. "github.com/onsi/ginkgo"
2525
)
2626

27-
var _ = Describe("When testing destroying machine", func() {
27+
var _ = Describe("When testing machine remediation", func() {
2828

29-
DestroyMachineSpec(context.TODO(), func() CommonSpecInput {
29+
MachineRemediationSpec(context.TODO(), func() CommonSpecInput {
3030
return CommonSpecInput{
3131
E2EConfig: e2eConfig,
3232
ClusterctlConfigPath: clusterctlConfigPath,

0 commit comments

Comments
 (0)