Skip to content

Commit

Permalink
Fix typos and allow for falsey values to be passed in to some fields
Browse files Browse the repository at this point in the history
  • Loading branch information
c-kaieong committed Feb 13, 2024
1 parent fb18bd6 commit 5279d06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pagerduty/event_orchestration_cache_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type EventOrchestrationCacheVariableReference struct {
type EventOrchestrationCacheVariable struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Disabled bool `json:"disabled,omitempty"`
Conditions []*EventOrchestrationCacheVariableCondition `json:"conditions,omitempty"`
Disabled bool `json:"disabled"`
Conditions []*EventOrchestrationCacheVariableCondition `json:"conditions"`
Configuration *EventOrchestrationCacheVariableConfiguration `json:"configuration,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
CreatedBy *EventOrchestrationCacheVariableReference `json:"created_by,omitempty"`
Expand Down
18 changes: 9 additions & 9 deletions pagerduty/event_orchestration_cache_variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func TestGlobalOrchestrationCacheVariableGet(t *testing.T) {
}
}

func TestGlobalOrchestrationICacheVariableUpdate(t *testing.T) {
func TestGlobalOrchestrationCacheVariableUpdate(t *testing.T) {
setup()
defer teardown()
oId := "31112383-c14b-4464-b8fc-660f2508f43b"
Expand Down Expand Up @@ -340,7 +340,7 @@ func TestGlobalOrchestrationICacheVariableUpdate(t *testing.T) {
}
}

func TestGlobalOrchestrationIntegrationDelete(t *testing.T) {
func TestGlobalOrchestrationCacheVariableDelete(t *testing.T) {
setup()
defer teardown()

Expand All @@ -363,7 +363,7 @@ func TestServiceEventOrchestrationCacheVariableList(t *testing.T) {
setup()
defer teardown()

oId := "a64f9c87-6adc-4f89-a64c-2fdd8cba4639"
oId := "P3ZQXDF"
oType := "service"
url := fmt.Sprintf("%s/services/%s/cache_variables/", eventOrchestrationBaseUrl, oId)

Expand Down Expand Up @@ -486,7 +486,7 @@ func TestServiceEventOrchestrationCacheVariableList(t *testing.T) {
func TestServiceOrchestrationCacheVariableCreate(t *testing.T) {
setup()
defer teardown()
oId := "9ad1fdb7-5f69-4e36-9a5e-0da1f3290dda"
oId := "P3ZQXDF"
oType := "service"
input := &EventOrchestrationCacheVariable{
Name: "create_example",
Expand Down Expand Up @@ -543,7 +543,7 @@ func TestServiceOrchestrationCacheVariableGet(t *testing.T) {
setup()
defer teardown()

oId := "d054a57d-5933-44ce-8173-8be0bbacdfff"
oId := "P3ZQXDF"
oType := "service"
id := "9aa13ae3-81f3-4456-9abc-79233555fc3f"
url := fmt.Sprintf("%s/services/%s/cache_variables/%s", eventOrchestrationBaseUrl, oId, id)
Expand Down Expand Up @@ -614,10 +614,10 @@ func TestServiceOrchestrationCacheVariableGet(t *testing.T) {
}
}

func TestServiceOrchestrationICacheVariableUpdate(t *testing.T) {
func TestServiceOrchestrationCacheVariableUpdate(t *testing.T) {
setup()
defer teardown()
oId := "31112383-c14b-4464-b8fc-660f2508f43b"
oId := "P3ZQXDF"
oType := "service"
id := "460d9629-269a-4d26-8b6b-b96d61102436"
input := &EventOrchestrationCacheVariable{
Expand Down Expand Up @@ -690,11 +690,11 @@ func TestServiceOrchestrationICacheVariableUpdate(t *testing.T) {
}
}

func TestServiceOrchestrationIntegrationDelete(t *testing.T) {
func TestServiceOrchestrationCacheVariableDelete(t *testing.T) {
setup()
defer teardown()

oId := "1e51d2d3-1384-46f1-a7bb-920b8b114f80"
oId := "P3ZQXDF"
oType := "service"
id := "58cab484-ed93-4c46-8188-8f02b0cf3d9f"
url := fmt.Sprintf("%s/services/%s/cache_variables/%s", eventOrchestrationBaseUrl, oId, id)
Expand Down

0 comments on commit 5279d06

Please sign in to comment.