Skip to content

Commit c24ff47

Browse files
committed
Add e2e test for udn advertised pod to kapi service
Signed-off-by: Surya Seetharaman <[email protected]>
1 parent 1da9f0b commit c24ff47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/route_advertisements.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ var _ = ginkgo.DescribeTableSubtree("BGP: isolation between advertised networks"
716716
// to targetAddress. If clientNamespace is empty the function assumes clientName is a node that will be used as the
717717
// client.
718718
var checkConnectivity = func(clientName, clientNamespace, targetAddress string) (string, error) {
719-
curlCmd := []string{"curl", "-g", "-q", "-s", "--max-time", "5", targetAddress}
719+
curlCmd := []string{"curl", "-g", "-q", "-s", "--max-time", "2", "--insecure", targetAddress}
720720
var out string
721721
var err error
722722
if clientNamespace != "" {
@@ -846,6 +846,10 @@ var _ = ginkgo.DescribeTableSubtree("BGP: isolation between advertised networks"
846846
}
847847
return podsNetA[0].Name, podsNetA[0].Namespace, net.JoinHostPort(svcNetDefault.Spec.ClusterIPs[ipFamilyIndex], "8080") + "/clientip", out, err
848848
}),
849+
ginkgo.Entry("pod in the UDN should be able to access kapi in default network service",
850+
func(ipFamilyIndex int) (clientName string, clientNamespace string, dst string, expectedOutput string, expectErr bool) {
851+
return podsNetA[0].Name, podsNetA[0].Namespace, "https://kubernetes.default/healthz", "", false
852+
}),
849853
ginkgo.Entry("pod in the UDN should not be able to access a service in a different UDN",
850854
func(ipFamilyIndex int) (clientName string, clientNamespace string, dst string, expectedOutput string, expectErr bool) {
851855
return podsNetA[0].Name, podsNetA[0].Namespace, net.JoinHostPort(svcNetB.Spec.ClusterIPs[ipFamilyIndex], "8080") + "/clientip", curlConnectionTimeoutCode, true

0 commit comments

Comments
 (0)