Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- 'x-swagger-api-version': '2.2.1',
- 'description': 'The `related` and `result_groups`\nare all filtered by the run-id\'s given in the returned `run_infos`.\nThe \'size\' parameter limits the size of all of the below "Paged"\nproperties.\n',
- 'required': ['run_infos', 'related', 'result_groups'],
- 'additionalProperties': False,
- '$schema': 'http://json-schema.org/draft-04/schema',
- 'type': 'object',
- 'properties': {
- 'result_groups': {
- 'title': 'ResultGroupPaged',
- 'allOf': [{
- 'additionalProperties': False,
- 'required': ['total', 'hits'],
- 'type': 'object',
- 'properties': {
- 'hits': {
- 'items': {
- 'description': 'This is the empty schema, which permits anything.\nThe other half off the allOf will specify this.\n'
- },
- 'type': 'array',
- 'description': 'a single page of results'
- },
- 'total': {
- 'type': 'integer',
- 'description': 'the count of all items that match the query'
- }
- },
- 'title': 'Paged'
- }, {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'hits': {
- 'items': {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'most_relevant': {
- 'additionalProperties': False,
- 'required': ['name', 'time', 'type', 'env', 'suites', 'status', 'run_id', 'link', 'annotations'],
- 'type': 'object',
- 'properties': {
- 'status': {
- 'enum': ['passed', 'failed', 'missing', 'pending', 'running'],
- 'type': 'string',
- 'description': 'The status of a test or a run',
- 'title': 'Status'
- },
- 'suites': {
- 'items': {
- 'type': 'string'
- },
- 'type': 'array',
- 'description': 'The tagged suites for this test'
- },
- 'name': {
- 'type': 'string',
- 'description': 'This should be the (unique!) string used to reproduce this result at the CLI.\n'
- },
- 'run_id': {
- 'type': 'string'
- },
- 'traceback': {
- 'additionalProperties': False,
- 'required': ['shortened', 'normalized'],
- 'type': 'object',
- 'description': 'optional; pending and missing will have no traceback',
- 'properties': {
- 'shortened': {
- 'type': 'string',
- 'description': 'The whole traceback, shortened to <1000 characters per line,\nand <100 lines\n'
- },
- 'normalized': {
- 'type': 'string',
- 'description': 'the traceback shortened, with unique values scrubbed out\nthe purpose is to group similar failures\n'
- }
- }
- },
- 'link': {
- 'type': 'string',
- 'description': 'a urlto view the full context of the failure'
- },
- 'env': {
- 'type': 'string',
- 'description': 'The environment this test ran in, (e.g. sandbox, selenium-non-sandbox)'
- },
- 'time': {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'start': {
- 'type': 'string',
- 'format': 'date-time'
- },
- 'end': {
- 'type': ['string', 'null'],
- 'description': 'null denotes an open period',
- 'format': 'date-time'
- }
- },
- 'title': 'Time'
- },
- 'type': {
- 'enum': ['test', 'job'],
- 'type': 'string'
- },
- 'annotations': {
- 'items': {
- 'additionalProperties': False,
- 'required': ['type', 'result', 'traceback', 'span', 'ticket', 'modification'],
- 'type': 'object',
- 'properties': {
- 'count': {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'similar': {
- 'type': 'integer',
- 'description': 'how many similar failures were seen in that period'
- },
- 'dissimilar': {
- 'type': 'integer',
- 'description': 'how many dissimilar results were seen in that period'
- }
- }
- },
- 'votes': {
- 'additionalProperties': False,
- 'type': 'object',
- 'description': 'record users that have voted for and against this annotation\nany particular username should only show up once here, across both lists\n',
- 'properties': {
- 'plus': {
- 'items': {
- 'type': 'string'
- },
- 'type': 'array'
- },
- 'minus': {
- 'items': {
- 'type': 'string'
- },
- 'type': 'array'
- }
- }
- },
- 'span': {
- 'title': 'Span',
- 'maxProperties': 1,
- 'minProperties': 1,
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'master_number': {
- 'additionalProperties': False,
- 'type': 'object',
- 'description': 'see Result.master',
- 'properties': {
- 'start': {
- 'type': 'integer'
- },
- 'end': {
- 'type': ['integer', 'null'],
- 'description': 'null denotes an open period'
- }
- }
- },
- 'time': {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'start': {
- 'type': 'string',
- 'format': 'date-time'
- },
- 'end': {
- 'type': ['string', 'null'],
- 'description': 'null denotes an open period',
- 'format': 'date-time'
- }
- },
- 'title': 'Time'
- }
- }
- },
- 'traceback': {
- 'additionalProperties': False,
- 'required': ['normalized'],
- 'type': 'object',
- 'properties': {
- 'normalized': {
- 'type': 'string'
- }
- }
- },
- 'ticket': {
- 'type': 'string',
- 'description': 'JIRA ticket'
- },
- 'result': {
- 'additionalProperties': False,
- 'required': ['name'],
- 'type': 'object',
- 'properties': {
- 'name': {
- 'type': 'string'
- }
- }
- },
- 'modification': {
- 'additionalProperties': False,
- 'required': ['who', 'when'],
- 'type': 'object',
- 'properties': {
- 'who': {
- 'type': 'string',
- 'description': 'who touched it last?'
- },
- 'when': {
- 'type': 'string',
- 'format': 'date-time'
- }
- }
- },
- 'message': {
- 'type': 'string'
- },
- 'type': {
- 'enum': ['outage', 'broken', 'flakey', 'manual', 'comment', 'nort'],
- 'type': 'string'
- },
- 'id': {
- 'type': 'string',
- 'description': 'used for updating an annotation'
- }
- }
- },
- 'type': 'array',
- 'description': 'all relevant annotations'
- }
- },
- 'title': 'Result'
- },
- 'size': {
- 'type': 'integer'
- }
- }
- },
- 'type': 'array',
- 'description': 'Summarize potentially huge list of results by grouping them.\nWe give the most relevant representative of each group,\nand a size for that group.\n',
- 'title': 'ResultGroupArray'
- },
- 'total': {}
- }
- }]
- },
- 'run_infos': {
- 'title': 'RunInfoPaged',
- 'allOf': [{
- 'additionalProperties': False,
- 'required': ['total', 'hits'],
- 'type': 'object',
- 'properties': {
- 'hits': {
- 'items': {
- 'description': 'This is the empty schema, which permits anything.\nThe other half off the allOf will specify this.\n'
- },
- 'type': 'array',
- 'description': 'a single page of results'
- },
- 'total': {
- 'type': 'integer',
- 'description': 'the count of all items that match the query'
- }
- },
- 'title': 'Paged'
- }, {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'hits': {
- 'items': {
- 'additionalProperties': False,
- 'required': ['run_id', 'ref', 'branch_name', 'username', 'time', 'status'],
- 'type': 'object',
- 'properties': {
- 'status': {
- 'enum': ['passed', 'failed', 'missing', 'pending', 'running'],
- 'type': 'string',
- 'description': 'The status of a test or a run',
- 'title': 'Status'
- },
- 'username': {
- 'type': 'string'
- },
- 'run_id': {
- 'type': 'string',
- 'description': 'to be inserted by seagull-run; it needs to spin and wait forthe jenkins queue'
- },
- 'branch_name': {
- 'type': 'string'
- },
- 'time': {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'start': {
- 'type': 'string',
- 'format': 'date-time'
- },
- 'end': {
- 'type': ['string', 'null'],
- 'description': 'null denotes an open period',
- 'format': 'date-time'
- }
- },
- 'title': 'Time'
- },
- 'ref': {
- 'additionalProperties': False,
- 'required': ['sha'],
- 'type': 'object',
- 'description': 'For refs of master, sha is equal to master.sha.\n',
- 'properties': {
- 'sha': {
- 'pattern': '[a-f0-9]{40}',
- 'title': 'SHA',
- 'type': 'string',
- 'format': 'SHA'
- },
- 'master': {
- 'additionalProperties': False,
- 'required': ['sha', 'tag', 'number'],
- 'type': 'object',
- 'description': 'What production version did you branch from?',
- 'properties': {
- 'sha': {
- 'pattern': '[a-f0-9]{40}',
- 'title': 'SHA',
- 'type': 'string',
- 'format': 'SHA'
- },
- 'tag': {
- 'type': 'string'
- },
- 'number': {
- 'type': 'integer',
- 'description': 'How many release tags are in your history?'
- }
- }
- }
- }
- }
- },
- 'title': 'RunInfo'
- },
- 'type': 'array',
- 'title': 'RunInfoArray'
- },
- 'total': {}
- }
- }]
- },
- 'related': {
- 'title': 'RunInfoPaged',
- 'allOf': [{
- 'additionalProperties': False,
- 'required': ['total', 'hits'],
- 'type': 'object',
- 'properties': {
- 'hits': {
- 'items': {
- 'description': 'This is the empty schema, which permits anything.\nThe other half off the allOf will specify this.\n'
- },
- 'type': 'array',
- 'description': 'a single page of results'
- },
- 'total': {
- 'type': 'integer',
- 'description': 'the count of all items that match the query'
- }
- },
- 'title': 'Paged'
- }, {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'hits': {
- 'items': {
- 'additionalProperties': False,
- 'required': ['run_id', 'ref', 'branch_name', 'username', 'time', 'status'],
- 'type': 'object',
- 'properties': {
- 'status': {
- 'enum': ['passed', 'failed', 'missing', 'pending', 'running'],
- 'type': 'string',
- 'description': 'The status of a test or a run',
- 'title': 'Status'
- },
- 'username': {
- 'type': 'string'
- },
- 'run_id': {
- 'type': 'string',
- 'description': 'to be inserted by seagull-run; it needs to spin and wait for the jenkins queue'
- },
- 'branch_name': {
- 'type': 'string'
- },
- 'time': {
- 'additionalProperties': False,
- 'type': 'object',
- 'properties': {
- 'start': {
- 'type': 'string',
- 'format': 'date-time'
- },
- 'end': {
- 'type': ['string', 'null'],
- 'description': 'null denotes an open period',
- 'format': 'date-time'
- }
- },
- 'title': 'Time'
- },
- 'ref': {
- 'additionalProperties': False,
- 'required': ['sha'],
- 'type': 'object',
- 'description': 'For refs of master, sha is equal to master.sha.\n',
- 'properties': {
- 'sha': {
- 'pattern': '[a-f0-9]{40}',
- 'title': 'SHA',
- 'type': 'string',
- 'format': 'SHA'
- },
- 'master': {
- 'additionalProperties': False,
- 'required': ['sha', 'tag', 'number'],
- 'type': 'object',
- 'description': 'What production version did you branch from?',
- 'properties': {
- 'sha': {
- 'pattern': '[a-f0-9]{40}',
- 'title': 'SHA',
- 'type': 'string',
- 'format': 'SHA'
- },
- 'tag': {
- 'type': 'string'
- },
- 'number': {
- 'type': 'integer',
- 'description': 'How many release tags are in your history?'
- }
- }
- }
- }
- }
- },
- 'title': 'RunInfo'
- },
- 'type': 'array',
- 'title': 'RunInfoArray'
- },
- 'total': {}
- }
- }]
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement