new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Domain.java
public static boolean domainResourceCredentialsSecretPatched(
      String domainUID,
      String namespace,
      String secretName
  ) {
    oracle.weblogic.domain.Domain domain = null;
    try {
      domain = getDomainCustomResource(domainUID, namespace);
    } catch (ApiException apex) {
      getLogger().severe(String.format("Failed to obtain domain resource %s in namespace %s",
          domainUID, namespace), apex);
      return false;
    }

    boolean domainPatched = domain.spec().webLogicCredentialsSecret().getName().equals(secretName);
    getLogger().info("Domain {0} is patched with webLogicCredentialsSecret: {1}",
        domainUID, domain.getSpec().webLogicCredentialsSecret().getName());
    return domainPatched;
  }
/**
   * Check if the domain resource has been patched with a new WebLogic domain credentials secret.
   *
   * @param domainUID identifier of the domain resource
   * @param namespace Kubernetes namespace in which the domain exists
   * @param secretName name of the secret that the domain resource is expected to be using
   * @return true if domain resource's webLogicCredentialsSecret matches the expected value
   */
Check if the domain resource has been patched with a new WebLogic domain credentials secret.
@param domainUID identifier of the domain resource
@param namespace Kubernetes namespace in which the domain exists
@param secretName name of the secret that the domain resource is expected to be using
@return true if domain resource's webLogicCredentialsSecret matches the expected value
Check if the domain resource has been patched with a new WebLogic domain credentials secret . @param domainUID identifier of the domain resource @param namespace Kubernetes namespace in which the domain exists @param secretName name of the secret that the domain resource is expected to be using @return true if domain resource ' s webLogicCredentialsSecret matches the expected value
public static boolean domainResourceCredentialsSecretPatched(
      String domainUID,
      String namespace,
      String secretName
  ) {
    oracle.weblogic.domain.Domain domain = null;
    try {
      domain = getDomainCustomResource(domainUID, namespace);
    } catch (ApiException apex) {
      getLogger().severe(String.format("Failed to obtain domain resource %s in namespace %s",
          domainUID, namespace), apex);
      return false;
    }
    boolean domainPatched = domain.spec().webLogicCredentialsSecret().getName().equals(secretName);
    getLogger().info("Domain {0} is patched with webLogicCredentialsSecret: {1}",
        domainUID, domain.getSpec().webLogicCredentialsSecret().getName());
    return domainPatched;
  }
public static boolean domainResourceCredentialsSecretPatched ( String domainUID , String namespace , String secretName ) { oracle . weblogic . domain . Domain domain = null ; try { domain = getDomainCustomResource ( domainUID , namespace ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( String . format ( "Failed to obtain domain resource %s in namespace %s" , domainUID , namespace ) , apex ) ; return false ; } boolean domainPatched = domain . spec ( ) . webLogicCredentialsSecret ( ) . getName ( ) . equals ( secretName ) ; getLogger ( ) . info ( "Domain {0} is patched with webLogicCredentialsSecret: {1}" , domainUID , domain . getSpec ( ) . webLogicCredentialsSecret ( ) . getName ( ) ) ; return domainPatched ; }
Check if the domain resource has been patched with a new WebLogic domain credentials secret.
Check if the domain resource has been patched with a new WebLogic domain credentials secret .