Skip to content

Commit

Permalink
Tweaking integration tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrislovecnm committed Jun 25, 2019
1 parent e6c33fa commit cc32fd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 2 additions & 0 deletions examples/stub_domains/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ module "gke" {
network_policy = true
service_account = "${var.compute_engine_service_account}"

configure_ip_masq = true

stub_domains {
"example.com" = [
"10.254.154.11",
Expand Down
20 changes: 0 additions & 20 deletions test/integration/stub_domains_private/controls/kubectl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,6 @@
})
end
end

describe "ipmasq" do
let(:ipmasq_configmap) { client.get_config_map("ip-masq-agent", "kube-system") }

it "is created by Terraform" do
expect(ipmasq_configmap.metadata.labels.maintained_by).to eq "terraform"
end

it "is configured properly" do
expect(YAML.load(ipmasq_configmap.data.config)).to eq({
"nonMasqueradeCIDRs" => [
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
],
"resyncInterval" => "60s",
"masqLinkLocal" => false,
})
end
end
end
end
end

0 comments on commit cc32fd1

Please sign in to comment.