Skip to content

Commit

Permalink
add to test
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed Apr 8, 2024
1 parent a0b9286 commit 91c2a2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/neptune/workflows/internal/terraform/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const (
DeployDir = "deployments/123"
)

var testWorkflowMode terraformModel.WorkflowMode = terraformModel.Deploy

var testGithubRepo = github.Repo{
Name: testRepoName,
}
Expand Down Expand Up @@ -174,7 +176,7 @@ func testTerraformWorkflow(ctx workflow.Context, req request) (*response, error)
Root: testLocalRoot.Root,
Repo: testGithubRepo,
DeploymentID: testDeploymentID,
WorkflowMode: req.WorkflowMode,
WorkflowMode: testWorkflowMode,
}

if req.WorkflowMode == terraformModel.Adhoc {
Expand Down Expand Up @@ -287,6 +289,7 @@ func TestSuccess_DeployMode(t *testing.T) {
Repo: testGithubRepo,
Root: testLocalRoot.Root,
DeploymentID: testDeploymentID,
WorkflowMode: testWorkflowMode,
}).Return(activities.FetchRootResponse{
LocalRoot: testLocalRoot,
DeployDirectory: DeployDir,
Expand Down

0 comments on commit 91c2a2a

Please sign in to comment.