new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/WLSTUtils.java
public static void executeWLSTScript(Path wlstScript, Path domainProperties, String namespace) {
    final LoggingFacade logger = getLogger();
    setImage(namespace);

    String wlstScriptFileName = wlstScript.getFileName().toString();
    String wlstPropertiesFile = domainProperties.getFileName().toString();

    logger.info("Creating a config map to hold WLST script files");
    String uniqueName = Namespace.uniqueName();
    String wlstScriptConfigMapName = "wlst-scripts-cm-" + uniqueName;
    String wlstJobName = "wlst-job-" + uniqueName;

    createConfigMapFromFiles(wlstScriptConfigMapName,
        Arrays.asList(wlstScript, domainProperties), namespace);

    logger.info("Preparing to run WLST job");
    // create a V1Container with specific scripts and properties for running WLST script
    V1Container jobCreationContainer = new V1Container()
        .addCommandItem("/bin/sh")
        .addArgsItem("/u01/oracle/oracle_common/common/bin/wlst.sh")
        .addArgsItem(MOUNT_POINT + "/" + wlstScriptFileName) //WLST py script
        .addArgsItem("-skipWLSModuleScanning")
        .addArgsItem("-loadProperties")
        .addArgsItem(MOUNT_POINT + "/" + wlstPropertiesFile); //WLST property file

    assertDoesNotThrow(()
        -> createWLSTJob(wlstJobName, wlstScriptConfigMapName, namespace, jobCreationContainer),
        "Online WLST execution failed");
  }
/**
   * Execute WLST script.
   *
   * @param wlstScript WLST script file path
   * @param domainProperties domain property file path
   * @param namespace namespace in which to run the job
   */
Execute WLST script.
@param wlstScript WLST script file path
@param domainProperties domain property file path
@param namespace namespace in which to run the job
Execute WLST script . @param wlstScript WLST script file path @param domainProperties domain property file path @param namespace namespace in which to run the job
public static void executeWLSTScript(Path wlstScript, Path domainProperties, String namespace) {
    final LoggingFacade logger = getLogger();
    setImage(namespace);
    String wlstScriptFileName = wlstScript.getFileName().toString();
    String wlstPropertiesFile = domainProperties.getFileName().toString();
    logger.info("Creating a config map to hold WLST script files");
    String uniqueName = Namespace.uniqueName();
    String wlstScriptConfigMapName = "wlst-scripts-cm-" + uniqueName;
    String wlstJobName = "wlst-job-" + uniqueName;
    createConfigMapFromFiles(wlstScriptConfigMapName,
        Arrays.asList(wlstScript, domainProperties), namespace);
    logger.info("Preparing to run WLST job");
    V1Container jobCreationContainer = new V1Container()
        .addCommandItem("/bin/sh")
        .addArgsItem("/u01/oracle/oracle_common/common/bin/wlst.sh")
        .addArgsItem(MOUNT_POINT + "/" + wlstScriptFileName) 
        .addArgsItem("-skipWLSModuleScanning")
        .addArgsItem("-loadProperties")
        .addArgsItem(MOUNT_POINT + "/" + wlstPropertiesFile); 
    assertDoesNotThrow(()
        -> createWLSTJob(wlstJobName, wlstScriptConfigMapName, namespace, jobCreationContainer),
        "Online WLST execution failed");
  }
public static void executeWLSTScript ( Path wlstScript , Path domainProperties , String namespace ) { final LoggingFacade logger = getLogger ( ) ; setImage ( namespace ) ; String wlstScriptFileName = wlstScript . getFileName ( ) . toString ( ) ; String wlstPropertiesFile = domainProperties . getFileName ( ) . toString ( ) ; logger . info ( "Creating a config map to hold WLST script files" ) ; String uniqueName = Namespace . uniqueName ( ) ; String wlstScriptConfigMapName = "wlst-scripts-cm-" + uniqueName ; String wlstJobName = "wlst-job-" + uniqueName ; createConfigMapFromFiles ( wlstScriptConfigMapName , Arrays . asList ( wlstScript , domainProperties ) , namespace ) ; logger . info ( "Preparing to run WLST job" ) ; V1Container jobCreationContainer = new V1Container ( ) . addCommandItem ( "/bin/sh" ) . addArgsItem ( "/u01/oracle/oracle_common/common/bin/wlst.sh" ) . addArgsItem ( MOUNT_POINT + "/" + wlstScriptFileName ) . addArgsItem ( "-skipWLSModuleScanning" ) . addArgsItem ( "-loadProperties" ) . addArgsItem ( MOUNT_POINT + "/" + wlstPropertiesFile ) ; assertDoesNotThrow ( ( ) -> createWLSTJob ( wlstJobName , wlstScriptConfigMapName , namespace , jobCreationContainer ) , "Online WLST execution failed" ) ; }
Execute WLST script.
Execute WLST script .
// create a V1Container with specific scripts and properties for running WLST script //WLST py script //WLST property file