integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void createWldfModule(String adminPodName, String domainNS, int t3ChannelPort)
      throws Exception {

    // copy wldf.py script tp pod
    copyFileViaCat(
        BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/wldf/wldf.py",
        BaseTest.getAppLocationInPod() + "/wldf.py",
        adminPodName,
        domainNS);

    // copy callpyscript.sh to pod
    copyFileViaCat(
        BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/callpyscript.sh",
        BaseTest.getAppLocationInPod() + "/callpyscript.sh",
        adminPodName,
        domainNS);

    // arguments to shell script to call py script

    String[] args = {
        BaseTest.getAppLocationInPod() + "/wldf.py",
        BaseTest.getUsername(),
        BaseTest.getPassword(),
        " t3://"
            + adminPodName
            + ":"
            + t3ChannelPort,

    };

    // call callpyscript.sh in pod to deploy wldf module
    TestUtils.callShellScriptByExecToPod(
        adminPodName, domainNS, BaseTest.getAppLocationInPod(), "callpyscript.sh", args);
  }
/**
   * Create WLDF module.
   * @param adminPodName admin pod name
   * @param domainNS namespace
   * @param t3ChannelPort T3 port
   * @throws Exception on failure
   */
Create WLDF module.
@param adminPodName admin pod name
@param domainNS namespace
@param t3ChannelPort T3 port
@throws Exception on failure
Create WLDF module . @param adminPodName admin pod name @param domainNS namespace @param t3ChannelPort T3 port @throws Exception on failure
public static void createWldfModule(String adminPodName, String domainNS, int t3ChannelPort)
      throws Exception {
    copyFileViaCat(
        BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/wldf/wldf.py",
        BaseTest.getAppLocationInPod() + "/wldf.py",
        adminPodName,
        domainNS);
    copyFileViaCat(
        BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/callpyscript.sh",
        BaseTest.getAppLocationInPod() + "/callpyscript.sh",
        adminPodName,
        domainNS);
    String[] args = {
        BaseTest.getAppLocationInPod() + "/wldf.py",
        BaseTest.getUsername(),
        BaseTest.getPassword(),
        " t3://"
            + adminPodName
            + ":"
            + t3ChannelPort,
    };
    TestUtils.callShellScriptByExecToPod(
        adminPodName, domainNS, BaseTest.getAppLocationInPod(), "callpyscript.sh", args);
  }
public static void createWldfModule ( String adminPodName , String domainNS , int t3ChannelPort ) throws Exception { copyFileViaCat ( BaseTest . getProjectRoot ( ) + "/integration-tests/src/test/resources/wldf/wldf.py" , BaseTest . getAppLocationInPod ( ) + "/wldf.py" , adminPodName , domainNS ) ; copyFileViaCat ( BaseTest . getProjectRoot ( ) + "/integration-tests/src/test/resources/callpyscript.sh" , BaseTest . getAppLocationInPod ( ) + "/callpyscript.sh" , adminPodName , domainNS ) ; String [ ] args = { BaseTest . getAppLocationInPod ( ) + "/wldf.py" , BaseTest . getUsername ( ) , BaseTest . getPassword ( ) , " t3://" + adminPodName + ":" + t3ChannelPort , } ; TestUtils . callShellScriptByExecToPod ( adminPodName , domainNS , BaseTest . getAppLocationInPod ( ) , "callpyscript.sh" , args ) ; }
Create WLDF module.
Create WLDF module .
// copy wldf.py script tp pod // copy callpyscript.sh to pod // arguments to shell script to call py script // call callpyscript.sh in pod to deploy wldf module