Skip to content

Commit

Permalink
chore: add Priority to Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
susanpann committed Jun 19, 2024
1 parent d1aaf91 commit 622fbf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions pkg/deployments/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type Deployment struct {
FormValues map[string]string `json:"FormValues,omitempty"`
ManifestVariableSetID string `json:"ManifestVariableSetId,omitempty"`
Name string `json:"Name,omitempty"`
Priority string `json:"Priority" binding:"oneof=On Off LifecycleDefault"`
ProjectID string `json:"ProjectId,omitempty"`
QueueTime *time.Time `json:"QueueTime,omitempty"`
QueueTimeExpiry *time.Time `json:"QueueTimeExpiry,omitempty"`
Expand Down
7 changes: 2 additions & 5 deletions test/e2e/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ import (
)

func getOctopusClient() *client.Client {
// host := os.Getenv(constants.EnvironmentVariableOctopusHost)
// apiKey := os.Getenv(constants.EnvironmentVariableOctopusApiKey)
host := os.Getenv(constants.EnvironmentVariableOctopusHost)
apiKey := os.Getenv(constants.EnvironmentVariableOctopusApiKey)
spaceId := os.Getenv(constants.EnvironmentVariableOctopusSpace)

host := "http://localhost:8066"
apiKey := "API-4KM7F0OLXQBRBYLYHTWQSJYWVSFVB"

if len(host) == 0 {
host = os.Getenv(constants.ClientURLEnvironmentVariable)
}
Expand Down

0 comments on commit 622fbf3

Please sign in to comment.