Skip to content

Commit

Permalink
Merge pull request #1595 from sebsoto/vsphereCleanup
Browse files Browse the repository at this point in the history
WINC-635: Remove vSphere Machine deletion exception
  • Loading branch information
openshift-merge-robot committed May 5, 2023
2 parents af3ea3b + 52f586a commit e996410
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/e2e/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"testing"
"time"

config "github.com/openshift/api/config/v1"
mapi "github.com/openshift/api/machine/v1beta1"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -159,13 +158,8 @@ func testWindowsNodeDeletion(t *testing.T) {
// Phase is ignored during deletion, in this case we are just waiting for Machines to be deleted.
_, err = testCtx.waitForWindowsMachines(int(expectedNodeCount), "", false)
require.NoError(t, err, "Machine controller Windows machine deletion failed")

// TODO: Currently on vSphere it is impossible to delete a Machine after its node has been deleted.
// This special casing should be removed as part of https://issues.redhat.com/browse/WINC-635
if testCtx.GetType() != config.VSpherePlatformType {
_, err = testCtx.waitForWindowsMachines(int(expectedNodeCount), "", true)
require.NoError(t, err, "ConfigMap controller Windows machine deletion failed")
}
_, err = testCtx.waitForWindowsMachines(int(expectedNodeCount), "", true)
require.NoError(t, err, "ConfigMap controller Windows machine deletion failed")

// Test if prometheus configuration is updated to have no node entries in the endpoints object
t.Run("Prometheus configuration", testPrometheus)
Expand Down

0 comments on commit e996410

Please sign in to comment.