Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Retrieve the private interface in an Eventually #16990

Merged
merged 1 commit into from
Aug 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 10 additions & 3 deletions test/k8sT/DatapathConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,17 @@ var _ = Describe("K8sDatapathConfig", func() {
SkipContextIf(func() bool {
return helpers.RunsOnGKE() || helpers.RunsWithoutKubeProxy()
}, "Transparent encryption DirectRouting", func() {
It("Check connectivity with transparent encryption and direct routing", func() {
privateIface, err := kubectl.GetPrivateIface()
Expect(err).Should(BeNil(), "Unable to determine private iface")
var privateIface string
BeforeAll(func() {
Eventually(func() (string, error) {
iface, err := kubectl.GetPrivateIface()
privateIface = iface
return iface, err
}, helpers.MidCommandTimeout, time.Second).ShouldNot(BeEmpty(),
"Unable to determine private iface")
})

It("Check connectivity with transparent encryption and direct routing", func() {
deploymentManager.Deploy(helpers.CiliumNamespace, IPSecSecret)
deploymentManager.DeployCilium(map[string]string{
"tunnel": "disabled",
Expand Down