new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItOperatorTwoDomains.java
private void createDomainProperties(Path wlstPropertiesFile,
                                      String domainUid) {
    // create a list of properties for the WebLogic domain configuration
    Properties p = new Properties();

    p.setProperty("domain_path", "/shared/domains");
    p.setProperty("domain_name", domainUid);
    p.setProperty("cluster_name", clusterName);
    p.setProperty("admin_server_name", ADMIN_SERVER_NAME_BASE);
    p.setProperty("managed_server_port", "8001");
    p.setProperty("admin_server_port", "7001");
    p.setProperty("admin_username", ADMIN_USERNAME_DEFAULT);
    p.setProperty("admin_password", ADMIN_PASSWORD_DEFAULT);
    p.setProperty("admin_t3_public_address", K8S_NODEPORT_HOST);
    p.setProperty("admin_t3_channel_port", Integer.toString(t3ChannelPort));
    p.setProperty("number_of_ms", "4");
    p.setProperty("managed_server_name_base", MANAGED_SERVER_NAME_BASE);
    p.setProperty("domain_logs", "/shared/logs");
    p.setProperty("production_mode_enabled", "true");

    FileOutputStream fileOutputStream =
        assertDoesNotThrow(() -> new FileOutputStream(wlstPropertiesFile.toFile()),
            "new FileOutputStream failed with FileNotFoundException");
    assertDoesNotThrow(() -> p.store(fileOutputStream, "WLST properties file"),
        "Writing the property list to the specified output stream failed with IOException");
  }
/**
   * Create a properties file for WebLogic domain configuration.
   * @param wlstPropertiesFile path of the properties file
   * @param domainUid the WebLogic domain for which the properties file is created
   */
Create a properties file for WebLogic domain configuration.
@param wlstPropertiesFile path of the properties file
@param domainUid the WebLogic domain for which the properties file is created
Create a properties file for WebLogic domain configuration . @param wlstPropertiesFile path of the properties file @param domainUid the WebLogic domain for which the properties file is created
private void createDomainProperties(Path wlstPropertiesFile,
                                      String domainUid) {
    Properties p = new Properties();
    p.setProperty("domain_path", "/shared/domains");
    p.setProperty("domain_name", domainUid);
    p.setProperty("cluster_name", clusterName);
    p.setProperty("admin_server_name", ADMIN_SERVER_NAME_BASE);
    p.setProperty("managed_server_port", "8001");
    p.setProperty("admin_server_port", "7001");
    p.setProperty("admin_username", ADMIN_USERNAME_DEFAULT);
    p.setProperty("admin_password", ADMIN_PASSWORD_DEFAULT);
    p.setProperty("admin_t3_public_address", K8S_NODEPORT_HOST);
    p.setProperty("admin_t3_channel_port", Integer.toString(t3ChannelPort));
    p.setProperty("number_of_ms", "4");
    p.setProperty("managed_server_name_base", MANAGED_SERVER_NAME_BASE);
    p.setProperty("domain_logs", "/shared/logs");
    p.setProperty("production_mode_enabled", "true");
    FileOutputStream fileOutputStream =
        assertDoesNotThrow(() -> new FileOutputStream(wlstPropertiesFile.toFile()),
            "new FileOutputStream failed with FileNotFoundException");
    assertDoesNotThrow(() -> p.store(fileOutputStream, "WLST properties file"),
        "Writing the property list to the specified output stream failed with IOException");
  }
private void createDomainProperties ( Path wlstPropertiesFile , String domainUid ) { Properties p = new Properties ( ) ; p . setProperty ( "domain_path" , "/shared/domains" ) ; p . setProperty ( "domain_name" , domainUid ) ; p . setProperty ( "cluster_name" , clusterName ) ; p . setProperty ( "admin_server_name" , ADMIN_SERVER_NAME_BASE ) ; p . setProperty ( "managed_server_port" , "8001" ) ; p . setProperty ( "admin_server_port" , "7001" ) ; p . setProperty ( "admin_username" , ADMIN_USERNAME_DEFAULT ) ; p . setProperty ( "admin_password" , ADMIN_PASSWORD_DEFAULT ) ; p . setProperty ( "admin_t3_public_address" , K8S_NODEPORT_HOST ) ; p . setProperty ( "admin_t3_channel_port" , Integer . toString ( t3ChannelPort ) ) ; p . setProperty ( "number_of_ms" , "4" ) ; p . setProperty ( "managed_server_name_base" , MANAGED_SERVER_NAME_BASE ) ; p . setProperty ( "domain_logs" , "/shared/logs" ) ; p . setProperty ( "production_mode_enabled" , "true" ) ; FileOutputStream fileOutputStream = assertDoesNotThrow ( ( ) -> new FileOutputStream ( wlstPropertiesFile . toFile ( ) ) , "new FileOutputStream failed with FileNotFoundException" ) ; assertDoesNotThrow ( ( ) -> p . store ( fileOutputStream , "WLST properties file" ) , "Writing the property list to the specified output stream failed with IOException" ) ; }
Create a properties file for WebLogic domain configuration.
Create a properties file for WebLogic domain configuration .
// create a list of properties for the WebLogic domain configuration