Skip to content

Commit

Permalink
Adapt TestAccKubernetesService_loadBalancer for 'external_traffic_pol…
Browse files Browse the repository at this point in the history
…icy'
  • Loading branch information
alexsomesan committed May 22, 2019
1 parent c7483d2 commit 8238910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubernetes/resource_kubernetes_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func TestAccKubernetesService_loadBalancer(t *testing.T) {
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_ips.1452553500", "10.0.0.4"),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_ips.3371212991", "10.0.0.3"),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_name", "ext-name-"+name),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_traffic_policy", "Local"),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_traffic_policy", "Cluster"),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.load_balancer_source_ranges.#", "2"),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.load_balancer_source_ranges.138364083", "10.0.0.5/32"),
resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.load_balancer_source_ranges.445311837", "10.0.0.6/32"),
Expand Down Expand Up @@ -697,6 +697,7 @@ resource "kubernetes_service" "test" {
external_name = "ext-name-modified-%s"
external_ips = ["10.0.0.4", "10.0.0.5"]
load_balancer_source_ranges = ["10.0.0.1/32", "10.0.0.2/32"]
external_traffic_policy = "Local"
selector = {
App = "MyModifiedApp"
Expand Down

0 comments on commit 8238910

Please sign in to comment.