new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
public static void createRcuSecretWithUsernamePassword(String secretName, String namespace,
      String username, String password, String sysUsername, String sysPassword) {
    Map<String, String> secretMap = new HashMap<>();
    secretMap.put("username", username);
    secretMap.put("password", password);
    secretMap.put("sys_username", sysUsername);
    secretMap.put("sys_password", sysPassword);

    boolean secretCreated = assertDoesNotThrow(() -> createSecret(new V1Secret()
        .metadata(new V1ObjectMeta()
            .name(secretName)
            .namespace(namespace))
        .stringData(secretMap)), "Create secret failed with ApiException");
    assertTrue(secretCreated, String.format("create secret failed for %s", secretName));
  }
/**
   * Create a RCU secret with username, password and sys_username, sys_password in the specified namespace.
   *
   * @param secretName secret name to create
   * @param namespace namespace in which the secret will be created
   * @param username RCU schema username
   * @param password RCU schema passowrd
   * @param sysUsername DB sys username
   * @param sysPassword DB sys password
   */
Create a RCU secret with username, password and sys_username, sys_password in the specified namespace.
Create a RCU secret with username password and sys_username sys_password in the specified namespace .
public static void createRcuSecretWithUsernamePassword(String secretName, String namespace,
      String username, String password, String sysUsername, String sysPassword) {
    Map<String, String> secretMap = new HashMap<>();
    secretMap.put("username", username);
    secretMap.put("password", password);
    secretMap.put("sys_username", sysUsername);
    secretMap.put("sys_password", sysPassword);
    boolean secretCreated = assertDoesNotThrow(() -> createSecret(new V1Secret()
        .metadata(new V1ObjectMeta()
            .name(secretName)
            .namespace(namespace))
        .stringData(secretMap)), "Create secret failed with ApiException");
    assertTrue(secretCreated, String.format("create secret failed for %s", secretName));
  }
public static void createRcuSecretWithUsernamePassword ( String secretName , String namespace , String username , String password , String sysUsername , String sysPassword ) { Map < String , String > secretMap = new HashMap < > ( ) ; secretMap . put ( "username" , username ) ; secretMap . put ( "password" , password ) ; secretMap . put ( "sys_username" , sysUsername ) ; secretMap . put ( "sys_password" , sysPassword ) ; boolean secretCreated = assertDoesNotThrow ( ( ) -> createSecret ( new V1Secret ( ) . metadata ( new V1ObjectMeta ( ) . name ( secretName ) . namespace ( namespace ) ) . stringData ( secretMap ) ) , "Create secret failed with ApiException" ) ; assertTrue ( secretCreated , String . format ( "create secret failed for %s" , secretName ) ) ; }
Create a RCU secret with username, password and sys_username, sys_password in the specified namespace.
Create a RCU secret with username password and sys_username sys_password in the specified namespace .