integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void deployWebAppViaWlst(
      String webappName,
      String webappLocation,
      String appLocationInPod,
      String username,
      String password,
      boolean useAdminPortToDeploy,
      int retriesForDeployment)
      throws Exception {
    String adminPod = domainUid + "-" + adminServerName;

    TestUtils.copyFileViaCat(
        webappLocation, appLocationInPod + "/" + webappName + ".war", adminPod, domainNS);

    TestUtils.copyFileViaCat(
        projectRoot + "/integration-tests/src/test/resources/deploywebapp.py",
        appLocationInPod + "/deploywebapp.py",
        adminPod,
        domainNS);

    TestUtils.copyFileViaCat(
        projectRoot + "/integration-tests/src/test/resources/callpyscript.sh",
        appLocationInPod + "/callpyscript.sh",
        adminPod,
        domainNS);

    String t3Url = "t3://" + adminPod + ":";
    if (useAdminPortToDeploy) {
      t3Url = t3Url + domainMap.getOrDefault("adminPort", 7001);
    } else {
      t3Url = t3Url + t3ChannelPort;
    }

    String[] args = {
        appLocationInPod + "/deploywebapp.py",
        BaseTest.getUsername(),
        BaseTest.getPassword(),
        t3Url,
        webappName,
        appLocationInPod + "/" + webappName + ".war",
        clusterName
    };

    TestUtils.callShellScriptByExecToPod(
        adminPod, domainNS, appLocationInPod, "callpyscript.sh", args, retriesForDeployment);
  }
/**
   * Deploy webapp using adminPort or t3 channel port.
   *
   * @param webappName           webappName
   * @param webappLocation       webappLocation
   * @param appLocationInPod     appLocationInPod
   * @param username             username
   * @param password             password
   * @param useAdminPortToDeploy useAdminPortToDeploy
   * @param retriesForDeployment number of retries to deploy the application if it fails
   * @throws Exception If deployment failed
   */
Deploy webapp using adminPort or t3 channel port.
Deploy webapp using adminPort or t3 channel port .
public void deployWebAppViaWlst(
      String webappName,
      String webappLocation,
      String appLocationInPod,
      String username,
      String password,
      boolean useAdminPortToDeploy,
      int retriesForDeployment)
      throws Exception {
    String adminPod = domainUid + "-" + adminServerName;
    TestUtils.copyFileViaCat(
        webappLocation, appLocationInPod + "/" + webappName + ".war", adminPod, domainNS);
    TestUtils.copyFileViaCat(
        projectRoot + "/integration-tests/src/test/resources/deploywebapp.py",
        appLocationInPod + "/deploywebapp.py",
        adminPod,
        domainNS);
    TestUtils.copyFileViaCat(
        projectRoot + "/integration-tests/src/test/resources/callpyscript.sh",
        appLocationInPod + "/callpyscript.sh",
        adminPod,
        domainNS);
    String t3Url = "t3://" + adminPod + ":";
    if (useAdminPortToDeploy) {
      t3Url = t3Url + domainMap.getOrDefault("adminPort", 7001);
    } else {
      t3Url = t3Url + t3ChannelPort;
    }
    String[] args = {
        appLocationInPod + "/deploywebapp.py",
        BaseTest.getUsername(),
        BaseTest.getPassword(),
        t3Url,
        webappName,
        appLocationInPod + "/" + webappName + ".war",
        clusterName
    };
    TestUtils.callShellScriptByExecToPod(
        adminPod, domainNS, appLocationInPod, "callpyscript.sh", args, retriesForDeployment);
  }
public void deployWebAppViaWlst ( String webappName , String webappLocation , String appLocationInPod , String username , String password , boolean useAdminPortToDeploy , int retriesForDeployment ) throws Exception { String adminPod = domainUid + "-" + adminServerName ; TestUtils . copyFileViaCat ( webappLocation , appLocationInPod + "/" + webappName + ".war" , adminPod , domainNS ) ; TestUtils . copyFileViaCat ( projectRoot + "/integration-tests/src/test/resources/deploywebapp.py" , appLocationInPod + "/deploywebapp.py" , adminPod , domainNS ) ; TestUtils . copyFileViaCat ( projectRoot + "/integration-tests/src/test/resources/callpyscript.sh" , appLocationInPod + "/callpyscript.sh" , adminPod , domainNS ) ; String t3Url = "t3://" + adminPod + ":" ; if ( useAdminPortToDeploy ) { t3Url = t3Url + domainMap . getOrDefault ( "adminPort" , 7001 ) ; } else { t3Url = t3Url + t3ChannelPort ; } String [ ] args = { appLocationInPod + "/deploywebapp.py" , BaseTest . getUsername ( ) , BaseTest . getPassword ( ) , t3Url , webappName , appLocationInPod + "/" + webappName + ".war" , clusterName } ; TestUtils . callShellScriptByExecToPod ( adminPod , domainNS , appLocationInPod , "callpyscript.sh" , args , retriesForDeployment ) ; }
Deploy webapp using adminPort or t3 channel port.
Deploy webapp using adminPort or t3 channel port .