new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItConfigDistributionStrategy.java
@Order(5)
  @Test
  @DisplayName("Test invalid overrideDistributionStrategy value RESTART")
  public void testOverrideNegative() {

    //patching the domain with /spec/configuration/overrideDistributionStrategy: RESTART
    String patchStr = "["
        + "{\"op\": \"add\", \"path\": \"/spec/configuration/overrideDistributionStrategy\", "
        + "\"value\": \"RESTART\"}"
        + "]";
    logger.info("Updating domain configuration using patch string: {0}", patchStr);
    V1Patch patch = new V1Patch(patchStr);
    assertFalse(patchDomainCustomResource(domainUid, domainNamespace, patch, V1Patch.PATCH_FORMAT_JSON_PATCH),
        "Patch domain with invalid overrideDistributionStrategy succeeded.");

    //verify the overrides are not applied and original configuration is still effective
    verifyConfigXMLOverride(false);
  }
/**
   * Test patching the domain with values for /spec/configuration/overrideDistributionStrategy field anything other than
   * DYNAMIC or ON_RESTART fails.
   *
   * <p>Test tries to set the above field to RESTART and asserts the patching fails.
   */
Test patching the domain with values for /spec/configuration/overrideDistributionStrategy field anything other than
DYNAMIC or ON_RESTART fails.

Test tries to set the above field to RESTART and asserts the patching fails.
Test patching the domain with values for / spec / configuration / overrideDistributionStrategy field anything other than DYNAMIC or ON_RESTART fails . Test tries to set the above field to RESTART and asserts the patching fails .
@Order(5)
  @Test
  @DisplayName("Test invalid overrideDistributionStrategy value RESTART")
  public void testOverrideNegative() {
    String patchStr = "["
        + "{\"op\": \"add\", \"path\": \"/spec/configuration/overrideDistributionStrategy\", "
        + "\"value\": \"RESTART\"}"
        + "]";
    logger.info("Updating domain configuration using patch string: {0}", patchStr);
    V1Patch patch = new V1Patch(patchStr);
    assertFalse(patchDomainCustomResource(domainUid, domainNamespace, patch, V1Patch.PATCH_FORMAT_JSON_PATCH),
        "Patch domain with invalid overrideDistributionStrategy succeeded.");
    verifyConfigXMLOverride(false);
  }
@ Order ( 5 ) @ Test @ DisplayName ( "Test invalid overrideDistributionStrategy value RESTART" ) public void testOverrideNegative ( ) { String patchStr = "[" + "{\"op\": \"add\", \"path\": \"/spec/configuration/overrideDistributionStrategy\", " + "\"value\": \"RESTART\"}" + "]" ; logger . info ( "Updating domain configuration using patch string: {0}" , patchStr ) ; V1Patch patch = new V1Patch ( patchStr ) ; assertFalse ( patchDomainCustomResource ( domainUid , domainNamespace , patch , V1Patch . PATCH_FORMAT_JSON_PATCH ) , "Patch domain with invalid overrideDistributionStrategy succeeded." ) ; verifyConfigXMLOverride ( false ) ; }
Test patching the domain with values for /spec/configuration/overrideDistributionStrategy field anything other than
 DYNAMIC or ON_RESTART fails.
Test patching the domain with values for / spec / configuration / overrideDistributionStrategy field anything other than DYNAMIC or ON_RESTART fails .
//patching the domain with /spec/configuration/overrideDistributionStrategy: RESTART //verify the overrides are not applied and original configuration is still effective