Skip to content

Commit

Permalink
Fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
Nmishin committed Aug 27, 2023
1 parent fe56c40 commit 7bdb342
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 61 deletions.
38 changes: 19 additions & 19 deletions load_balancing.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,25 @@ type LoadBalancerOriginSteering struct {

// LoadBalancerMonitor represents a load balancer monitor's properties.
type LoadBalancerMonitor struct {
ID string `json:"id,omitempty"`
CreatedOn *time.Time `json:"created_on,omitempty"`
ModifiedOn *time.Time `json:"modified_on,omitempty"`
Type string `json:"type"`
Description string `json:"description"`
Method string `json:"method"`
Path string `json:"path"`
Header map[string][]string `json:"header"`
Timeout int `json:"timeout"`
Retries int `json:"retries"`
Interval int `json:"interval"`
Consecutive_up int `json:"consecutive_up"`
Consecutive_down int `json:"consecutive_down"`
Port uint16 `json:"port,omitempty"`
ExpectedBody string `json:"expected_body"`
ExpectedCodes string `json:"expected_codes"`
FollowRedirects bool `json:"follow_redirects"`
AllowInsecure bool `json:"allow_insecure"`
ProbeZone string `json:"probe_zone"`
ID string `json:"id,omitempty"`
CreatedOn *time.Time `json:"created_on,omitempty"`
ModifiedOn *time.Time `json:"modified_on,omitempty"`
Type string `json:"type"`
Description string `json:"description"`
Method string `json:"method"`
Path string `json:"path"`
Header map[string][]string `json:"header"`
Timeout int `json:"timeout"`
Retries int `json:"retries"`
Interval int `json:"interval"`
ConsecutiveUp int `json:"consecutive_up"`
ConsecutiveDown int `json:"consecutive_down"`
Port uint16 `json:"port,omitempty"`
ExpectedBody string `json:"expected_body"`
ExpectedCodes string `json:"expected_codes"`
FollowRedirects bool `json:"follow_redirects"`
AllowInsecure bool `json:"allow_insecure"`
ProbeZone string `json:"probe_zone"`
}

// LoadBalancer represents a load balancer's properties.
Expand Down
84 changes: 42 additions & 42 deletions load_balancing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,13 +681,13 @@ func TestCreateLoadBalancerMonitor(t *testing.T) {
"Host": {"example.com"},
"X-App-ID": {"abc123"},
},
Timeout: 3,
Retries: 0,
Interval: 90,
Consecutive_up: 2,
Consecutive_down: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",
Timeout: 3,
Retries: 0,
Interval: 90,
ConsecutiveUp: 2,
ConsecutiveDown: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",

FollowRedirects: true,
AllowInsecure: true,
Expand All @@ -701,13 +701,13 @@ func TestCreateLoadBalancerMonitor(t *testing.T) {
"Host": {"example.com"},
"X-App-ID": {"abc123"},
},
Timeout: 3,
Retries: 0,
Interval: 90,
Consecutive_up: 2,
Consecutive_down: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",
Timeout: 3,
Retries: 0,
Interval: 90,
ConsecutiveUp: 2,
ConsecutiveDown: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",

FollowRedirects: true,
AllowInsecure: true,
Expand Down Expand Up @@ -791,13 +791,13 @@ func TestListLoadBalancerMonitors(t *testing.T) {
"Host": {"example.com"},
"X-App-ID": {"abc123"},
},
Timeout: 3,
Retries: 0,
Interval: 90,
Consecutive_up: 2,
Consecutive_down: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",
Timeout: 3,
Retries: 0,
Interval: 90,
ConsecutiveUp: 2,
ConsecutiveDown: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",
},
}

Expand Down Expand Up @@ -873,13 +873,13 @@ func TestGetLoadBalancerMonitor(t *testing.T) {
"Host": {"example.com"},
"X-App-ID": {"abc123"},
},
Timeout: 3,
Retries: 0,
Interval: 90,
Consecutive_up: 2,
Consecutive_down: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",
Timeout: 3,
Retries: 0,
Interval: 90,
ConsecutiveUp: 2,
ConsecutiveDown: 2,
ExpectedBody: "alive",
ExpectedCodes: "2xx",

FollowRedirects: true,
AllowInsecure: true,
Expand Down Expand Up @@ -1021,13 +1021,13 @@ func TestUpdateLoadBalancerMonitor(t *testing.T) {
"Host": {"example.com"},
"X-App-ID": {"easy"},
},
Timeout: 3,
Retries: 0,
Interval: 90,
Consecutive_up: 2,
Consecutive_down: 2,
ExpectedBody: "kicking",
ExpectedCodes: "200",
Timeout: 3,
Retries: 0,
Interval: 90,
ConsecutiveUp: 2,
ConsecutiveDown: 2,
ExpectedBody: "kicking",
ExpectedCodes: "200",

FollowRedirects: true,
AllowInsecure: true,
Expand All @@ -1042,13 +1042,13 @@ func TestUpdateLoadBalancerMonitor(t *testing.T) {
"Host": {"example.com"},
"X-App-ID": {"easy"},
},
Timeout: 3,
Retries: 0,
Interval: 90,
Consecutive_up: 2,
Consecutive_down: 2,
ExpectedBody: "kicking",
ExpectedCodes: "200",
Timeout: 3,
Retries: 0,
Interval: 90,
ConsecutiveUp: 2,
ConsecutiveDown: 2,
ExpectedBody: "kicking",
ExpectedCodes: "200",

FollowRedirects: true,
AllowInsecure: true,
Expand Down

0 comments on commit 7bdb342

Please sign in to comment.