components/global/core/io.cellery.observability.k8s.client/src/test/java/io/cellery/observability/k8s/client/BaseTestCase.java
Pod generateCelleryCompositeComponentPod(String composite, String component) {
        String podName = composite + "--" + component;

        Map<String, String> labels = new HashMap<>();
        labels.put(Constants.CELLERY_OBSERVABILITY_INSTANCE_LABEL, composite);
        labels.put(Constants.CELLERY_OBSERVABILITY_INSTANCE_KIND_LABEL, Constants.COMPOSITE_KIND);
        labels.put(Constants.CELLERY_OBSERVABILITY_COMPONENT_NAME_LABEL, component);

        PodStatus podStatus = new PodStatusBuilder()
                .withPhase("Running")
                .build();
        return generatePod(podName, labels, podStatus);
    }
/**
     * Generate a Cellery Composite Component K8s pod object.
     * The returned pod can be used as one of the returned pods in K8s Mock Server in expectation mode.
     *
     * @param composite The Composite the Pod belongs to
     * @param component The component of the Composite the pod belongs to
     * @return The generated pod
     */
Generate a Cellery Composite Component K8s pod object.
The returned pod can be used as one of the returned pods in K8s Mock Server in expectation mode.

@param composite The Composite the Pod belongs to
@param component The component of the Composite the pod belongs to
@return The generated pod
Generate a Cellery Composite Component K8s pod object . The returned pod can be used as one of the returned pods in K8s Mock Server in expectation mode . @param composite The Composite the Pod belongs to @param component The component of the Composite the pod belongs to @return The generated pod
Pod generateCelleryCompositeComponentPod(String composite, String component) {
        String podName = composite + "--" + component;
        Map<String, String> labels = new HashMap<>();
        labels.put(Constants.CELLERY_OBSERVABILITY_INSTANCE_LABEL, composite);
        labels.put(Constants.CELLERY_OBSERVABILITY_INSTANCE_KIND_LABEL, Constants.COMPOSITE_KIND);
        labels.put(Constants.CELLERY_OBSERVABILITY_COMPONENT_NAME_LABEL, component);
        PodStatus podStatus = new PodStatusBuilder()
                .withPhase("Running")
                .build();
        return generatePod(podName, labels, podStatus);
    }
Pod generateCelleryCompositeComponentPod ( String composite , String component ) { String podName = composite + "--" + component ; Map < String , String > labels = new HashMap < > ( ) ; labels . put ( Constants . CELLERY_OBSERVABILITY_INSTANCE_LABEL , composite ) ; labels . put ( Constants . CELLERY_OBSERVABILITY_INSTANCE_KIND_LABEL , Constants . COMPOSITE_KIND ) ; labels . put ( Constants . CELLERY_OBSERVABILITY_COMPONENT_NAME_LABEL , component ) ; PodStatus podStatus = new PodStatusBuilder ( ) . withPhase ( "Running" ) . build ( ) ; return generatePod ( podName , labels , podStatus ) ; }
Generate a Cellery Composite Component K8s pod object.
Generate a Cellery Composite Component K8s pod object .