You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/network/service.go
+45-5Lines changed: 45 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -911,6 +911,12 @@ var _ = SIGDescribe("Services", func() {
911
911
}
912
912
})
913
913
914
+
/*
915
+
Testname: Service, update NodePort, same port different protocol
916
+
Description: Create a service of type ClusterIP to accept TCP requests. Service creation MUST be successful by assigning ClusterIP to the service.
917
+
When service type is updated to NodePort to support two protocols i.e. TCP and UDP for same assigned service port 80, service update MUST be successful by allocating two NodePorts to the service.
918
+
TODO: Test Service reachability, good to include this check in Conformance perspective.
919
+
*/
914
920
ginkgo.It("should be able to update NodePorts with two same port numbers but different protocols", func() {
915
921
serviceName:="nodeport-update-service"
916
922
ns:=f.Namespace.Name
@@ -928,7 +934,6 @@ var _ = SIGDescribe("Services", func() {
928
934
e2elog.Logf("service port TCP: %d", svcPort)
929
935
930
936
// Change the services to NodePort and add a UDP port.
931
-
932
937
ginkgo.By("changing the TCP service to type=NodePort and add a UDP port")
@@ -958,7 +963,14 @@ var _ = SIGDescribe("Services", func() {
958
963
}
959
964
})
960
965
961
-
ginkgo.It("should be able to change the type from ExternalName to ClusterIP", func() {
966
+
/*
967
+
Release: v1.16
968
+
Testname: Service, change type, ExternalName to ClusterIP
969
+
Description: Create a service of type ExternalName, pointing to external DNS. ClusterIP MUST not be assigned to the service.
970
+
Update the service from ExternalName to ClusterIP by removing ExternalName entry, assigning port 80 as service port and TCP as protocol.
971
+
Service update MUST be successful by assigning ClusterIP to the service and it MUST be reachable over serviceName and ClusterIP on provided service port.
972
+
*/
973
+
framework.ConformanceIt("should be able to change the type from ExternalName to ClusterIP", func() {
962
974
serviceName:="externalname-service"
963
975
ns:=f.Namespace.Name
964
976
jig:=e2eservice.NewTestJig(cs, serviceName)
@@ -986,7 +998,15 @@ var _ = SIGDescribe("Services", func() {
ginkgo.It("should be able to change the type from ExternalName to NodePort", func() {
1001
+
/*
1002
+
Release: v1.16
1003
+
Testname: Service, change type, ExternalName to NodePort
1004
+
Description: Create a service of type ExternalName, pointing to external DNS. ClusterIP MUST not be assigned to the service.
1005
+
Update the service from ExternalName to NodePort, assigning port 80 as service port and, TCP as protocol.
1006
+
service update MUST be successful by exposing service on every node's IP on dynamically assigned NodePort and, ClusterIP MUST be assigned to route service requests.
1007
+
Service MUST be reachable over serviceName and the ClusterIP on servicePort. Service MUST also be reachable over node's IP on NodePort.
1008
+
*/
1009
+
framework.ConformanceIt("should be able to change the type from ExternalName to NodePort", func() {
990
1010
serviceName:="externalname-service"
991
1011
ns:=f.Namespace.Name
992
1012
jig:=e2eservice.NewTestJig(cs, serviceName)
@@ -1014,7 +1034,14 @@ var _ = SIGDescribe("Services", func() {
ginkgo.It("should be able to change the type from ClusterIP to ExternalName", func() {
1037
+
/*
1038
+
Release: v1.16
1039
+
Testname: Service, change type, ClusterIP to ExternalName
1040
+
Description: Create a service of type ClusterIP. Service creation MUST be successful by assigning ClusterIP to the service.
1041
+
Update service type from ClusterIP to ExternalName by setting CNAME entry as externalName. Service update MUST be successful and service MUST not has associated ClusterIP.
1042
+
Service MUST be able to resolve to IP address by returning A records ensuring service is pointing to provided externalName.
1043
+
*/
1044
+
framework.ConformanceIt("should be able to change the type from ClusterIP to ExternalName", func() {
1018
1045
serviceName:="clusterip-service"
1019
1046
ns:=f.Namespace.Name
1020
1047
jig:=e2eservice.NewTestJig(cs, serviceName)
@@ -1045,7 +1072,14 @@ var _ = SIGDescribe("Services", func() {
ginkgo.It("should be able to change the type from NodePort to ExternalName", func() {
1075
+
/*
1076
+
Release: v1.16
1077
+
Testname: Service, change type, NodePort to ExternalName
1078
+
Description: Create a service of type NodePort. Service creation MUST be successful by exposing service on every node's IP on dynamically assigned NodePort and, ClusterIP MUST be assigned to route service requests.
1079
+
Update the service type from NodePort to ExternalName by setting CNAME entry as externalName. Service update MUST be successful and, MUST not has ClusterIP associated with the service and, allocated NodePort MUST be released.
1080
+
Service MUST be able to resolve to IP address by returning A records ensuring service is pointing to provided externalName.
1081
+
*/
1082
+
framework.ConformanceIt("should be able to change the type from NodePort to ExternalName", func() {
1049
1083
serviceName:="nodeport-service"
1050
1084
ns:=f.Namespace.Name
1051
1085
jig:=e2eservice.NewTestJig(cs, serviceName)
@@ -1080,6 +1114,12 @@ var _ = SIGDescribe("Services", func() {
1080
1114
1081
1115
})
1082
1116
1117
+
/*
1118
+
Testname: Service, NodePort, same port different protocols
1119
+
Description: Create a service of type NodePort listening on port 53 for two protocols TCP and UDP.
1120
+
Service creation MUST be successful by assigning a ClusterIP and two unique nodePorts for each protocol, making service reachable on every node's IP and nodePort.
1121
+
TODO: Test Service reachability, good to include this check in Conformance perspective.
1122
+
*/
1083
1123
ginkgo.It("should use same NodePort with same port but different protocols", func() {
0 commit comments