Package org.opennms.smoketest.utils
Class DevDebugUtils
- java.lang.Object
-
- org.opennms.smoketest.utils.DevDebugUtils
-
public class DevDebugUtils extends Object
Utility functions for developing and debugging our containers.- Author:
- jwhite
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTAINER_HOST_M2_SYS_PROP
static String
M2_DEV_SYS_PROP
-
Constructor Summary
Constructors Constructor Description DevDebugUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
convertToContainerAccessibleUrl(String url, String defaultAlias, int defaultPort)
static void
copyLogs(org.testcontainers.containers.Container container, Path targetLogFolder, Path sourceLogFolder, List<String> logFiles)
static void
setupMavenRepoBind(org.testcontainers.containers.Container container, String containerPath)
Bind the local repository derived from the 'org.opennms.dev.m2' system property to the specified path in the container.static void
triggerThreadDump(org.testcontainers.containers.Container container)
-
-
-
Field Detail
-
M2_DEV_SYS_PROP
public static final String M2_DEV_SYS_PROP
- See Also:
- Constant Field Values
-
CONTAINER_HOST_M2_SYS_PROP
public static final String CONTAINER_HOST_M2_SYS_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
convertToContainerAccessibleUrl
public static String convertToContainerAccessibleUrl(String url, String defaultAlias, int defaultPort)
-
setupMavenRepoBind
public static void setupMavenRepoBind(org.testcontainers.containers.Container container, String containerPath)
Bind the local repository derived from the 'org.opennms.dev.m2' system property to the specified path in the container. The path should typically be the value of the 'org.ops4j.pax.url.mvn.localRepository' property in ${karaf.home}/etc/org.ops4j.pax.url.mvn.cfg.- Parameters:
containerPath
- target path in the container
-
triggerThreadDump
public static void triggerThreadDump(org.testcontainers.containers.Container container)
-
-