new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonPatchTestUtils.java
public static String patchDomainWithNewSecretAndVerify(
      final String domainUid,
      final String namespace,
      final String adminServerPodName,
      final String managedServerPrefix,
      final int replicaCount,
      final String secretName
  ) {
    LoggingFacade logger = getLogger();
    logger.info(
        "Patch domain resource {0} in namespace {1} to use the new secret {2}",
        domainUid, namespace, secretName);

    String restartVersion = patchDomainResourceWithNewAdminSecret(domainUid, namespace, secretName);

    logger.info(
        "Check that domain resource {0} in namespace {1} has been patched with new secret {2}",
        domainUid, namespace, secretName);
    checkDomainCredentialsSecretPatched(domainUid, namespace, secretName);

    // check and wait for the admin server pod to be patched with the new secret
    logger.info(
        "Check that admin server pod for domain resource {0} in namespace {1} has been patched with {2}: {3}",
        domainUid, namespace, "/spec/webLogicCredentialsSecret/name", secretName);

    return restartVersion;
  }
/**
   * Patch domain resource with a new WebLogic domain credentials secret and a new restartVersion,
   * and verify if the domain spec has been correctly updated.
   *
   * @param domainUid name of the domain resource
   * @param namespace Kubernetes namespace that the domain is hosted
   * @param adminServerPodName name of the WebLogic admin server pod
   * @param managedServerPrefix prefix of the managed server pods
   * @param replicaCount number of managed servers to start
   * @param secretName name of the secret that is used to patch the domain resource
   * @return restartVersion of the domain resource
   */
Patch domain resource with a new WebLogic domain credentials secret and a new restartVersion,
and verify if the domain spec has been correctly updated.


Patch domain resource with a new WebLogic domain credentials secret and a new restartVersion and verify if the domain spec has been correctly updated .
public static String patchDomainWithNewSecretAndVerify(
      final String domainUid,
      final String namespace,
      final String adminServerPodName,
      final String managedServerPrefix,
      final int replicaCount,
      final String secretName
  ) {
    LoggingFacade logger = getLogger();
    logger.info(
        "Patch domain resource {0} in namespace {1} to use the new secret {2}",
        domainUid, namespace, secretName);
    String restartVersion = patchDomainResourceWithNewAdminSecret(domainUid, namespace, secretName);
    logger.info(
        "Check that domain resource {0} in namespace {1} has been patched with new secret {2}",
        domainUid, namespace, secretName);
    checkDomainCredentialsSecretPatched(domainUid, namespace, secretName);
    logger.info(
        "Check that admin server pod for domain resource {0} in namespace {1} has been patched with {2}: {3}",
        domainUid, namespace, "/spec/webLogicCredentialsSecret/name", secretName);
    return restartVersion;
  }
public static String patchDomainWithNewSecretAndVerify ( final String domainUid , final String namespace , final String adminServerPodName , final String managedServerPrefix , final int replicaCount , final String secretName ) { LoggingFacade logger = getLogger ( ) ; logger . info ( "Patch domain resource {0} in namespace {1} to use the new secret {2}" , domainUid , namespace , secretName ) ; String restartVersion = patchDomainResourceWithNewAdminSecret ( domainUid , namespace , secretName ) ; logger . info ( "Check that domain resource {0} in namespace {1} has been patched with new secret {2}" , domainUid , namespace , secretName ) ; checkDomainCredentialsSecretPatched ( domainUid , namespace , secretName ) ; logger . info ( "Check that admin server pod for domain resource {0} in namespace {1} has been patched with {2}: {3}" , domainUid , namespace , "/spec/webLogicCredentialsSecret/name" , secretName ) ; return restartVersion ; }
Patch domain resource with a new WebLogic domain credentials secret and a new restartVersion,
 and verify if the domain spec has been correctly updated.
Patch domain resource with a new WebLogic domain credentials secret and a new restartVersion and verify if the domain spec has been correctly updated .
// check and wait for the admin server pod to be patched with the new secret