Skip to content

Commit

Permalink
test/util/reporter: make it possible to specify the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed Jul 19, 2016
1 parent a2ec8b3 commit e22dbcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions master/buildbot/test/unit/test_reporter_bitbucket.py
Expand Up @@ -27,6 +27,7 @@


class TestBitbucketStatusPush(unittest.TestCase, ReporterTestMixin):
TEST_REPO = u'https://example.org/user/repo'

@defer.inlineCallbacks
def setUp(self):
Expand Down
8 changes: 6 additions & 2 deletions master/buildbot/test/util/reporter.py
Expand Up @@ -23,6 +23,7 @@
class ReporterTestMixin(object):

TEST_PROJECT = u'testProject'
TEST_REPO = u'https://example.org/repo'
TEST_REVISION = u'd34db33fd43db33f'
TEST_CHANGE_ID = u'I5bdc2e500d00607af53f0fa4df661aada17f81fc'
TEST_BUILDER_NAME = u'Builder0'
Expand All @@ -45,9 +46,12 @@ def insertTestData(self, buildResults, finalResult):
fakedb.Builder(id=80, name='Builder1'),
fakedb.Buildset(id=98, results=finalResult, reason="testReason1"),
fakedb.BuildsetSourceStamp(buildsetid=98, sourcestampid=234),
fakedb.SourceStamp(id=234, project=self.TEST_PROJECT, revision=self.TEST_REVISION),
fakedb.SourceStamp(id=234,
project=self.TEST_PROJECT,
revision=self.TEST_REVISION,
repository=self.TEST_REPO),
fakedb.Change(changeid=13, branch=u'master', revision=u'9283', author='me@foo',
repository=u'https://...', codebase=u'cbgerrit',
repository=self.TEST_REPO, codebase=u'cbgerrit',
project=u'world-domination', sourcestampid=234),
])
for i, results in enumerate(buildResults):
Expand Down

0 comments on commit e22dbcb

Please sign in to comment.