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.ObjectMapper
jsonMapper
-
Constructor Summary
Constructors Constructor Description OverlayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyAndTemplate(String classpathResource, Path target, StackModel model)
static void
copyFiles(List<OverlayFile> files, Path overlayRoot)
static void
setOverlayPermissions(Path overlay)
static void
setTempPermissions(Path temp)
static void
writeFeaturesBoot(Path dest, List<String> features)
static void
writeProps(Path dest, Map<String,String> propMap)
static void
writeYaml(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
-
-