fun testSimpleParametrizedRoot()

in src/test-integration/kotlin/org/jetbrains/teamcity/github/GitHubWebHookSuggestionTest.kt [48:68]


    fun testSimpleParametrizedRoot() {
        val p1 = myFixture.createProject("P1")
        val bt1 = registerBuildType("BT1", p1, "Ant")
        val vcs = addGitVcsRoot(p1, "https://github.com/%owner%/%name%")

        bt1.addVcsRoot(vcs)

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

        addGitHubConnection(p1)

        val consumer = report(p1.buildTypes)

        then(consumer.project[p1]).hasSize(1)
        then(consumer.vcsRoot[vcs]).hasSize(1)
        then(consumer.buildType[bt1]).hasSize(1)

        then(consumer.all).hasSize(1)
        then(consumer.all.first().additionalData["Project"]).isEqualTo(p1)
    }