Advertisement
absolute100

Untitled

Mar 23rd, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 14.21 KB | None | 0 0
  1. {
  2.     'x-swagger-api-version': '2.2.1',
  3.     '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',
  4.     'required': ['run_infos', 'related', 'result_groups'],
  5.     'additionalProperties': False,
  6.     '$schema': 'http://json-schema.org/draft-04/schema',
  7.     'type': 'object',
  8.     'properties': {
  9.         'result_groups': {
  10.             'title': 'ResultGroupPaged',
  11.             'allOf': [{
  12.                 'additionalProperties': False,
  13.                 'required': ['total', 'hits'],
  14.                 'type': 'object',
  15.                 'properties': {
  16.                     'hits': {
  17.                         'items': {
  18.                             'description': 'This is the empty schema, which permits anything.\nThe other half off the allOf will specify this.\n'
  19.                         },
  20.                         'type': 'array',
  21.                         'description': 'a single page of results'
  22.                     },
  23.                     'total': {
  24.                         'type': 'integer',
  25.                         'description': 'the count of all items that match the query'
  26.                     }
  27.                 },
  28.                 'title': 'Paged'
  29.             }, {
  30.                 'additionalProperties': False,
  31.                 'type': 'object',
  32.                 'properties': {
  33.                     'hits': {
  34.                         'items': {
  35.                             'additionalProperties': False,
  36.                             'type': 'object',
  37.                             'properties': {
  38.                                 'most_relevant': {
  39.                                     'additionalProperties': False,
  40.                                     'required': ['name', 'time', 'type', 'env', 'suites', 'status', 'run_id', 'link', 'annotations'],
  41.                                     'type': 'object',
  42.                                     'properties': {
  43.                                         'status': {
  44.                                             'enum': ['passed', 'failed', 'missing', 'pending', 'running'],
  45.                                             'type': 'string',
  46.                                             'description': 'The status of a test or a run',
  47.                                             'title': 'Status'
  48.                                         },
  49.                                         'suites': {
  50.                                             'items': {
  51.                                                 'type': 'string'
  52.                                             },
  53.                                             'type': 'array',
  54.                                             'description': 'The tagged suites for this test'
  55.                                         },
  56.                                         'name': {
  57.                                             'type': 'string',
  58.                                             'description': 'This should be the (unique!) string used to reproduce this result at the CLI.\n'
  59.                                         },
  60.                                         'run_id': {
  61.                                             'type': 'string'
  62.                                         },
  63.                                         'traceback': {
  64.                                             'additionalProperties': False,
  65.                                             'required': ['shortened', 'normalized'],
  66.                                             'type': 'object',
  67.                                             'description': 'optional; pending and missing will have no traceback',
  68.                                             'properties': {
  69.                                                 'shortened': {
  70.                                                     'type': 'string',
  71.                                                     'description': 'The whole traceback, shortened to <1000 characters per line,\nand <100 lines\n'
  72.                                                 },
  73.                                                 'normalized': {
  74.                                                     'type': 'string',
  75.                                                     'description': 'the traceback shortened, with unique values scrubbed out\nthe purpose is to group similar failures\n'
  76.                                                 }
  77.                                             }
  78.                                         },
  79.                                         'link': {
  80.                                             'type': 'string',
  81.                                             'description': 'a urlto view the full context of the failure'
  82.                                         },
  83.                                         'env': {
  84.                                             'type': 'string',
  85.                                             'description': 'The environment this test ran in, (e.g. sandbox, selenium-non-sandbox)'
  86.                                         },
  87.                                         'time': {
  88.                                             'additionalProperties': False,
  89.                                             'type': 'object',
  90.                                             'properties': {
  91.                                                 'start': {
  92.                                                     'type': 'string',
  93.                                                     'format': 'date-time'
  94.                                                 },
  95.                                                 'end': {
  96.                                                     'type': ['string', 'null'],
  97.                                                     'description': 'null denotes an open period',
  98.                                                     'format': 'date-time'
  99.                                                 }
  100.                                             },
  101.                                             'title': 'Time'
  102.                                         },
  103.                                         'type': {
  104.                                             'enum': ['test', 'job'],
  105.                                             'type': 'string'
  106.                                         },
  107.                                         'annotations': {
  108.                                             'items': {
  109.                                                 'additionalProperties': False,
  110.                                                 'required': ['type', 'result', 'traceback', 'span', 'ticket', 'modification'],
  111.                                                 'type': 'object',
  112.                                                 'properties': {
  113.                                                     'count': {
  114.                                                         'additionalProperties': False,
  115.                                                         'type': 'object',
  116.                                                         'properties': {
  117.                                                             'similar': {
  118.                                                                 'type': 'integer',
  119.                                                                 'description': 'how many similar failures were seen in that period'
  120.                                                             },
  121.                                                             'dissimilar': {
  122.                                                                 'type': 'integer',
  123.                                                                 'description': 'how many dissimilar results were seen in that period'
  124.                                                             }
  125.                                                         }
  126.                                                     },
  127.                                                     'votes': {
  128.                                                         'additionalProperties': False,
  129.                                                         'type': 'object',
  130.                                                         'description': 'record users that have voted for and against this annotation\nany particular username should only show up once here, across both lists\n',
  131.                                                         'properties': {
  132.                                                             'plus': {
  133.                                                                 'items': {
  134.                                                                     'type': 'string'
  135.                                                                 },
  136.                                                                 'type': 'array'
  137.                                                             },
  138.                                                             'minus': {
  139.                                                                 'items': {
  140.                                                                     'type': 'string'
  141.                                                                 },
  142.                                                                 'type': 'array'
  143.                                                             }
  144.                                                         }
  145.                                                     },
  146.                                                     'span': {
  147.                                                         'title': 'Span',
  148.                                                         'maxProperties': 1,
  149.                                                         'minProperties': 1,
  150.                                                         'additionalProperties': False,
  151.                                                         'type': 'object',
  152.                                                         'properties': {
  153.                                                             'master_number': {
  154.                                                                 'additionalProperties': False,
  155.                                                                 'type': 'object',
  156.                                                                 'description': 'see Result.master',
  157.                                                                 'properties': {
  158.                                                                     'start': {
  159.                                                                         'type': 'integer'
  160.                                                                     },
  161.                                                                     'end': {
  162.                                                                         'type': ['integer', 'null'],
  163.                                                                         'description': 'null denotes an open period'
  164.                                                                     }
  165.                                                                 }
  166.                                                             },
  167.                                                             'time': {
  168.                                                                 'additionalProperties': False,
  169.                                                                 'type': 'object',
  170.                                                                 'properties': {
  171.                                                                     'start': {
  172.                                                                         'type': 'string',
  173.                                                                         'format': 'date-time'
  174.                                                                     },
  175.                                                                     'end': {
  176.                                                                         'type': ['string', 'null'],
  177.                                                                         'description': 'null denotes an open period',
  178.                                                                         'format': 'date-time'
  179.                                                                     }
  180.                                                                 },
  181.                                                                 'title': 'Time'
  182.                                                             }
  183.                                                         }
  184.                                                     },
  185.                                                     'traceback': {
  186.                                                         'additionalProperties': False,
  187.                                                         'required': ['normalized'],
  188.                                                         'type': 'object',
  189.                                                         'properties': {
  190.                                                             'normalized': {
  191.                                                                 'type': 'string'
  192.                                                             }
  193.                                                         }
  194.                                                     },
  195.                                                     'ticket': {
  196.                                                         'type': 'string',
  197.                                                         'description': 'JIRA ticket'
  198.                                                     },
  199.                                                     'result': {
  200.                                                         'additionalProperties': False,
  201.                                                         'required': ['name'],
  202.                                                         'type': 'object',
  203.                                                         'properties': {
  204.                                                             'name': {
  205.                                                                 'type': 'string'
  206.                                                             }
  207.                                                         }
  208.                                                     },
  209.                                                     'modification': {
  210.                                                         'additionalProperties': False,
  211.                                                         'required': ['who', 'when'],
  212.                                                         'type': 'object',
  213.                                                         'properties': {
  214.                                                             'who': {
  215.                                                                 'type': 'string',
  216.                                                                 'description': 'who touched it last?'
  217.                                                             },
  218.                                                             'when': {
  219.                                                                 'type': 'string',
  220.                                                                 'format': 'date-time'
  221.                                                             }
  222.                                                         }
  223.                                                     },
  224.                                                     'message': {
  225.                                                         'type': 'string'
  226.                                                     },
  227.                                                     'type': {
  228.                                                         'enum': ['outage', 'broken', 'flakey', 'manual', 'comment', 'nort'],
  229.                                                         'type': 'string'
  230.                                                     },
  231.                                                     'id': {
  232.                                                         'type': 'string',
  233.                                                         'description': 'used for updating an annotation'
  234.                                                     }
  235.                                                 }
  236.                                             },
  237.                                             'type': 'array',
  238.                                             'description': 'all relevant annotations'
  239.                                         }
  240.                                     },
  241.                                     'title': 'Result'
  242.                                 },
  243.                                 'size': {
  244.                                     'type': 'integer'
  245.                                 }
  246.                             }
  247.                         },
  248.                         'type': 'array',
  249.                         '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',
  250.                         'title': 'ResultGroupArray'
  251.                     },
  252.                     'total': {}
  253.                 }
  254.             }]
  255.         },
  256.         'run_infos': {
  257.             'title': 'RunInfoPaged',
  258.             'allOf': [{
  259.                 'additionalProperties': False,
  260.                 'required': ['total', 'hits'],
  261.                 'type': 'object',
  262.                 'properties': {
  263.                     'hits': {
  264.                         'items': {
  265.                             'description': 'This is the empty schema, which permits anything.\nThe other half off the allOf will specify this.\n'
  266.                         },
  267.                         'type': 'array',
  268.                         'description': 'a single page of results'
  269.                     },
  270.                     'total': {
  271.                         'type': 'integer',
  272.                         'description': 'the count of all items that match the query'
  273.                     }
  274.                 },
  275.                 'title': 'Paged'
  276.             }, {
  277.                 'additionalProperties': False,
  278.                 'type': 'object',
  279.                 'properties': {
  280.                     'hits': {
  281.                         'items': {
  282.                             'additionalProperties': False,
  283.                             'required': ['run_id', 'ref', 'branch_name', 'username', 'time', 'status'],
  284.                             'type': 'object',
  285.                             'properties': {
  286.                                 'status': {
  287.                                     'enum': ['passed', 'failed', 'missing', 'pending', 'running'],
  288.                                     'type': 'string',
  289.                                     'description': 'The status of a test or a run',
  290.                                     'title': 'Status'
  291.                                 },
  292.                                 'username': {
  293.                                     'type': 'string'
  294.                                 },
  295.                                 'run_id': {
  296.                                     'type': 'string',
  297.                                     'description': 'to be inserted by seagull-run; it needs to spin and wait forthe jenkins queue'
  298.                                 },
  299.                                 'branch_name': {
  300.                                     'type': 'string'
  301.                                 },
  302.                                 'time': {
  303.                                     'additionalProperties': False,
  304.                                     'type': 'object',
  305.                                     'properties': {
  306.                                         'start': {
  307.                                             'type': 'string',
  308.                                             'format': 'date-time'
  309.                                         },
  310.                                         'end': {
  311.                                             'type': ['string', 'null'],
  312.                                             'description': 'null denotes an open period',
  313.                                             'format': 'date-time'
  314.                                         }
  315.                                     },
  316.                                     'title': 'Time'
  317.                                 },
  318.                                 'ref': {
  319.                                     'additionalProperties': False,
  320.                                     'required': ['sha'],
  321.                                     'type': 'object',
  322.                                     'description': 'For refs of master, sha is equal to master.sha.\n',
  323.                                     'properties': {
  324.                                         'sha': {
  325.                                             'pattern': '[a-f0-9]{40}',
  326.                                             'title': 'SHA',
  327.                                             'type': 'string',
  328.                                             'format': 'SHA'
  329.                                         },
  330.                                         'master': {
  331.                                             'additionalProperties': False,
  332.                                             'required': ['sha', 'tag', 'number'],
  333.                                             'type': 'object',
  334.                                             'description': 'What production version did you branch from?',
  335.                                             'properties': {
  336.                                                 'sha': {
  337.                                                     'pattern': '[a-f0-9]{40}',
  338.                                                     'title': 'SHA',
  339.                                                     'type': 'string',
  340.                                                     'format': 'SHA'
  341.                                                 },
  342.                                                 'tag': {
  343.                                                     'type': 'string'
  344.                                                 },
  345.                                                 'number': {
  346.                                                     'type': 'integer',
  347.                                                     'description': 'How many release tags are in your history?'
  348.                                                 }
  349.                                             }
  350.                                         }
  351.                                     }
  352.                                 }
  353.                             },
  354.                             'title': 'RunInfo'
  355.                         },
  356.                         'type': 'array',
  357.                         'title': 'RunInfoArray'
  358.                     },
  359.                     'total': {}
  360.                 }
  361.             }]
  362.         },
  363.         'related': {
  364.             'title': 'RunInfoPaged',
  365.             'allOf': [{
  366.                 'additionalProperties': False,
  367.                 'required': ['total', 'hits'],
  368.                 'type': 'object',
  369.                 'properties': {
  370.                     'hits': {
  371.                         'items': {
  372.                             'description': 'This is the empty schema, which permits anything.\nThe other half off the allOf will specify this.\n'
  373.                         },
  374.                         'type': 'array',
  375.                         'description': 'a single page of results'
  376.                     },
  377.                     'total': {
  378.                         'type': 'integer',
  379.                         'description': 'the count of all items that match the query'
  380.                     }
  381.                 },
  382.                 'title': 'Paged'
  383.             }, {
  384.                 'additionalProperties': False,
  385.                 'type': 'object',
  386.                 'properties': {
  387.                     'hits': {
  388.                         'items': {
  389.                             'additionalProperties': False,
  390.                             'required': ['run_id', 'ref', 'branch_name', 'username', 'time', 'status'],
  391.                             'type': 'object',
  392.                             'properties': {
  393.                                 'status': {
  394.                                     'enum': ['passed', 'failed', 'missing', 'pending', 'running'],
  395.                                     'type': 'string',
  396.                                     'description': 'The status of a test or a run',
  397.                                     'title': 'Status'
  398.                                 },
  399.                                 'username': {
  400.                                     'type': 'string'
  401.                                 },
  402.                                 'run_id': {
  403.                                     'type': 'string',
  404.                                     'description': 'to be inserted by seagull-run; it needs to spin and wait for the jenkins queue'
  405.                                 },
  406.                                 'branch_name': {
  407.                                     'type': 'string'
  408.                                 },
  409.                                 'time': {
  410.                                     'additionalProperties': False,
  411.                                     'type': 'object',
  412.                                     'properties': {
  413.                                         'start': {
  414.                                             'type': 'string',
  415.                                             'format': 'date-time'
  416.                                         },
  417.                                         'end': {
  418.                                             'type': ['string', 'null'],
  419.                                             'description': 'null denotes an open period',
  420.                                             'format': 'date-time'
  421.                                         }
  422.                                     },
  423.                                     'title': 'Time'
  424.                                 },
  425.                                 'ref': {
  426.                                     'additionalProperties': False,
  427.                                     'required': ['sha'],
  428.                                     'type': 'object',
  429.                                     'description': 'For refs of master, sha is equal to master.sha.\n',
  430.                                     'properties': {
  431.                                         'sha': {
  432.                                             'pattern': '[a-f0-9]{40}',
  433.                                             'title': 'SHA',
  434.                                             'type': 'string',
  435.                                             'format': 'SHA'
  436.                                         },
  437.                                         'master': {
  438.                                             'additionalProperties': False,
  439.                                             'required': ['sha', 'tag', 'number'],
  440.                                             'type': 'object',
  441.                                             'description': 'What production version did you branch from?',
  442.                                             'properties': {
  443.                                                 'sha': {
  444.                                                     'pattern': '[a-f0-9]{40}',
  445.                                                     'title': 'SHA',
  446.                                                     'type': 'string',
  447.                                                     'format': 'SHA'
  448.                                                 },
  449.                                                 'tag': {
  450.                                                     'type': 'string'
  451.                                                 },
  452.                                                 'number': {
  453.                                                     'type': 'integer',
  454.                                                     'description': 'How many release tags are in your history?'
  455.                                                 }
  456.                                             }
  457.                                         }
  458.                                     }
  459.                                 }
  460.                             },
  461.                             'title': 'RunInfo'
  462.                         },
  463.                         'type': 'array',
  464.                         'title': 'RunInfoArray'
  465.                     },
  466.                     'total': {}
  467.                 }
  468.             }]
  469.         }
  470.     }
  471. }
  472. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement