integration-tests/src/test/java/oracle/kubernetes/operator/MiiConfigUpdateBaseTest.java
protected Secret createSecrets(String domainNS, String jdbcUrl) {
    Secret secret = null;
    try {
      final String secretName = "mii-config-update-secret";
      final String username = "root";
      final String password = "root123";
      LoggerHelper.getLocal().log(Level.INFO, "jdbcUrl: " + jdbcUrl);

      // create a secret with JDBC URL, username and password
      secret = new Secret(domainNS, secretName, jdbcUrl, username, password);
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Failed to create Secret");
    }

    return secret;
  }
/**
   * Create a secret that contains the username, password and JDBC URL to MySQL.
   * @param domainNS domain namespace name
   * @param jdbcUrl JDBC URL to connect to MySQL
   */
Create a secret that contains the username, password and JDBC URL to MySQL.
@param domainNS domain namespace name
@param jdbcUrl JDBC URL to connect to MySQL
Create a secret that contains the username password and JDBC URL to MySQL . @param domainNS domain namespace name @param jdbcUrl JDBC URL to connect to MySQL
protected Secret createSecrets(String domainNS, String jdbcUrl) {
    Secret secret = null;
    try {
      final String secretName = "mii-config-update-secret";
      final String username = "root";
      final String password = "root123";
      LoggerHelper.getLocal().log(Level.INFO, "jdbcUrl: " + jdbcUrl);
      secret = new Secret(domainNS, secretName, jdbcUrl, username, password);
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Failed to create Secret");
    }
    return secret;
  }
protected Secret createSecrets ( String domainNS , String jdbcUrl ) { Secret secret = null ; try { final String secretName = "mii-config-update-secret" ; final String username = "root" ; final String password = "root123" ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "jdbcUrl: " + jdbcUrl ) ; secret = new Secret ( domainNS , secretName , jdbcUrl , username , password ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; fail ( "Failed to create Secret" ) ; } return secret ; }
Create a secret that contains the username, password and JDBC URL to MySQL.
Create a secret that contains the username password and JDBC URL to MySQL .
// create a secret with JDBC URL, username and password