Package org.opennms.smoketest.utils
Class OverlayUtils
- java.lang.Object
-
- org.opennms.smoketest.utils.OverlayUtils
-
public class OverlayUtils extends Object
Utility functions for managing configuration overlays used in OpenNMS/Minion & Sentinel containers.- Author:
- jwhite
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectMapperjsonMapper
-
Constructor Summary
Constructors Constructor Description OverlayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyAndTemplate(String classpathResource, Path target, StackModel model)static voidcopyFiles(List<OverlayFile> files, Path overlayRoot)static voidsetOverlayPermissions(Path overlay)static voidsetTempPermissions(Path temp)static voidwriteFeaturesBoot(Path dest, List<String> features)static voidwriteProps(Path dest, Map<String,String> propMap)static voidwriteYaml(Path path, Map<String,Object> values)
-
-
-
Method Detail
-
copyFiles
public static void copyFiles(List<OverlayFile> files, Path overlayRoot)
-
copyAndTemplate
public static void copyAndTemplate(String classpathResource, Path target, StackModel model)
-
setOverlayPermissions
public static void setOverlayPermissions(Path overlay) throws IOException
- Throws:
IOException
-
setTempPermissions
public static void setTempPermissions(Path temp) throws IOException
- Throws:
IOException
-
writeYaml
public static void writeYaml(Path path, Map<String,Object> values) throws IOException
- Throws:
IOException
-
-