| 1 |
# serializer version: 1 |
| 2 |
# name: test_get_build[build] |
| 3 |
Build(build_id=1, build_number='testbuildnumber', status='teststatus', result='testresult', source_branch='testsourcebranch', source_version='testsourceversion', priority='testpriority', reason='testreason', queue_time='testqueuetime', start_time='teststarttime', finish_time='teststarttime', definition=BuildDefinition(build_id=1, name='testname', url='testurl', path='testpath', build_type='testtype', queue_status='testqueuestatus', revision=1), project=Project(id='testid', name='testname', description='testdescription', url='testurl', state='teststate', revision=1, visibility='testvisibility', capabilities=None, links=None, default_team=None, last_update_time=None), links=BuildLinks(l_self='testself', web='testweb', source_version_display_uri='testsourceversiondisplayuri', timeline='testtimeline', badge='testbadge')) |
| 4 |
# --- |
| 5 |
# name: test_get_builds[builds] |
| 6 |
list([ |
| 7 |
Build(build_id=1, build_number='testbuildnumber', status='teststatus', result='testresult', source_branch='testsourcebranch', source_version='testsourceversion', priority='testpriority', reason='testreason', queue_time='testqueuetime', start_time='teststarttime', finish_time='teststarttime', definition=BuildDefinition(build_id=1, name='testname', url='testurl', path='testpath', build_type='testtype', queue_status='testqueuestatus', revision=1), project=Project(id='testid', name='testname', description='testdescription', url='testurl', state='teststate', revision=1, visibility='testvisibility', capabilities=None, links=None, default_team=None, last_update_time=None), links=BuildLinks(l_self='testself', web='testweb', source_version_display_uri='testsourceversiondisplayuri', timeline='testtimeline', badge='testbadge')), |
| 8 |
]) |
| 9 |
# --- |
| 10 |
# name: test_get_iteration[iteration] |
| 11 |
Iteration(id='abc123', name='Sprint 2', path='testname\\Sprint 2', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='current'), url='testurl') |
| 12 |
# --- |
| 13 |
# name: test_get_iteration_work_items[iteration_work_items] |
| 14 |
IterationWorkItemsResult(work_item_relations=[WorkItemRelation(rel=None, source=None, target=WorkItemRelationTarget(id=1, url='testurl'))], url='testurl') |
| 15 |
# --- |
| 16 |
# name: test_get_iterations[iterations] |
| 17 |
list([ |
| 18 |
Iteration(id='abc123', name='Sprint 1', path='testname\\Sprint 1', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='past'), url='testurl'), |
| 19 |
Iteration(id='abc123', name='Sprint 2', path='testname\\Sprint 2', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='current'), url='testurl'), |
| 20 |
Iteration(id='abc123', name='Sprint 3', path='testname\\Sprint 3', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='future'), url='testurl'), |
| 21 |
]) |
| 22 |
# --- |
| 23 |
# name: test_get_iterations[iterations_authorized] |
| 24 |
list([ |
| 25 |
Iteration(id='abc123', name='Sprint 1', path='testname\\Sprint 1', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='past'), url='testurl'), |
| 26 |
Iteration(id='abc123', name='Sprint 2', path='testname\\Sprint 2', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='current'), url='testurl'), |
| 27 |
Iteration(id='abc123', name='Sprint 3', path='testname\\Sprint 3', attributes=IterationAttributes(start_date='2021-01-01T00:00:00Z', finish_date='2021-01-31T00:00:00Z', time_frame='future'), url='testurl'), |
| 28 |
]) |
| 29 |
# --- |
| 30 |
# name: test_get_project[project] |
| 31 |
Project(id='testid', name='testname', description='testdescription', url='testurl', state='teststate', revision=1, visibility='testvisibility', capabilities=Capabilities(process_template=ProcessTemplate(template_name='Agile', template_type_id='abc123-abc1-abc1-abc1-abc123456789'), versioncontrol=VersionControl(source_control_type='Git', git_enabled='True', tfvc_enabled='False')), links=Links(links_self=LinkCollection(href='testself'), collection=LinkCollection(href='testcollection'), web=LinkCollection(href='testweb')), default_team=DefaultTeam(id='testid', name='testname', url='testurl'), last_update_time=None) |
| 32 |
# --- |
| 33 |
# name: test_get_work_item_types[work_item_types] |
| 34 |
list([ |
| 35 |
WorkItemType(name='testname', reference_name='testreferenceName', description='testdescription', color='testcolor', icon=Icon(id='testid', url='testurl'), is_disabled=False, xml_form='testxmlForm', fields=[], field_instances=[], transitions={}, states=[State(name='New', color='b2b2b2', category=<Category.PROPOSED: 'Proposed'>), State(name='On Hold', color='fcfea8', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='Ready', color='007acc', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In Development', color='e87025', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In Code Review', color='f9b978', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In Test', color='fbd144', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In UAT', color='71338d', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In PreProd', color='ef33a3', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='Ready for Release', color='207752', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='Released', color='c3d84c', category=<Category.RESOLVED: 'Resolved'>), State(name='Closed', color='339933', category=<Category.COMPLETED: 'Completed'>)], url='testurl'), |
| 36 |
]) |
| 37 |
# --- |
| 38 |
# name: test_get_work_item_types[work_item_types_authorized] |
| 39 |
list([ |
| 40 |
WorkItemType(name='testname', reference_name='testreferenceName', description='testdescription', color='testcolor', icon=Icon(id='testid', url='testurl'), is_disabled=False, xml_form='testxmlForm', fields=[], field_instances=[], transitions={}, states=[State(name='New', color='b2b2b2', category=<Category.PROPOSED: 'Proposed'>), State(name='On Hold', color='fcfea8', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='Ready', color='007acc', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In Development', color='e87025', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In Code Review', color='f9b978', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In Test', color='fbd144', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In UAT', color='71338d', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='In PreProd', color='ef33a3', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='Ready for Release', color='207752', category=<Category.IN_PROGRESS: 'InProgress'>), State(name='Released', color='c3d84c', category=<Category.RESOLVED: 'Resolved'>), State(name='Closed', color='339933', category=<Category.COMPLETED: 'Completed'>)], url='testurl'), |
| 41 |
]) |
| 42 |
# --- |
| 43 |
# name: test_get_work_items[work_items] |
| 44 |
list([ |
| 45 |
WorkItem(id=1, rev=234, fields=WorkItemFields(area_path='testAreaPath', team_project='testTeamProject', iteration_path='testIterationPath', work_item_type='testWorkItemType', state='testState', reason='testReason', assigned_to=None, created_date='testCreatedDate', created_by=None, changed_date='testChangedDate', changed_by=None, comment_count=1, title='testTitle', microsoft_vsts_common_state_change_date=None, microsoft_vsts_common_priority=1), url='testurl'), |
| 46 |
WorkItem(id=1, rev=234, fields=WorkItemFields(area_path='testAreaPath', team_project='testTeamProject', iteration_path='testIterationPath', work_item_type='testWorkItemType', state='testState', reason='testReason', assigned_to=None, created_date='testCreatedDate', created_by=None, changed_date='testChangedDate', changed_by=None, comment_count=1, title='testTitle', microsoft_vsts_common_state_change_date=None, microsoft_vsts_common_priority=1), url='testurl'), |
| 47 |
]) |
| 48 |
# --- |
| 49 |
# name: test_get_work_items_ids[work_items_ids] |
| 50 |
list([ |
| 51 |
1, |
| 52 |
]) |
| 53 |
# --- |
| 54 |
# name: test_get_work_items_ids[work_items_ids_authorized] |
| 55 |
list([ |
| 56 |
1, |
| 57 |
]) |
| 58 |
# --- |