Skip to content

Commit

Permalink
Merge pull request #225 from civo/lb-feature
Browse files Browse the repository at this point in the history
networkID addition in LB
  • Loading branch information
uzaxirr authored Nov 27, 2024
2 parents b21a436 + 763fd52 commit 9c0637d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type LoadBalancer struct {
ID string `json:"id"`
Name string `json:"name"`
ServiceName string `json:"service_name,omitempty"`
NetworkID string `json:"network_id,omitempty"`
Algorithm string `json:"algorithm"`
Backends []LoadBalancerBackend `json:"backends,omitempty"`
InstancePool []InstancePool `json:"instance_pools,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions loadbalancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func TestCreateLoadBalancer(t *testing.T) {
ID: "56dca3ae-ea3f-480f-9b25-abf90b439729",
Name: "test-default-lb",
ServiceName: "lb",
NetworkID: "b064d568-5869-427c-827a-77d48cde6a2e",
Algorithm: "round_robin",
Backends: []LoadBalancerBackend{
{
Expand Down Expand Up @@ -210,6 +211,7 @@ func TestUpdateLoadBalancer(t *testing.T) {
ID: "a1bd123c-b7e2-4d4f-9fda-7940c7e06b38",
Name: "test-lb-updated",
ServiceName: "updated",
NetworkID: "b064d568-5869-427c-827a-77d48cde6a2e",
Algorithm: "round_robin",
ExternalTrafficPolicy: "Cluster",
Backends: []LoadBalancerBackend{
Expand Down Expand Up @@ -272,6 +274,7 @@ func TestGetLoadBalancer(t *testing.T) {
ID: "a1bd123c-b7e2-4d4f-9fda-7940c7e06b38",
Name: "test-lb-updated",
ServiceName: "updated",
NetworkID: "b064d568-5869-427c-827a-77d48cde6a2e",
Algorithm: "round_robin",
ExternalTrafficPolicy: "Cluster",
Backends: []LoadBalancerBackend{
Expand Down

0 comments on commit 9c0637d

Please sign in to comment.