wangyang0918 commented on a change in pull request #11233: [FLINK-16194][k8s] 
Refactor the Kubernetes decorator design
URL: https://github.com/apache/flink/pull/11233#discussion_r385616888
 
 

 ##########
 File path: 
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesClusterDescriptorTest.java
 ##########
 @@ -147,4 +173,30 @@ public void testKillCluster() throws Exception {
 
                return clusterClient;
        }
+
+       private void mockRestServiceWithLoadBalancer(@Nullable String hostname, 
@Nullable String ip) {
+               final String restServiceName = 
KubernetesUtils.getRestServiceName(CLUSTER_ID);
+
+               final String path = 
String.format("/api/v1/namespaces/%s/services/%s", NAMESPACE, restServiceName);
+               server.expect()
+                       .withPath(path)
+                       .andReturn(200, buildMockRestService(hostname, ip))
+                       .always();
+       }
+
+       private Service buildMockRestService(@Nullable String hostname, 
@Nullable String ip) {
 
 Review comment:
   `@Nullable` could be removed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to