Skip to content

Commit

Permalink
removed TestRunAppsCreateDeploymentWithWait bc there's integration te…
Browse files Browse the repository at this point in the history
…st coverage
  • Loading branch information
danaelhe committed Jun 15, 2021
1 parent a977598 commit c291f6a
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions commands/apps_test.go
Expand Up @@ -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()
Expand Down

0 comments on commit c291f6a

Please sign in to comment.