public class TestQuarantineManagerImpl extends Object implements TestQuarantineManager
QUARANTINE_TEST_KEY
Constructor and Description |
---|
TestQuarantineManagerImpl(TestCaseDao testCaseDao,
TestCaseResultDao testCaseResultDao,
TestsManager testsManager,
CachedPlanManager cachedPlanManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
int |
countCurrentlyQuarantinedTests(ImmutableChain chain)
Returns the number of tests current qurantined for this plan
|
List<TestCase> |
getCurrentlyQuarantinedTests(ImmutableChain chain)
Get a list of
TestCase of all the tests currently quarantined for a given plan |
List<TestCase> |
getCurrentlyQuarantinedTests(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
|
List<TestCaseResult> |
getQuarantinedTestsListForBuildResult(BuildResultsSummary buildResultsSummary)
Returns
List of TestCaseResult that are quarantined for a given build result. |
List<TestCaseResult> |
getQuarantinedTestsListForChainResult(ChainResultsSummary chainResultsSummary)
Get a list of
TestCase of all the tests quarantined for a given chain result |
void |
quarantineTest(long testId,
com.atlassian.user.User user,
Date date)
Quarantines a given test
|
void |
quarantineTest(long testId,
com.atlassian.user.User user,
Date date,
Date expiryDate)
Quarantines a given test until a specified date
|
void |
unleashTest(long testId,
com.atlassian.user.User user)
Unleash a given test
|
void |
unleashTestsWithExpiredQuarantine()
Unleashes all tests with expired quarantine.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unleashTest
public TestQuarantineManagerImpl(TestCaseDao testCaseDao, TestCaseResultDao testCaseResultDao, TestsManager testsManager, CachedPlanManager cachedPlanManager, com.atlassian.event.api.EventPublisher eventPublisher)
public void quarantineTest(long testId, @NotNull com.atlassian.user.User user, @NotNull Date date)
TestQuarantineManager
quarantineTest
in interface TestQuarantineManager
testId
- - Id of the required test caseuser
- - User quarantining testdate
- - date of test quarantinepublic void quarantineTest(long testId, @NotNull com.atlassian.user.User user, @NotNull Date date, @Nullable Date expiryDate)
TestQuarantineManager
quarantineTest
in interface TestQuarantineManager
testId
- - Id of the required test caseuser
- - User quarantining testdate
- - date of test quarantineexpiryDate
- - date of expiry for the quarantine, can be null for permanent quarantinepublic void unleashTest(long testId, com.atlassian.user.User user)
TestQuarantineManager
unleashTest
in interface TestQuarantineManager
testId
- - ID of required test caseuser
- - user who unleashed test@NotNull public List<TestCase> getCurrentlyQuarantinedTests(@NotNull ImmutableChain chain)
TestQuarantineManager
TestCase
of all the tests currently quarantined for a given plangetCurrentlyQuarantinedTests
in interface TestQuarantineManager
chain
- - the chain representing a plan to get quarantined tests forTestCase
public int countCurrentlyQuarantinedTests(ImmutableChain chain)
TestQuarantineManager
countCurrentlyQuarantinedTests
in interface TestQuarantineManager
@Nullable public List<TestCaseResult> getQuarantinedTestsListForChainResult(@NotNull ChainResultsSummary chainResultsSummary)
TestQuarantineManager
TestCase
of all the tests quarantined for a given chain resultgetQuarantinedTestsListForChainResult
in interface TestQuarantineManager
chainResultsSummary
- - results summary of the build you need quarantined tests forTestCase
of all the tests quarantined for a chain result@NotNull public List<TestCaseResult> getQuarantinedTestsListForBuildResult(@NotNull BuildResultsSummary buildResultsSummary)
TestQuarantineManager
List
of TestCaseResult
that are quarantined for a given build result.getQuarantinedTestsListForBuildResult
in interface TestQuarantineManager
buildResultsSummary
- - results summary of the build you need quarantined tests forList
of TestCaseResult
. Empty list if no quarantined tests@NotNull public List<TestCase> getCurrentlyQuarantinedTests(@NotNull ImmutableJob job)
TestQuarantineManager
getCurrentlyQuarantinedTests
in interface TestQuarantineManager
job
- to get quarantined tests forTestCase
public void unleashTestsWithExpiredQuarantine()
TestQuarantineManager
unleashTestsWithExpiredQuarantine
in interface TestQuarantineManager
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.