new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonPatchTestUtils.java
private static void checkDomainCredentialsSecretPatched(
      String domainUid,
      String namespace,
      String newValue
  ) {
    LoggingFacade logger = getLogger();
    // check if domain resource has been patched with the new secret
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info("Waiting for domain {0} to be patched in namespace {1} "
                    + "(elapsed time {2}ms, remaining time {3}ms)",
                domainUid,
                namespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(assertDoesNotThrow(() -> domainResourceCredentialsSecretPatched(domainUid, namespace, newValue),
            String.format(
                "Domain %s in namespace %s is not patched with admin credentials secret %s",
                domainUid, namespace, newValue)));

  }
/**
   * Check that domain resource has been updated with the new WebLogic domain credentials secret.
   *
   * @param domainUid name of the domain resource
   * @param namespace Kubernetes namespace that the domain is hosted
   * @param newValue new secret name for the WebLogic domain credentials secret
   */
Check that domain resource has been updated with the new WebLogic domain credentials secret.
@param domainUid name of the domain resource
@param namespace Kubernetes namespace that the domain is hosted
@param newValue new secret name for the WebLogic domain credentials secret
Check that domain resource has been updated with the new WebLogic domain credentials secret . @param domainUid name of the domain resource @param namespace Kubernetes namespace that the domain is hosted @param newValue new secret name for the WebLogic domain credentials secret
private static void checkDomainCredentialsSecretPatched(
      String domainUid,
      String namespace,
      String newValue
  ) {
    LoggingFacade logger = getLogger();
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info("Waiting for domain {0} to be patched in namespace {1} "
                    + "(elapsed time {2}ms, remaining time {3}ms)",
                domainUid,
                namespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(assertDoesNotThrow(() -> domainResourceCredentialsSecretPatched(domainUid, namespace, newValue),
            String.format(
                "Domain %s in namespace %s is not patched with admin credentials secret %s",
                domainUid, namespace, newValue)));
  }
private static void checkDomainCredentialsSecretPatched ( String domainUid , String namespace , String newValue ) { LoggingFacade logger = getLogger ( ) ; withStandardRetryPolicy . conditionEvaluationListener ( condition -> logger . info ( "Waiting for domain {0} to be patched in namespace {1} " + "(elapsed time {2}ms, remaining time {3}ms)" , domainUid , namespace , condition . getElapsedTimeInMS ( ) , condition . getRemainingTimeInMS ( ) ) ) . until ( assertDoesNotThrow ( ( ) -> domainResourceCredentialsSecretPatched ( domainUid , namespace , newValue ) , String . format ( "Domain %s in namespace %s is not patched with admin credentials secret %s" , domainUid , namespace , newValue ) ) ) ; }
Check that domain resource has been updated with the new WebLogic domain credentials secret.
Check that domain resource has been updated with the new WebLogic domain credentials secret .
// check if domain resource has been patched with the new secret