Class BaseInProductDiagnosticsTest

java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.EmailBaseFuncTestCase
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.ipd.BaseInProductDiagnosticsTest
All Implemented Interfaces:
FunctTestConstants
Direct Known Subclasses:
IncomingMailServerConnectionTest, OutgoingMailServerConnectionTest, TestDatabaseConnectionLost, TestIpdEmittingLastValueMetrics, TestIpdEmittingStatisticMetrics, TestIpdMailJobRunning, TestIpdMetricCollector, TestIpdTool, TestIpdUserDirectoryMetrics, TestMailQueueItemsInProductDiagnosticJob

public abstract class BaseInProductDiagnosticsTest extends EmailBaseFuncTestCase
  • Field Details

    • SHORT_LOG_STATS_ATTRIBUTES

      protected static final String[] SHORT_LOG_STATS_ATTRIBUTES
    • ALL_LOG_STATS_ATTRIBUTES

      protected static final String[] ALL_LOG_STATS_ATTRIBUTES
    • JMX_STATS_ATTRIBUTES

      protected static final String[] JMX_STATS_ATTRIBUTES
    • JMX_VALUE_ATTRIBUTE

      protected static final String JMX_VALUE_ATTRIBUTE
      See Also:
    • LOG_VALUE_ATTRIBUTE

      protected static final String LOG_VALUE_ATTRIBUTE
      See Also:
    • UNEXPECTED_JMX_VALUE

      protected static final double UNEXPECTED_JMX_VALUE
      See Also:
    • profilingControl

      protected ProfilingControl profilingControl
    • administration

      protected Administration administration
  • Constructor Details

    • BaseInProductDiagnosticsTest

      public BaseInProductDiagnosticsTest()
  • Method Details

    • setUp

      public void setUp()
    • createMailService

      public void createMailService()
      Overrides:
      createMailService in class EmailBaseFuncTestCase
    • stopMailService

      public void stopMailService()
      Overrides:
      stopMailService in class EmailBaseFuncTestCase
    • getIrregularMetrics

      public static Stream<String> getIrregularMetrics()
    • getStatsMetrics

      public static Stream<String> getStatsMetrics()
    • getLastValueMetrics

      public static Stream<String> getLastValueMetrics()
    • getCounterMetrics

      public static Stream<String> getCounterMetrics()
    • getCustomMetrics

      public static Stream<String> getCustomMetrics()
    • getAllTypesMetricsWithoutOnDemand

      protected Stream<String> getAllTypesMetricsWithoutOnDemand()
    • enableIPDFeature

      protected void enableIPDFeature()
    • disableIPDFeature

      protected void disableIPDFeature()
    • enableIpdWipFeature

      protected void enableIpdWipFeature()
    • disableIpdWipFeature

      protected void disableIpdWipFeature()
    • enableIPDExtraLogging

      protected void enableIPDExtraLogging()
    • disableIPDExtraLogging

      protected void disableIPDExtraLogging()
    • assertIPDFeatureState

      protected void assertIPDFeatureState(boolean flagState)
    • readDistinctRegularLogMetricsInIpdLogFile

      protected List<IpdLogEntry> readDistinctRegularLogMetricsInIpdLogFile() throws IOException
      Throws:
      IOException
    • readMetricsInLogFileOnCondition

      protected List<IpdLogEntry> readMetricsInLogFileOnCondition(File logfile, BooleanSupplier supplier) throws IOException
      Throws:
      IOException
    • readOnDemandMetricsInIpdLogFile

      protected List<IpdLogEntry> readOnDemandMetricsInIpdLogFile(File logfile) throws IOException
      Throws:
      IOException
    • readOnDemandMetricsInIpdLogFile

      protected List<IpdLogEntry> readOnDemandMetricsInIpdLogFile() throws IOException
      Throws:
      IOException
    • cleanIpdLogFile

      protected void cleanIpdLogFile() throws IOException
      Throws:
      IOException
    • getJmxObjectWithStats

      protected Map<String,Object> getJmxObjectWithStats(String objectName)
    • getJmxObjectWithValue

      protected Map<String,Object> getJmxObjectWithValue(String objectName)
    • getRemotelyJmxObjectWithStats

      protected Map<String,Object> getRemotelyJmxObjectWithStats(String objectName)
      Jira must have an open port for JMX RMI connection and disabled authentication
    • getRemotelyJmxObjectWithValue

      protected Map<String,Object> getRemotelyJmxObjectWithValue(String objectName)
      Jira must have an open port for JMX RMI connection and disabled authentication
    • getJmxObject

      protected Map<String,Object> getJmxObject(String objectName, String... attributes)
    • getMetricObjectName

      protected String getMetricObjectName(String simpleName)
    • getMetricObjectName

      protected String getMetricObjectName(String objectName, Map<String,String> tags)
    • fetchIpdLogEntryWithRetry

      protected List<IpdLogEntry> fetchIpdLogEntryWithRetry(String entryLabel)
    • restartJmx

      protected void restartJmx()