new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Domain.java
public static boolean adminNodePortAccessible(int nodePort, String userName, String password)
      throws IOException {

    LoggingFacade logger = getLogger();

    String consoleUrl = new StringBuffer()
        .append("http://")
        .append(K8S_NODEPORT_HOST)
        .append(":")
        .append(nodePort)
        .append("/console/login/LoginForm.jsp").toString();

    getLogger().info("Accessing WebLogic console with url {0}", consoleUrl);
    final WebClient webClient = new WebClient();
    final HtmlPage loginPage = assertDoesNotThrow(() -> webClient.getPage(consoleUrl),
        "connection to the WebLogic admin console failed");
    HtmlForm form = loginPage.getFormByName("loginData");
    form.getInputByName("j_username").type(userName);
    form.getInputByName("j_password").type(password);
    HtmlElement submit = form.getOneHtmlElementByAttribute("input", "type", "submit");
    getLogger().info("Clicking login button");
    HtmlPage home = submit.click();
    assertTrue(home.asText().contains("Persistent Stores"), "Home does not contain Persistent Stores text");
    getLogger().info("Console login passed");
    return true;
  }
/**
   * Verify admin node port(default/t3channel) is accessible by login to WebLogic console
   * using the node port and validate its the Home page.
   *
   * @param nodePort the node port that needs to be tested for access
   * @param userName WebLogic administration server user name
   * @param password WebLogic administration server password
   * @return true if login to WebLogic administration console is successful
   * @throws IOException when connection to console fails
   */
Verify admin node port(default/t3channel) is accessible by login to WebLogic console
using the node port and validate its the Home page.


Verify admin node port ( default / t3channel ) is accessible by login to WebLogic console using the node port and validate its the Home page .
public static boolean adminNodePortAccessible(int nodePort, String userName, String password)
      throws IOException {
    LoggingFacade logger = getLogger();
    String consoleUrl = new StringBuffer()
        .append("http://")
        .append(K8S_NODEPORT_HOST)
        .append(":")
        .append(nodePort)
        .append("/console/login/LoginForm.jsp").toString();
    getLogger().info("Accessing WebLogic console with url {0}", consoleUrl);
    final WebClient webClient = new WebClient();
    final HtmlPage loginPage = assertDoesNotThrow(() -> webClient.getPage(consoleUrl),
        "connection to the WebLogic admin console failed");
    HtmlForm form = loginPage.getFormByName("loginData");
    form.getInputByName("j_username").type(userName);
    form.getInputByName("j_password").type(password);
    HtmlElement submit = form.getOneHtmlElementByAttribute("input", "type", "submit");
    getLogger().info("Clicking login button");
    HtmlPage home = submit.click();
    assertTrue(home.asText().contains("Persistent Stores"), "Home does not contain Persistent Stores text");
    getLogger().info("Console login passed");
    return true;
  }
public static boolean adminNodePortAccessible ( int nodePort , String userName , String password ) throws IOException { LoggingFacade logger = getLogger ( ) ; String consoleUrl = new StringBuffer ( ) . append ( "http://" ) . append ( K8S_NODEPORT_HOST ) . append ( ":" ) . append ( nodePort ) . append ( "/console/login/LoginForm.jsp" ) . toString ( ) ; getLogger ( ) . info ( "Accessing WebLogic console with url {0}" , consoleUrl ) ; final WebClient webClient = new WebClient ( ) ; final HtmlPage loginPage = assertDoesNotThrow ( ( ) -> webClient . getPage ( consoleUrl ) , "connection to the WebLogic admin console failed" ) ; HtmlForm form = loginPage . getFormByName ( "loginData" ) ; form . getInputByName ( "j_username" ) . type ( userName ) ; form . getInputByName ( "j_password" ) . type ( password ) ; HtmlElement submit = form . getOneHtmlElementByAttribute ( "input" , "type" , "submit" ) ; getLogger ( ) . info ( "Clicking login button" ) ; HtmlPage home = submit . click ( ) ; assertTrue ( home . asText ( ) . contains ( "Persistent Stores" ) , "Home does not contain Persistent Stores text" ) ; getLogger ( ) . info ( "Console login passed" ) ; return true ; }
Verify admin node port(default/t3channel) is accessible by login to WebLogic console
 using the node port and validate its the Home page.
Verify admin node port ( default / t3channel ) is accessible by login to WebLogic console using the node port and validate its the Home page .