new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiDomain.java
private void patchDomainResourceImage(
      String domainResourceName,
      String namespace,
      String image
  ) {
    String patch = 
        String.format("[\n  {\"op\": \"replace\", \"path\": \"/spec/image\", \"value\": \"%s\"}\n]\n",
            image);
    logger.info("About to patch the domain resource {0} in namespace {1} with:{2}\n",
        domainResourceName, namespace, patch);

    assertTrue(patchDomainCustomResource(
            domainResourceName,
            namespace,
            new V1Patch(patch),
            V1Patch.PATCH_FORMAT_JSON_PATCH),
        String.format("Failed to patch the domain resource {0} in namespace {1} with image {2}",
            domainResourceName, namespace, image));
  }
/**
   * Patch the domain resource with a new image.
   * Here is an example of the JSON patch string that is constructed in this method.
   * [
   *   {"op": "replace", "path": "/spec/image", "value": "mii-image:v2" }
   * ]
   * 
   * @param domainResourceName name of the domain resource
   * @param namespace Kubernetes namespace that the domain is hosted
   * @param image name of the new image
   */
Patch the domain resource with a new image.
Here is an example of the JSON patch string that is constructed in this method.

@param domainResourceName name of the domain resource
@param namespace Kubernetes namespace that the domain is hosted
@param image name of the new image
Patch the domain resource with a new image . Here is an example of the JSON patch string that is constructed in this method . @param domainResourceName name of the domain resource @param namespace Kubernetes namespace that the domain is hosted @param image name of the new image
private void patchDomainResourceImage(
      String domainResourceName,
      String namespace,
      String image
  ) {
    String patch = 
        String.format("[\n  {\"op\": \"replace\", \"path\": \"/spec/image\", \"value\": \"%s\"}\n]\n",
            image);
    logger.info("About to patch the domain resource {0} in namespace {1} with:{2}\n",
        domainResourceName, namespace, patch);
    assertTrue(patchDomainCustomResource(
            domainResourceName,
            namespace,
            new V1Patch(patch),
            V1Patch.PATCH_FORMAT_JSON_PATCH),
        String.format("Failed to patch the domain resource {0} in namespace {1} with image {2}",
            domainResourceName, namespace, image));
  }
private void patchDomainResourceImage ( String domainResourceName , String namespace , String image ) { String patch = String . format ( "[\n  {\"op\": \"replace\", \"path\": \"/spec/image\", \"value\": \"%s\"}\n]\n" , image ) ; logger . info ( "About to patch the domain resource {0} in namespace {1} with:{2}\n" , domainResourceName , namespace , patch ) ; assertTrue ( patchDomainCustomResource ( domainResourceName , namespace , new V1Patch ( patch ) , V1Patch . PATCH_FORMAT_JSON_PATCH ) , String . format ( "Failed to patch the domain resource {0} in namespace {1} with image {2}" , domainResourceName , namespace , image ) ) ; }
Patch the domain resource with a new image.
Patch the domain resource with a new image .