Skip to content

Commit

Permalink
Update test_status_push results expectations according to the recent …
Browse files Browse the repository at this point in the history
…modification in various asDict() functions
  • Loading branch information
maruel committed Apr 15, 2010
1 parent 5893e72 commit b2535ba
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions buildbot/broken_test/runs/test_status_push.py
Expand Up @@ -133,13 +133,16 @@ def doNothing(self):
"event": "changeAdded",
"payload": {
'change': {
"at": "n0w - 1",
"category": None,
"files": ["Makefile", "foo/bar.c"],
"files": [{'name': "Makefile", 'url': None},
{'name': "foo/bar.c", 'url': None}],
"who": "bob",
"when": "n0w",
"number": 1,
"comments": "changed stuff",
"branch": None,
"rev": None,
"revlink": "",
"properties": [],
"revision": None,
Expand Down Expand Up @@ -180,14 +183,17 @@ def doNothing(self):
'branch': None,
'changes': [
{
"at": "n0w - 1",
'branch': None,
'category': None,
'comments': 'changed stuff',
'files': ['Makefile', 'foo/bar.c'],
"files": [{'name': "Makefile", 'url': None},
{'name': "foo/bar.c", 'url': None}],
'number': 1,
'project': '',
'properties': [],
'repository': '',
'rev': None,
'revision': None,
'revlink': '',
'when': 'yesterday',
Expand Down Expand Up @@ -320,14 +326,17 @@ def doNothing(self):
'branch': None,
'changes': [
{
"at": "n0w - 1",
'branch': None,
'category': None,
'comments': 'changed stuff',
'files': ['Makefile', 'foo/bar.c'],
"files": [{'name': "Makefile", 'url': None},
{'name': "foo/bar.c", 'url': None}],
'number': 1,
'project': '',
'properties': [],
'repository': '',
'rev': None,
'revision': None,
'revlink': '',
'when': 'yesterday',
Expand Down Expand Up @@ -458,7 +467,9 @@ def doNothing(self):
"event": "changeAdded",
"payload": {
'change': {
"files": ["Makefile", "foo/bar.c"],
"at": "n0w - 1",
"files": [{'name': "Makefile"},
{'name': "foo/bar.c"}],
"who": "bob",
"when": "n0w",
"number": 1,
Expand Down Expand Up @@ -494,8 +505,10 @@ def doNothing(self):
'sourceStamp': {
'changes': [
{
"at": "n0w - 1",
'comments': 'changed stuff',
'files': ['Makefile', 'foo/bar.c'],
"files": [{'name': "Makefile"},
{'name': "foo/bar.c"}],
'number': 1,
'when': 'yesterday',
'who': 'bob'
Expand Down Expand Up @@ -582,8 +595,10 @@ def doNothing(self):
'sourceStamp': {
'changes': [
{
"at": "n0w - 1",
'comments': 'changed stuff',
'files': ['Makefile', 'foo/bar.c'],
"files": [{'name': "Makefile"},
{'name': "foo/bar.c"}],
'number': 1,
'when': 'yesterday',
'who': 'bob'
Expand Down Expand Up @@ -742,6 +757,8 @@ def FindItem(items, event, *args):
self.assertEqual('Pouet', item.pop('project'))
self.assertEqual(i + 1, item.pop('id'))

FindItem(items, 'changeAdded', 'payload', 'change', 'at',
'n0w - 1')
FindItem(items, 'changeAdded', 'payload', 'change', 'when',
'n0w')
FindItem(items, 'requestSubmitted', 'payload', 'request',
Expand All @@ -752,6 +769,11 @@ def FindItem(items, event, *args):
FindItem(items, 'buildFinished', 'payload', 'build', 'sourceStamp',
'changes', None, 'when', 'yesterday')

FindItem(items, 'buildStarted', 'payload', 'build', 'sourceStamp',
'changes', None, 'at', 'n0w - 1')
FindItem(items, 'buildFinished', 'payload', 'build', 'sourceStamp',
'changes', None, 'at', 'n0w - 1')

FindItem(items, 'buildStarted', 'payload', 'build', 'requests',
None, 'submittedAt', 'yesterday')
FindItem(items, 'stepStarted', 'payload', 'build', 'requests',
Expand Down

0 comments on commit b2535ba

Please sign in to comment.