Skip to content

Commit

Permalink
test: Test iptables masquerading with --random-fully
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Chaignon <paul@cilium.io>
  • Loading branch information
pchaigno authored and tklauser committed Oct 14, 2020
1 parent 4e39def commit 350f0b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/k8sT/DatapathConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,18 @@ var _ = Describe("K8sDatapathConfig", func() {
Should(BeTrue(), "Connectivity test to http://google.com failed")
}
})

It("Check iptables masquerading with random-fully", func() {
deploymentManager.DeployCilium(map[string]string{
"bpf.masquerade": "false",
"ipTablesRandomFully": "true",
}, DeployCiliumOptionsAndDNS)
Expect(testPodConnectivityAcrossNodes(kubectl)).Should(BeTrue(), "Connectivity test between nodes failed")

By("Test iptables masquerading")
Expect(testPodHTTPToOutside(kubectl, "http://google.com", false, false)).
Should(BeTrue(), "Connectivity test to http://google.com failed")
})
})

Context("DirectRouting", func() {
Expand Down

0 comments on commit 350f0b3

Please sign in to comment.