Class BaseServerTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- jetbrains.buildServer.MockSupport
-
- jetbrains.buildServer.AfterTestHook
-
- jetbrains.buildServer.BaseTestCase
-
- jetbrains.buildServer.serverSide.db.BaseDatabaseTestCase
-
- jetbrains.buildServer.serverSide.impl.BaseServerTestCase
-
- All Implemented Interfaces:
WaitForAssertions
,org.testng.IHookable
,org.testng.ITestNGListener
- Direct Known Subclasses:
BaseNotificationRulesTestCase
,BaseRunBuildChainTestCase
,BaseSecondaryNodeTest
,BaseWebTestCase
,PolledBuildTriggerTestCase
,PrinterTestCase
,RemoteRunBaseTestCase
public abstract class BaseServerTestCase extends BaseDatabaseTestCase
This is the superclass (parent class) for tests, which includes multiple helpful utilities.- Author:
- Kir
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseServerTestCase.TestBuildServerImpl
-
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.db.BaseDatabaseTestCase
BaseDatabaseTestCase.SQLWork
-
Nested classes/interfaces inherited from class jetbrains.buildServer.BaseTestCase
BaseTestCase.UnderLockedFile
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildAgentManagerEx
myAgentManager
protected AuditLogFactory
myAuditLogFactory
protected MockBuildAgent
myBuildAgent
protected BuildTypeEx
myBuildType
protected SQLRunnerEx
myDb
protected BuildServerCreator
myFixture
protected CachingNumericIdSequences
myIdSequences
protected LoginConfigurationImpl
myLoginConfiguration
protected ProjectEx
myProject
protected ProjectManagerEx
myProjectManager
protected BaseServerTestCase.TestBuildServerImpl
myServer
protected WebLinks
myWebLinks
static Counter
NOOP_COUNTER
-
Fields inherited from class jetbrains.buildServer.serverSide.db.BaseDatabaseTestCase
dbType, ourDialect, ourQueryBuilder
-
Fields inherited from class jetbrains.buildServer.BaseTestCase
IS_WINDOWS, myTestLogger, OS_NAME
-
Fields inherited from class jetbrains.buildServer.MockSupport
ANYTHING, NOT_NULL, NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseServerTestCase()
BaseServerTestCase(String name)
-
Method Summary
-
Methods inherited from class jetbrains.buildServer.serverSide.db.BaseDatabaseTestCase
assertNoTableRows, cleanupTable, cleanupTables, cleanupTables, countTableRows, createEmptyServerPath, dumpTable, dumpTable, dumpTables, dumpTables, ensureCleanSchema, ensureCleanTable, ensureCleanTable, ensureNoTables, ensureSingleRowTable, executeScript, populateTablesWithSimpleData, provideDatabaseHsql2Only, provideDatabaseMsOnly, provideDatabaseTypeMySQLOnly, provideDatabaseTypeNotHSQL, provideDatabaseTypeNotMySQL, provideDatabaseTypeSupportI18n, provideWithCurrentDatabaseType, runTwoQueries, runTwoThreads, setUpClassStatic, withDBF, withDBF
-
Methods inherited from class jetbrains.buildServer.BaseTestCase
assertArraysEqual, assertArraysEqual, assertContains, assertContains, assertContains, assertContains, assertContains, assertContainsAll, assertContainsAny, assertContainsWithCount, assertEmpty, assertEmpty, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsIgnoreNonBMP, assertExceptionThrown, assertExceptionThrown, assertExceptionThrown, assertExceptionThrown, assertExceptionThrown, assertGreater, assertGreater, assertGreaterOrEquals, assertHasWithCount, assertInstanceOf, assertListEquals, assertMap, assertMapping, assertMatches, assertMatches, assertMeaningTextEquals, assertNotContains, assertNotContains, assertNotContains, assertNotEmpty, assertNull2, assertSameElements, assertSameElements, assertSameElements, assertSetEquals, assertTime, assertTime, assertTimestampEquals, assertXmlEqual, assertXmlEqual, averageExecutionTime, checkOrderedCollection, checkOrderedCollection, checkUnorderedCollection, checkUnorderedCollection, clearFailure, createMap, createSet, createTempDir, createTempFile, createTempFile, createTempFile, createTestLogger, doUnderLockedDirectory, doUnderLockedFile, doUnderUnreadableLockedFile, dumpCollection, dumpFile, dumpItems, enableAndRecordDebugLog, enableDebug, enableDebug, enableInfo, env, getLoggedFailure, getName, getProjectDir, getTestDataFile, getTestFiles, getTestFilesDataPath, hasCustomInternalProperty, isPropertyDefined, listFilesOrDie, listFilesOrDie, log, performAfterTestVerification, provideWithBooleans, provideWithLinuxMacWindows, provideWithWindowsOnly, registerAsTempFile, removeInternalProperty, resetAllFields, resetFields2Null, runAndReportMemoryAllocations, runAsync, runAsync, runAsyncAndFailOnException, setInternalProperty, setInternalProperty, setInternalProperty, setLogLevel, setName, setUpClass, setupSuite, startThreadsAsync, threadDump, toProvide, trueFalseDataProvider, waitFor, waitFor, waitFor, writeTextToFile
-
Methods inherited from class jetbrains.buildServer.AfterTestHook
finishAfterTestHook, initializeAfterTestHook, run
-
Methods inherited from class jetbrains.buildServer.MockSupport
and, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, atLeastOnce, collectionContaining, collectionContaining, compatibleType, contains, containsInAnyOrder, containsInAnyOrder, containsInOrder, containsInOrder, defaultMockNameForType, doAll, doAll, doAll, doAll, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, exactly, hasProperty, hasProperty, isA, isGreaterThan, isIn, isIn, isLessThan, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, mock, mock, never, never, newDummy, newDummy, newDummy, not, not, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, or, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, same, setUpMocks, startsWith, stringContains, tearDownMocks, throwException, toString, verify
-
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.WaitForAssertions
waitFor, waitFor, waitForAssert, waitForAssert, waitForAssert, waitForAssert
-
-
-
-
Field Detail
-
myDb
protected SQLRunnerEx myDb
-
myIdSequences
protected CachingNumericIdSequences myIdSequences
-
myServer
protected BaseServerTestCase.TestBuildServerImpl myServer
-
myBuildType
protected BuildTypeEx myBuildType
-
myBuildAgent
protected MockBuildAgent myBuildAgent
-
myLoginConfiguration
protected LoginConfigurationImpl myLoginConfiguration
-
myFixture
protected BuildServerCreator myFixture
-
myAgentManager
protected BuildAgentManagerEx myAgentManager
-
myProject
protected ProjectEx myProject
-
myWebLinks
protected WebLinks myWebLinks
-
myAuditLogFactory
protected AuditLogFactory myAuditLogFactory
-
myProjectManager
protected ProjectManagerEx myProjectManager
-
NOOP_COUNTER
public static final Counter NOOP_COUNTER
-
-
Constructor Detail
-
BaseServerTestCase
protected BaseServerTestCase()
-
BaseServerTestCase
public BaseServerTestCase(String name)
-
-
Method Detail
-
setUp000
@BeforeClass(alwaysRun=true) public void setUp000()
-
setUp
@BeforeMethod(alwaysRun=true) protected void setUp() throws Exception
- Overrides:
setUp
in classBaseDatabaseTestCase
- Throws:
Exception
-
initServer
protected void initServer() throws IOException
- Throws:
IOException
-
configurePlugins
protected void configurePlugins(BuildServerImpl server)
-
createVcsUser
protected SUser createVcsUser(MockVcsSupport support, String username)
-
runningImpl
protected RunningBuildImpl runningImpl(RunningBuild build)
-
runningImpl
protected RunningBuildImpl runningImpl()
-
recreateBuildServer
protected void recreateBuildServer() throws IOException
- Throws:
IOException
-
recreateBuildServer
protected void recreateBuildServer(boolean newDatabase, boolean newDataDirectory) throws IOException
- Throws:
IOException
-
recreateBuildServer
protected void recreateBuildServer(boolean newDatabase, @Nullable File newDataDirectory) throws IOException
- Throws:
IOException
-
getEventDispatcher
protected EventDispatcher<BuildServerListener> getEventDispatcher()
-
shutdownServer
protected void shutdownServer()
-
registerBuildType
protected BuildTypeImpl registerBuildType(String name, String projectName)
-
registerBuildType
protected BuildTypeImpl registerBuildType(String name, SProject project, String runnerType)
-
registerBuildType
protected BuildTypeImpl registerBuildType(String name, String projectName, String runnerType)
-
registerBuildType
protected BuildTypeImpl registerBuildType(String name, SProject project, String runnerType, int maxBuilds, boolean checkoutOnServer)
-
registerBuildType
protected BuildTypeImpl registerBuildType(String name, String projectName, String runnerType, int maxBuilds, boolean checkoutOnServer)
-
registerTemplateBasedBuildType
protected BuildTypeImpl registerTemplateBasedBuildType(String btName)
-
registerTwoTemplatesBasedBuildType
protected BuildTypeImpl registerTwoTemplatesBasedBuildType(String btName)
-
createBuildTypeTemplate
protected BuildTypeTemplateEx createBuildTypeTemplate(String name)
-
createBuildTypeTemplate
protected BuildTypeTemplateEx createBuildTypeTemplate(String name, @NotNull SProject parentProject)
-
createUser
protected final UserEx createUser(UserAccountBuilder userBuilder)
-
setSelectedLoginModule
protected void setSelectedLoginModule(LoginModuleDescriptor moduleDescriptor)
-
setDefaultLoginModule
protected void setDefaultLoginModule()
-
getUserModelEx
protected UserModelEx getUserModelEx()
-
tearDown
@AfterMethod(alwaysRun=true) protected void tearDown() throws Exception
- Overrides:
tearDown
in classBaseDatabaseTestCase
- Throws:
Exception
-
tearDownFixture
protected void tearDownFixture(@NotNull BuildServerCreator fixture) throws InterruptedException
- Throws:
InterruptedException
-
startBuild
protected RunningBuildEx startBuild()
-
startBuild
protected RunningBuildEx startBuild(@NotNull SBuildType type)
-
startBuild
protected RunningBuildEx startBuild(@NotNull SBuildType type, @Nullable Date agentStartTime, Date startTime)
-
startBuild
protected RunningBuildEx startBuild(@NotNull SBuildType type, @Nullable Date agentStartDate, Date serverStartDate, @Nullable MockBuildAgent agent)
-
createPersonalBuild
public SFinishedBuild createPersonalBuild(@NotNull SBuildType buildType, @NotNull SUser user, @NotNull String[] succeededTests, @NotNull String[] failedTests)
-
startBuild
protected RunningBuildEx startBuild(@NotNull BuildPromotion promotion, @Nullable Date agentStartDate, Date serverStartDate, @Nullable MockBuildAgent agent, boolean withFlushQueue)
-
logAgentTimezone
protected void logAgentTimezone(@NotNull SRunningBuild runningBuild)
-
flushQueueAndWait
protected void flushQueueAndWait()
Flushes builds queue and waits for one build to start.
-
createFailedBuild
protected SFinishedBuild createFailedBuild()
-
createBuild
protected SFinishedBuild createBuild(@NotNull Status status)
-
createBuildInBranch
protected SFinishedBuild createBuildInBranch(@NotNull SBuildType buildType, @NotNull String branchName, @NotNull Status status)
-
createPromotionWithDesiredBranch
@NotNull protected BuildPromotionEx createPromotionWithDesiredBranch(@NotNull BuildTypeEx buildType, @NotNull String branchName)
-
createBuildInBranch
protected SFinishedBuild createBuildInBranch(@NotNull SBuildType buildType, @NotNull String branchName, @NotNull Status status, Date startDate)
-
createBuildInBranch
protected SFinishedBuild createBuildInBranch(@NotNull String branchName, @NotNull Status status)
-
createBuildInBranch
@NotNull protected SFinishedBuild createBuildInBranch(@NotNull SBuildType buildType, @NotNull String branchName, @NotNull String[] succeededTests, @NotNull String[] failedTests)
-
startBuildInBranch
@NotNull protected RunningBuildEx startBuildInBranch(String branchName)
-
startBuildInBranch
@NotNull protected RunningBuildEx startBuildInBranch(@NotNull SBuildType buildType, @NotNull String branchName)
-
startBuildInBranch
@NotNull protected RunningBuildEx startBuildInBranch(@NotNull SBuildType buildType, @NotNull String branchName, @NotNull Date startDate)
-
createBuild
protected SFinishedBuild createBuild(@NotNull SBuildType type)
Creates a successful finished build in specified BuildType
-
createBuild
protected SFinishedBuild createBuild(@NotNull SBuildType type, @NotNull Status status)
-
createBuild
protected SFinishedBuild createBuild(@NotNull SBuildType type, @NotNull Status status, @NotNull Date startDate)
-
createBuild
protected SFinishedBuild createBuild(@NotNull SBuildType type, @NotNull Status status, @Nullable Date agentStartDate, Date startDate)
-
createBuildWithBuildDurationStatistic
protected SFinishedBuild createBuildWithBuildDurationStatistic(@NotNull SBuildType type, @NotNull Status status, @NotNull Date agentStartDate, @Nullable Date startDate, @Nullable MockBuildAgent agent)
-
createBuild
protected SFinishedBuild createBuild(@NotNull SBuildType type, @NotNull Status status, @Nullable Date agentStartDate, Date serverStartDate, @Nullable MockBuildAgent buildAgent)
-
getRunningBuild
protected RunningBuildEx getRunningBuild()
-
getRunningBuild
protected RunningBuildEx getRunningBuild(@NotNull SBuildType type)
-
finishBuild
protected SFinishedBuild finishBuild()
-
finishBuild
protected SFinishedBuild finishBuild(boolean buildFailed)
-
finishBuild
protected SFinishedBuild finishBuild(SRunningBuild runningBuild, boolean buildFailed)
-
finishBuild
protected SFinishedBuild finishBuild(SRunningBuild runningBuild, boolean buildFailed, Date finishDate)
-
finishAllBuilds
protected void finishAllBuilds()
-
finishAllQueuedBuilds
@NotNull protected List<SFinishedBuild> finishAllQueuedBuilds()
-
setDurationEstimatesFor
protected void setDurationEstimatesFor(Map<Pair<String,Integer>,Long> estimates)
-
unregisterBuildType
protected void unregisterBuildType(SBuildType buildType)
-
addToQueue
protected SQueuedBuild addToQueue(SBuildType buildType)
-
createPromotionWithChange
protected BuildPromotionEx createPromotionWithChange(SVcsModification modification)
-
unregisterAgent
protected void unregisterAgent(int agentId)
-
registerAndEnableAgent
protected void registerAndEnableAgent(BuildAgentEx agent)
-
getQueue
protected List<SQueuedBuild> getQueue()
-
getQueue
protected List<SQueuedBuild> getQueue(SBuildType bt)
-
dumpBuildState
protected void dumpBuildState() throws SQLException
- Throws:
SQLException
-
deleteLicenses
public void deleteLicenses()
-
setReleaseDate
protected void setReleaseDate(Date date)
-
getUserChangesFacade
protected UserChangesFacade getUserChangesFacade()
-
getPersonalBuildManager
protected PersonalBuildManager getPersonalBuildManager()
-
createBuildWithChanges
protected SFinishedBuild createBuildWithChanges(SBuildType buildType, Status status, ModificationData... modifications)
-
startBuildWithChanges
protected SRunningBuild startBuildWithChanges(SBuildType buildType, ModificationData... modifications)
-
publishModifications
protected void publishModifications(SBuildType buildType, ModificationData... modifications)
-
getSummaryFactory
protected TeamCitySummaryFactory getSummaryFactory()
-
makeBuildHanging
protected void makeBuildHanging(SRunningBuild build)
-
makeProjectAccessible
protected SUser makeProjectAccessible(@NotNull SUser user, @NotNull String projectId)
-
makeProjectAccessible
protected void makeProjectAccessible(@NotNull SUserGroup group, @NotNull String projectId)
-
makeProjectVisible
protected void makeProjectVisible(@NotNull SUser user, @NotNull String projectId)
-
makeProjectsAccessible
protected SUser makeProjectsAccessible(@NotNull SUser user, @NotNull Collection<String> projectIds)
-
makeProjectsVisible
protected void makeProjectsVisible(@NotNull SUser user, @NotNull Collection<String> projectIds)
-
getProjectDevRole
protected Role getProjectDevRole()
-
getProjectAdminRole
protected Role getProjectAdminRole()
-
getProjectViewerRole
protected Role getProjectViewerRole()
-
getSysAdminRole
protected Role getSysAdminRole()
-
getSuperUserRole
protected Role getSuperUserRole()
-
getTestRoles
protected TestRoles getTestRoles()
-
simulateJavaScriptEncryption
protected String simulateJavaScriptEncryption(String data)
Encrypts data in the same way as it is done by the JavaScript (using encoding UTF-16)- Parameters:
data
- encrypted data- Returns:
-
hexEncodedPublicKey
protected String hexEncodedPublicKey()
-
reloadQueue
protected void reloadQueue() throws IOException
- Throws:
IOException
-
startBuild
protected SRunningBuild startBuild(BuildTypeEx buildType, MockBuildAgent agent)
-
testSuccessful
protected void testSuccessful(String testName)
-
testFailed
protected void testFailed(String testName)
-
testSuccessful
protected void testSuccessful(String testName, @NotNull SRunningBuild running)
-
testFailed
protected void testFailed(String testName, @NotNull SRunningBuild running)
-
enableFailOnAnyError
protected void enableFailOnAnyError()
-
tid
protected long tid(String testName)
-
getTestNameId
protected long getTestNameId(String testName)
-
createRunningBuild
@NotNull protected SRunningBuild createRunningBuild(@NotNull SBuildType buildType, @NotNull String[] succeededTests, @NotNull String[] failedTests)
-
createRunningBuildInBranch
@NotNull protected SRunningBuild createRunningBuildInBranch(@NotNull SBuildType buildType, @NotNull String branchName, @NotNull String[] succeededTests, @NotNull String[] failedTests)
-
createBuild
@NotNull protected SFinishedBuild createBuild(@NotNull SBuildType buildType, @NotNull String[] succeededTests, @NotNull String[] failedTests)
-
createBuild
@NotNull protected SFinishedBuild createBuild(@NotNull SBuildType buildType, @NotNull String[] succeededTests, @NotNull String[] failedTests, @NotNull String[] ignoredTests)
-
runTestsInRunningBuild
protected void runTestsInRunningBuild(@NotNull String[] succeededTests, @NotNull String[] failedTests)
-
runTestsInRunningBuild
protected void runTestsInRunningBuild(@NotNull String[] succeededTests, @NotNull String[] failedTests, @NotNull String[] ignoredTests)
-
runTestsInRunningBuild
protected void runTestsInRunningBuild(@NotNull SRunningBuild runningBuild, @NotNull String[] succeededTests, @NotNull String[] failedTests, @NotNull String[] ignoredTests)
-
vcsTrigger
protected VcsTriggerDescriptorBuilder vcsTrigger()
-
queueAndWaitForFreeze
protected SQueuedBuild queueAndWaitForFreeze(BuildPromotionEx promo)
-
queueAndWaitForFreeze
protected SQueuedBuild queueAndWaitForFreeze(BuildPromotionEx promo, MockBuildAgent disabled)
-
makeLoggedIn
protected void makeLoggedIn(SUser user)
-
removeRolesFromLoggedInUser
protected void removeRolesFromLoggedInUser(RoleScope scope)
-
logout
protected void logout()
-
switchToEnterpriseMode
public void switchToEnterpriseMode()
-
switchToProfessionalMode
public void switchToProfessionalMode()
-
disableAllAgents
public void disableAllAgents()
-
setBranchSpec
protected void setBranchSpec(@NotNull VcsRootInstance root, @NotNull String branchSpec)
-
addDependency
protected Dependency addDependency(DependencySettings dependent, SBuildType dependOn)
-
createDependencyChain
protected void createDependencyChain(SBuildType... chainElements)
-
clearQueue
protected void clearQueue()
-
getUserGroupManager
protected UserGroupManagerImpl getUserGroupManager()
-
createBuildWithPassedTest
protected SFinishedBuild createBuildWithPassedTest(@NotNull String... testName)
-
createBuildWithFailedTest
protected SFinishedBuild createBuildWithFailedTest(@NotNull String... testName) throws InterruptedException
- Throws:
InterruptedException
-
createFailedBuildWithPassedTest
protected SFinishedBuild createFailedBuildWithPassedTest(@NotNull String... testName) throws InterruptedException
- Throws:
InterruptedException
-
createBuildWithBuildProblems
protected SFinishedBuild createBuildWithBuildProblems(@NotNull SBuildType bt, @NotNull String... identities)
-
createBuildWithBuildProblem
protected SFinishedBuild createBuildWithBuildProblem(@NotNull SBuildType bt, @NotNull BuildProblemData buildProblemData)
-
createBuildWithBuildProblemsInBranch
protected SFinishedBuild createBuildWithBuildProblemsInBranch(BuildTypeEx bt, String branchName, String... identities)
-
createBuildWithBuildProblems
protected SFinishedBuild createBuildWithBuildProblems(@NotNull String... identities)
-
findBuildProblem
@Nullable protected BuildProblem findBuildProblem(@NotNull String problemIdentity, @NotNull SBuild build)
-
createVcsRoot
protected SVcsRootEx createVcsRoot(String vcsName, @Nullable SProject project)
-
createTriggerDescriptor
@NotNull protected BuildTriggerDescriptor createTriggerDescriptor(@NotNull String triggerName, @NotNull Map<String,String> props)
-
createTriggerDescriptor
@NotNull protected BuildTriggerDescriptor createTriggerDescriptor(@NotNull String triggerName, @NotNull Map<String,String> props, @NotNull BuildCustomizationSettings buildCustomizationSettings)
-
createDependencyTrigger
@NotNull protected BuildTriggerDescriptor createDependencyTrigger(SBuildType bt1)
-
addErrorMessage
protected void addErrorMessage(RunningBuildEx build)
-
addErrorMessage
protected void addErrorMessage(RunningBuildEx build, String type)
-
createInternalErrorBuild
protected SFinishedBuild createInternalErrorBuild(@NotNull SBuildType buildType)
-
createInternalErrorBuild
protected SFinishedBuild createInternalErrorBuild(@NotNull SBuildType buildType, @NotNull String type)
-
createInternalErrorBuildInBranch
protected SFinishedBuild createInternalErrorBuildInBranch(@NotNull SBuildType buildType, @NotNull String type, @NotNull String branch)
-
createCustomBuild
protected SFinishedBuild createCustomBuild(SBuildType buildType, Consumer<BuildCustomizer> customizeAction)
-
getTestId
protected long getTestId(String name)
-
muteBuildProblemInProject
protected void muteBuildProblemInProject(String... identeties)
-
muteBuildProblemInProject
protected void muteBuildProblemInProject(boolean unmuteWhenFixed, String... identeties)
-
muteBuildProblemInProject
protected void muteBuildProblemInProject(boolean unmuteWhenFixed, @Nullable Date unmuteByTime, ProjectEx project, String... identeties)
-
muteTestsInProject
protected void muteTestsInProject(boolean unmuteWhenFixed, @Nullable Date unmuteByTime, String... testNames)
-
muteTestsInProject
protected void muteTestsInProject(boolean unmuteWhenFixed, @Nullable Date unmuteByTime, ProjectEx project, String... testNames)
-
muteTestsInBt
protected void muteTestsInBt(boolean unmuteWhenFixed, @Nullable Date unmuteByTime, @NotNull List<? extends SBuildType> buildTypes, String... testNames)
-
setResponsibilityForTests
protected void setResponsibilityForTests(ResponsibilityEntry.State state, SUser user, String... testNames)
-
setResponsibilityForTests
protected void setResponsibilityForTests(ResponsibilityEntry.State state, SUser user, ResponsibilityEntry.RemoveMethod removeMethod, String... testNames)
-
testNames2Objects
protected Collection<TestName> testNames2Objects(String... testNames)
-
setResponsibilityForBuildType
protected void setResponsibilityForBuildType(ResponsibilityEntry.State state, SUser user, BuildTypeEx buildType)
-
setProblemResponsibilty
protected void setProblemResponsibilty(@NotNull ResponsibilityEntry.State state, @NotNull SUser user, int... ids)
-
createRespEntry
protected ResponsibilityEntryEx createRespEntry(ResponsibilityEntry.State state, SUser user)
-
createRespEntry
protected ResponsibilityEntryEx createRespEntry(ResponsibilityEntry.State state, SUser user, ResponsibilityEntry.RemoveMethod removeMethod)
-
singletonBuildFeature
protected BuildFeature singletonBuildFeature()
-
getParameterFactory
@NotNull protected ParameterFactory getParameterFactory()
-
assertRawParameterValue
protected void assertRawParameterValue(@NotNull ReadOnlyUserParameters prov, @NotNull String key, @NotNull String value)
-
assertParameterContained
@NotNull protected Parameter assertParameterContained(@NotNull Collection<Parameter> collection, @NotNull Parameter toContain, boolean checkValue)
-
setActiveBranchNames
protected void setActiveBranchNames(String... branchNames)
-
setActiveBranchNames
protected void setActiveBranchNames(@NotNull VcsRootInstanceEx vriex, String... branchNames)
-
getRootProject
@NotNull protected ProjectEx getRootProject()
-
createPromotionOnModifications
protected BuildPromotionEx createPromotionOnModifications(@NotNull BuildTypeEx buildType, SVcsModification... modifications)
-
createPromotionOnModifications
protected BuildPromotionEx createPromotionOnModifications(@NotNull BuildTypeEx buildType, @NotNull List<SVcsModification> modifications)
-
runBuildOnModifications
protected SFinishedBuild runBuildOnModifications(@NotNull BuildTypeEx buildType, boolean shouldFail, SVcsModification... modifications)
-
runFailedBuildOnModifications
protected SFinishedBuild runFailedBuildOnModifications(@NotNull BuildTypeEx buildType, SVcsModification... modifications)
-
runSuccessfulBuildOnModifications
protected SFinishedBuild runSuccessfulBuildOnModifications(@NotNull BuildTypeEx buildType, SVcsModification... modifications)
-
getAgentWorkingDirectoryState
@NotNull protected AgentCheckoutDirRevisionInfo getAgentWorkingDirectoryState(SRunningBuild runningBuild)
-
build
protected BuildBuilder build()
-
vcsSupport
protected VcsSupportBuilder vcsSupport()
-
createBuildProblem
@NotNull protected static BuildProblemData createBuildProblem()
-
getXpathValue
@Nullable protected static String getXpathValue(@NotNull File xmlFile, @NotNull String xquery)
-
getProblemId
protected int getProblemId(@NotNull String problemIdentity)
-
getAllBuildProblems
@NotNull protected Map<Integer,BuildProblemData> getAllBuildProblems()
-
persist
protected void persist(SPersistentEntity... entitiesTopersist)
-
checkOS
protected static void checkOS(boolean osCondition)
-
resolveInProject
@NotNull protected VcsRootInstance resolveInProject(@NotNull SVcsRoot root, @NotNull SProject project)
-
buildPatchFromDir
protected void buildPatchFromDir(@NotNull File dir, @NotNull CheckoutRules rules, @NotNull PatchBuilder builder) throws IOException
- Throws:
IOException
-
containsSimilarArtifactDependency
protected boolean containsSimilarArtifactDependency(@NotNull SBuildType bt, @NotNull SArtifactDependency dep)
-
waitForBuildToFail
protected void waitForBuildToFail(SRunningBuild curBuild)
-
copyBuildTypeConfig
@NotNull public BuildTypeBuilderImpl copyBuildTypeConfig(@NotNull BuildTypeEx buildType)
-
copyTemplateConfig
@NotNull public TemplateBuilderImpl copyTemplateConfig(@NotNull BuildTypeTemplate template)
-
copyVcsRootConfig
@NotNull public VcsRootBuilderImpl copyVcsRootConfig(@NotNull SVcsRoot root)
-
copyProjectConfig
@NotNull public ProjectBuilderImpl copyProjectConfig(@NotNull SProject project)
-
updateActiveBuildBranches
public void updateActiveBuildBranches()
-
blockProjectsPersister
@NotNull protected Semaphore blockProjectsPersister() throws InterruptedException
Schedules background persist task which block on the semaphore returned by this method. ProjectsPersister will not process tasks schedules after this method returns until semaphore is released.- Returns:
- see above
- Throws:
InterruptedException
-
enableRunningBuildsUpdate
protected void enableRunningBuildsUpdate()
-
disableRunningBuildsUpdate
protected void disableRunningBuildsUpdate()
Disables background update of running build data.
-
createSimpleProfileData
@NotNull protected CloudProfileDataImpl createSimpleProfileData()
-
createSimpleProfile
@NotNull protected CloudProfile createSimpleProfile(String projectId, String profileId, boolean isEnabled)
-
createSimpleProfile
@NotNull protected CloudProfile createSimpleProfile(String projectId)
-
createAdvancedProfileData
protected CloudProfileDataImpl createAdvancedProfileData(Map<String,Integer> imageId2pool)
-
createCloudAgentType
protected AgentTypeData createCloudAgentType(String projectId)
-
withDisabledResponsibilities
protected void withDisabledResponsibilities(@NotNull Runnable action)
-
nTimesApply
public static <T> Stream<T> nTimesApply(int n, IntFunction<T> function)
-
unloadFinishedBuildPromotions
protected void unloadFinishedBuildPromotions(@NotNull Predicate<BuildPromotionEx> filter)
-
-