Skip to content

Commit 73723f0

Browse files
Set tests to lifecycle channel
1 parent 2fbffbf commit 73723f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/cmd/release/deploy/deploy_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import (
55
"context"
66
"encoding/json"
77
"fmt"
8-
"github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/configuration"
98
"net/url"
109
"testing"
1110
"time"
1211

12+
"github.com/OctopusDeploy/go-octopusdeploy/v2/pkg/configuration"
13+
1314
"github.com/AlecAivazis/survey/v2"
1415
surveyCore "github.com/AlecAivazis/survey/v2/core"
1516
"github.com/MakeNowJust/heredoc/v2"
@@ -53,7 +54,9 @@ func TestDeployCreate_AskQuestions(t *testing.T) {
5354
space1 := fixtures.NewSpace(spaceID, "Default Space")
5455

5556
defaultChannel := fixtures.NewChannel(spaceID, "Channels-1", "Fire Project Default Channel", fireProjectID)
57+
defaultChannel.Type = channels.ChannelTypeLifecycle
5658
altChannel := fixtures.NewChannel(spaceID, "Channels-97", "Fire Project Alt Channel", fireProjectID)
59+
altChannel.Type = channels.ChannelTypeLifecycle
5760

5861
fireProject := fixtures.NewProject(spaceID, fireProjectID, "Fire Project", "Lifecycles-1", "ProjectGroups-1", "deploymentprocess-"+fireProjectID)
5962

@@ -1347,6 +1350,7 @@ func TestDeployCreate_AutomationMode(t *testing.T) {
13471350
space1 := fixtures.NewSpace(spaceID, "Default Space")
13481351

13491352
defaultChannel := fixtures.NewChannel(spaceID, "Channels-1", "Fire Project Default Channel", fireProjectID)
1353+
defaultChannel.Type = channels.ChannelTypeLifecycle
13501354

13511355
fireProject := fixtures.NewProject(spaceID, fireProjectID, "Fire Project", "Lifecycles-1", "ProjectGroups-1", "deploymentprocess-"+fireProjectID)
13521356
//
@@ -1794,6 +1798,7 @@ func TestDeployCreate_GenerationOfAutomationCommand_MasksSensitiveVariables(t *t
17941798
space1 := fixtures.NewSpace(spaceID, "Default Space")
17951799

17961800
defaultChannel := fixtures.NewChannel(spaceID, "Channels-1", "Fire Project Default Channel", fireProjectID)
1801+
defaultChannel.Type = channels.ChannelTypeLifecycle
17971802

17981803
fireProject := fixtures.NewProject(spaceID, fireProjectID, "Fire Project", "Lifecycles-1", "ProjectGroups-1", "deploymentprocess-"+fireProjectID)
17991804

0 commit comments

Comments
 (0)