From c291f6ac2dbcd3a4af875e9045f84ae161542149 Mon Sep 17 00:00:00 2001 From: Dana Elhertani Date: Tue, 15 Jun 2021 11:17:37 -0400 Subject: [PATCH] removed TestRunAppsCreateDeploymentWithWait bc there's integration test coverage --- commands/apps_test.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/commands/apps_test.go b/commands/apps_test.go index 7813f2984..f398d5284 100644 --- a/commands/apps_test.go +++ b/commands/apps_test.go @@ -189,44 +189,6 @@ func TestRunAppsDelete(t *testing.T) { }) } -func TestRunAppsCreateDeployment(t *testing.T) { - withTestClient(t, func(config *CmdConfig, tm *tcMocks) { - appID := uuid.New().String() - deployment := &godo.Deployment{ - ID: uuid.New().String(), - Spec: &testAppSpec, - Services: []*godo.DeploymentService{{ - Name: "service", - SourceCommitHash: "commit", - }}, - Cause: "Manual", - Progress: &godo.DeploymentProgress{ - PendingSteps: 1, - RunningSteps: 0, - SuccessSteps: 0, - ErrorSteps: 0, - TotalSteps: 1, - - Steps: []*godo.DeploymentProgressStep{{ - Name: "name", - Status: "pending", - StartedAt: time.Now(), - }}, - }, - CreatedAt: time.Now(), - UpdatedAt: time.Now(), - } - - tm.apps.EXPECT().CreateDeployment(appID, true).Times(1).Return(deployment, nil) - - config.Args = append(config.Args, appID) - config.Doit.Set(config.NS, doctl.ArgAppForceRebuild, true) - - err := RunAppsCreateDeployment(config) - require.NoError(t, err) - }) -} - func TestRunAppsGetDeployment(t *testing.T) { withTestClient(t, func(config *CmdConfig, tm *tcMocks) { appID := uuid.New().String()