fun testSuitableParametrizedVcsRootDetected()

in src/test-integration/kotlin/org/jetbrains/teamcity/github/IntegrationUtilTest.kt [29:46]


    fun testSuitableParametrizedVcsRootDetected() {
        val project = createProject("P1")
        val vcs = addGitVcsRoot(project, "https://github.com/%owner%/%name%")
        val buildType = registerBuildType("BT1", project, "Ant")
        buildType.addVcsRoot(vcs)

        buildType.addParameter(SimpleParameter("owner", "A"))
        buildType.addParameter(SimpleParameter("name", "B"))


        val roots = getSuitableVcsRoots(project)
        then(roots).containsExactly(vcs)

        addGitHubConnection(project)

        val suitable = getVcsRootsWhereHookCanBeInstalled(project)
        then(suitable).containsExactlyElementsOf(buildType.vcsRootInstances)
    }