yalindogusahin commented on code in PR #794:
URL: 
https://github.com/apache/spark-kubernetes-operator/pull/794#discussion_r4015319467


##########
spark-submission-worker/src/test/java/org/apache/spark/k8s/operator/SparkClusterResourceSpecTest.java:
##########
@@ -337,6 +344,62 @@ void testWorkerNetworkPolicy() {
         from.get(1).getPodSelector().getMatchLabels());
   }
 
+  @Test
+  void testWorkerNetworkPolicyWithMetricsIngress() {
+    var scraper = new NetworkPolicyPeerBuilder()
+        .withNewNamespaceSelector()
+        .addToMatchLabels("kubernetes.io/metadata.name", "monitoring")
+        .endNamespaceSelector()
+        .build();
+    var networkPolicySpec = mock(WorkerNetworkPolicySpec.class);

Review Comment:
   Switched the tests to WorkerNetworkPolicySpec.builder() and removed the 
redundant stubs.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to