integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void createInputFile(Map<String, Object> map, String generatedInputYamlFile)
      throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "Creating input yaml file at " + generatedInputYamlFile);

    DumperOptions options = new DumperOptions();
    options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
    options.setPrettyFlow(true);

    Yaml yaml = new Yaml(options);
    java.io.FileWriter writer = new java.io.FileWriter(generatedInputYamlFile);
    yaml.dump(map, writer);
    writer.close();
  }
/**
   * Creates input file.
   *
   * @param map                    - map with attributes
   * @param generatedInputYamlFile - output file with replaced values
   * @throws Exception exception
   */
Creates input file.
@param map                    - map with attributes
@param generatedInputYamlFile - output file with replaced values
@throws Exception exception
Creates input file . @param map - map with attributes @param generatedInputYamlFile - output file with replaced values @throws Exception exception
public static void createInputFile(Map<String, Object> map, String generatedInputYamlFile)
      throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "Creating input yaml file at " + generatedInputYamlFile);
    DumperOptions options = new DumperOptions();
    options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
    options.setPrettyFlow(true);
    Yaml yaml = new Yaml(options);
    java.io.FileWriter writer = new java.io.FileWriter(generatedInputYamlFile);
    yaml.dump(map, writer);
    writer.close();
  }
public static void createInputFile ( Map < String , Object > map , String generatedInputYamlFile ) throws Exception { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating input yaml file at " + generatedInputYamlFile ) ; DumperOptions options = new DumperOptions ( ) ; options . setDefaultFlowStyle ( DumperOptions . FlowStyle . BLOCK ) ; options . setPrettyFlow ( true ) ; Yaml yaml = new Yaml ( options ) ; java . io . FileWriter writer = new java . io . FileWriter ( generatedInputYamlFile ) ; yaml . dump ( map , writer ) ; writer . close ( ) ; }
Creates input file.
Creates input file .