Skip to content

Commit 9510969

Browse files
author
chrislovecnm
committed
Tweaking integration tests
Adding new field 'configure_ip_masq' to public stub domain example and removing the same field from the private cluster example. Removed the integration control to check for ip masq in the private cluster as well.
1 parent fb4b732 commit 9510969

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

examples/stub_domains/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ module "gke" {
4040
network_policy = true
4141
service_account = "${var.compute_engine_service_account}"
4242

43+
configure_ip_masq = true
44+
4345
stub_domains {
4446
"example.com" = [
4547
"10.254.154.11",

test/integration/stub_domains_private/controls/kubectl.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,6 @@
5959
})
6060
end
6161
end
62-
63-
describe "ipmasq" do
64-
let(:ipmasq_configmap) { client.get_config_map("ip-masq-agent", "kube-system") }
65-
66-
it "is created by Terraform" do
67-
expect(ipmasq_configmap.metadata.labels.maintained_by).to eq "terraform"
68-
end
69-
70-
it "is configured properly" do
71-
expect(YAML.load(ipmasq_configmap.data.config)).to eq({
72-
"nonMasqueradeCIDRs" => [
73-
"10.0.0.0/8",
74-
"172.16.0.0/12",
75-
"192.168.0.0/16",
76-
],
77-
"resyncInterval" => "60s",
78-
"masqLinkLocal" => false,
79-
})
80-
end
81-
end
8262
end
8363
end
8464
end

0 commit comments

Comments
 (0)