Interface TestQuarantineManager

All Known Implementing Classes:
TestQuarantineManagerImpl

public interface TestQuarantineManager
Manager for manipulating all things test quarantine related
  • Field Details

  • Method Details

    • quarantineTest

      void quarantineTest(long testId, @NotNull @NotNull com.atlassian.user.User user, @NotNull @NotNull Date date)
      Quarantines a given test
      Parameters:
      testId - - Id of the required test case
      user - - User quarantining test
      date - - date of test quarantine
    • quarantineTest

      void quarantineTest(long testId, @NotNull @NotNull com.atlassian.user.User user, @NotNull @NotNull Date date, @Nullable @Nullable Date expiryDate)
      Quarantines a given test until a specified date
      Parameters:
      testId - - Id of the required test case
      user - - User quarantining test
      date - - date of test quarantine
      expiryDate - - date of expiry for the quarantine, can be null for permanent quarantine
    • unleashTest

      default void unleashTest(long testId)
      Unleash a given test
      Parameters:
      testId - - ID of required test case
    • unleashTest

      void unleashTest(long testId, @Nullable @Nullable com.atlassian.user.User user)
      Unleash a given test
      Parameters:
      testId - - ID of required test case
      user - - user who unleashed test
    • getCurrentlyQuarantinedTests

      @NotNull @NotNull List<TestCase> getCurrentlyQuarantinedTests(@NotNull @NotNull ImmutableJob job)
      Get a list of TestClass and TestCase names of all the tests currently quarantined for a given job In string form for use in the BuildContext custom config
      Parameters:
      job - to get quarantined tests for
      Returns:
      A list of TestCase
    • getCurrentlyQuarantinedTests

      @NotNull @NotNull List<TestCase> getCurrentlyQuarantinedTests(@NotNull @NotNull ImmutableChain chain)
      Get a list of TestCase of all the tests currently quarantined for a given plan
      Parameters:
      chain - - the chain representing a plan to get quarantined tests for
      Returns:
      A list of TestCase
    • countCurrentlyQuarantinedTests

      int countCurrentlyQuarantinedTests(ImmutableChain chain)
      Returns the number of tests current qurantined for this plan
      Parameters:
      chain -
      Returns:
    • getQuarantinedTestsListForChainResult

      @Nullable @Nullable List<TestCaseResult> getQuarantinedTestsListForChainResult(@NotNull @NotNull ChainResultsSummary chainResultsSummary)
      Get a list of TestCase of all the tests quarantined for a given chain result
      Parameters:
      chainResultsSummary - - results summary of the build you need quarantined tests for
      Returns:
      a list of TestCase of all the tests quarantined for a chain result
    • getQuarantinedTestsListForBuildResult

      @NotNull @NotNull List<TestCaseResult> getQuarantinedTestsListForBuildResult(@NotNull @NotNull BuildResultsSummary buildResultsSummary)
      Returns List of TestCaseResult that are quarantined for a given build result.
      Parameters:
      buildResultsSummary - - results summary of the build you need quarantined tests for
      Returns:
      List of TestCaseResult. Empty list if no quarantined tests