Skip to content

Commit

Permalink
removed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
amfred committed Dec 19, 2023
1 parent faaf9db commit c14d16f
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions test/migration/setup_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ const (
DeactivatedUser = "mig-deact"
BannedUser = "mig-banned"
AppStudioProvisionedUser = "mig-appst"
AppStudioProvisionedUserLarge = "mig-appst-large"
SecondMemberProvisionedUser = "mig-m2-user"

ProvisionedAppStudioSpace = "mig-appst-space"
ProvisionedAppStudioSpaceLarge = "mig-appst-large-space"
SecondMemberProvisionedSpace = "mig-m2-space"
ProvisionedSpaceRequest = "mig-space-request"
ProvisionedParentSpace = "mig-parent-space"
Expand All @@ -48,15 +46,13 @@ func (r *SetupMigrationRunner) Run(t *testing.T) {

toRun := []func(t *testing.T){
r.prepareAppStudioProvisionedSpace,
r.prepareAppStudioProvisionedSpaceLarge,
r.prepareSecondMemberProvisionedSpace,
r.prepareProvisionedSubspace,
r.prepareProvisionedUser,
r.prepareSecondMemberProvisionedUser,
r.prepareDeactivatedUser,
r.prepareBannedUser,
r.prepareAppStudioProvisionedUser,
r.prepareAppStudioProvisionedUserLarge}
r.prepareAppStudioProvisionedUser}

for _, funcToRun := range toRun {
wg.Add(1)
Expand All @@ -73,10 +69,6 @@ func (r *SetupMigrationRunner) prepareAppStudioProvisionedSpace(t *testing.T) {
r.createAndWaitForSpace(t, ProvisionedAppStudioSpace, "appstudio", r.Awaitilities.Member1())
}

func (r *SetupMigrationRunner) prepareAppStudioProvisionedSpaceLarge(t *testing.T) {
r.createAndWaitForSpace(t, ProvisionedAppStudioSpaceLarge, "appstudiolarge", r.Awaitilities.Member1())
}

func (r *SetupMigrationRunner) prepareSecondMemberProvisionedSpace(t *testing.T) {
r.createAndWaitForSpace(t, SecondMemberProvisionedSpace, "base", r.Awaitilities.Member2())
}
Expand Down Expand Up @@ -206,21 +198,6 @@ func (r *SetupMigrationRunner) prepareAppStudioProvisionedUser(t *testing.T) {
require.NoError(t, err)
}

func (r *SetupMigrationRunner) prepareAppStudioProvisionedUserLarge(t *testing.T) {
usersignup := r.prepareUser(t, AppStudioProvisionedUserLarge, r.Awaitilities.Member1())
hostAwait := r.Awaitilities.Host()

// promote to appstudiolarge
tiers.MoveSpaceToTier(t, hostAwait, usersignup.Status.CompliantUsername, "appstudiolarge")

t.Logf("user %s was promoted to appstudiolarge tier", AppStudioProvisionedUserLarge)

// verify that it's promoted
_, err := r.Awaitilities.Host().WaitForMasterUserRecord(t, usersignup.Status.CompliantUsername,
wait.UntilMasterUserRecordHasConditions(wait.Provisioned(), wait.ProvisionedNotificationCRCreated()))
require.NoError(t, err)
}

func (r *SetupMigrationRunner) prepareUser(t *testing.T, name string, targetCluster *wait.MemberAwaitility) *toolchainv1alpha1.UserSignup {
requestBuilder := testsupport.NewSignupRequest(r.Awaitilities).
Username(name).
Expand Down

0 comments on commit c14d16f

Please sign in to comment.