Skip to content

Commit 622fbf3

Browse files
committed
chore: add Priority to Deployment
1 parent d1aaf91 commit 622fbf3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pkg/deployments/deployment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type Deployment struct {
2727
FormValues map[string]string `json:"FormValues,omitempty"`
2828
ManifestVariableSetID string `json:"ManifestVariableSetId,omitempty"`
2929
Name string `json:"Name,omitempty"`
30+
Priority string `json:"Priority" binding:"oneof=On Off LifecycleDefault"`
3031
ProjectID string `json:"ProjectId,omitempty"`
3132
QueueTime *time.Time `json:"QueueTime,omitempty"`
3233
QueueTimeExpiry *time.Time `json:"QueueTimeExpiry,omitempty"`

test/e2e/test_helpers.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ import (
1212
)
1313

1414
func getOctopusClient() *client.Client {
15-
// host := os.Getenv(constants.EnvironmentVariableOctopusHost)
16-
// apiKey := os.Getenv(constants.EnvironmentVariableOctopusApiKey)
15+
host := os.Getenv(constants.EnvironmentVariableOctopusHost)
16+
apiKey := os.Getenv(constants.EnvironmentVariableOctopusApiKey)
1717
spaceId := os.Getenv(constants.EnvironmentVariableOctopusSpace)
1818

19-
host := "http://localhost:8066"
20-
apiKey := "API-4KM7F0OLXQBRBYLYHTWQSJYWVSFVB"
21-
2219
if len(host) == 0 {
2320
host = os.Getenv(constants.ClientURLEnvironmentVariable)
2421
}

0 commit comments

Comments
 (0)