-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CheckRegions field to LoadBalancerPool (#162)
* Added CheckRegions field to LoadBalancerPool * Fixed TestCreateLoadBalancerPool to wirk with check_regions * Fixed TestDeleteLoadBalancerPool to wirk with check_regions * Added documentation for the CheckRegions field in LoadBalancerPool
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,10 @@ func TestCreateLoadBalancerPool(t *testing.T) { | |
"enabled": true | ||
} | ||
], | ||
"notification_email": "[email protected]" | ||
"notification_email": "[email protected]", | ||
"check_regions": [ | ||
"WEU" | ||
] | ||
}`, string(b)) | ||
} | ||
fmt.Fprint(w, `{ | ||
|
@@ -54,7 +57,10 @@ func TestCreateLoadBalancerPool(t *testing.T) { | |
"enabled": true | ||
} | ||
], | ||
"notification_email": "[email protected]" | ||
"notification_email": "[email protected]", | ||
"check_regions": [ | ||
"WEU" | ||
] | ||
} | ||
}`) | ||
} | ||
|
@@ -78,6 +84,9 @@ func TestCreateLoadBalancerPool(t *testing.T) { | |
}, | ||
}, | ||
NotificationEmail: "[email protected]", | ||
CheckRegions: []string{ | ||
"WEU", | ||
}, | ||
} | ||
request := LoadBalancerPool{ | ||
Description: "Primary data center - Provider XYZ", | ||
|
@@ -92,6 +101,9 @@ func TestCreateLoadBalancerPool(t *testing.T) { | |
}, | ||
}, | ||
NotificationEmail: "[email protected]", | ||
CheckRegions: []string{ | ||
"WEU", | ||
}, | ||
} | ||
|
||
actual, err := client.CreateLoadBalancerPool(request) | ||
|
@@ -273,7 +285,10 @@ func TestModifyLoadBalancerPool(t *testing.T) { | |
"enabled": false | ||
} | ||
], | ||
"notification_email": "[email protected]" | ||
"notification_email": "[email protected]", | ||
"check_regions": [ | ||
"WEU" | ||
] | ||
}`, string(b)) | ||
} | ||
fmt.Fprint(w, `{ | ||
|
@@ -294,7 +309,10 @@ func TestModifyLoadBalancerPool(t *testing.T) { | |
"enabled": false | ||
} | ||
], | ||
"notification_email": "[email protected]" | ||
"notification_email": "[email protected]", | ||
"check_regions": [ | ||
"WEU" | ||
] | ||
} | ||
}`) | ||
} | ||
|
@@ -317,6 +335,9 @@ func TestModifyLoadBalancerPool(t *testing.T) { | |
}, | ||
}, | ||
NotificationEmail: "[email protected]", | ||
CheckRegions: []string{ | ||
"WEU", | ||
}, | ||
} | ||
request := LoadBalancerPool{ | ||
ID: "17b5962d775c646f3f9725cbc7a53df4", | ||
|
@@ -331,6 +352,9 @@ func TestModifyLoadBalancerPool(t *testing.T) { | |
}, | ||
}, | ||
NotificationEmail: "[email protected]", | ||
CheckRegions: []string{ | ||
"WEU", | ||
}, | ||
} | ||
|
||
actual, err := client.ModifyLoadBalancerPool(request) | ||
|