zhengcanbin 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_r386008661
 
 

 ##########
 File path: 
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/KubernetesClusterDescriptorTest.java
 ##########
 @@ -47,19 +55,29 @@
  * Tests for the {@link KubernetesClusterDescriptor}.
  */
 public class KubernetesClusterDescriptorTest extends KubernetesTestBase {
-
+       private static final String MOCK_SERVICE_HOST_NAME = 
"mock-host-name-of-service";
        private static final String MOCK_SERVICE_IP = "192.168.0.1";
 
        private final ClusterSpecification clusterSpecification = new 
ClusterSpecification.ClusterSpecificationBuilder()
                .createClusterSpecification();
 
+       @Before
+       public void setup() throws Exception {
+               super.setup();
+
+               mockRestServiceWithLoadBalancer(MOCK_SERVICE_HOST_NAME, 
MOCK_SERVICE_IP);
+       }
+
        @Test
        public void testDeploySessionCluster() throws Exception {
+               mockRestServiceWithLoadBalancer(MOCK_SERVICE_HOST_NAME, 
MOCK_SERVICE_IP);
 
 Review comment:
   Fixed by 
[d78c1b1](https://github.com/apache/flink/pull/11233/commits/d78c1b1b282a3d7fcfc797bf909dca2b5f2264e4)

----------------------------------------------------------------
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