new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Domain.java
public static boolean domainResourceImagePatched(
      String domainUID,
      String namespace,
      String image
  ) {
    oracle.weblogic.domain.Domain domain = null;
    try {
      domain = getDomainCustomResource(domainUID, namespace);
    } catch (ApiException apex) {
      getLogger().severe("Failed to obtain the domain resource object from the API server", apex);
      return false;
    }

    boolean domainPatched = (domain.spec().image().equals(image));
    getLogger().info("Domain Object patched : " + domainPatched + " domain image = " + domain.spec().image());
    return domainPatched;
  }
/**
   * Check if the domain resource has been patched with a new image.
   *
   * @param domainUID identifier of the domain resource
   * @param namespace Kubernetes namespace in which the domain exists
   * @param image name of the image that the pod is expected to be using
   * @return true if domain resource's image matches the expected value
   */
Check if the domain resource has been patched with a new image.
@param domainUID identifier of the domain resource
@param namespace Kubernetes namespace in which the domain exists
@param image name of the image that the pod is expected to be using
@return true if domain resource's image matches the expected value
Check if the domain resource has been patched with a new image . @param domainUID identifier of the domain resource @param namespace Kubernetes namespace in which the domain exists @param image name of the image that the pod is expected to be using @return true if domain resource ' s image matches the expected value
public static boolean domainResourceImagePatched(
      String domainUID,
      String namespace,
      String image
  ) {
    oracle.weblogic.domain.Domain domain = null;
    try {
      domain = getDomainCustomResource(domainUID, namespace);
    } catch (ApiException apex) {
      getLogger().severe("Failed to obtain the domain resource object from the API server", apex);
      return false;
    }
    boolean domainPatched = (domain.spec().image().equals(image));
    getLogger().info("Domain Object patched : " + domainPatched + " domain image = " + domain.spec().image());
    return domainPatched;
  }
public static boolean domainResourceImagePatched ( String domainUID , String namespace , String image ) { oracle . weblogic . domain . Domain domain = null ; try { domain = getDomainCustomResource ( domainUID , namespace ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( "Failed to obtain the domain resource object from the API server" , apex ) ; return false ; } boolean domainPatched = ( domain . spec ( ) . image ( ) . equals ( image ) ) ; getLogger ( ) . info ( "Domain Object patched : " + domainPatched + " domain image = " + domain . spec ( ) . image ( ) ) ; return domainPatched ; }
Check if the domain resource has been patched with a new image.
Check if the domain resource has been patched with a new image .