Skip to content

Instantly share code, notes, and snippets.

@cneill
Last active August 24, 2016 23:45
Show Gist options
  • Save cneill/a511451284a0c5f33295477150bd94d4 to your computer and use it in GitHub Desktop.
Save cneill/a511451284a0c5f33295477150bd94d4 to your computer and use it in GitHub Desktop.

Top-Level

{
  "errors": [ ErrorObjects ],
  "failures": [ FailureObjects ],
  "stats": {
    "severity": {
      "HIGH": 0,
      "MEDIUM": 0,
      "LOW": 0,
      "UNDEFINED": 0
    }
  }
}

ErrorObject

{
  "error": "text",
  "test": "test"
}

FailureObject

{
  "url": "host.com/blah",
  "type": "500_error",
  "description": "500 errors r bad, mkay?",
  "failure_id": 1234,
  "instances": [
    {
      "confidence": "HIGH",
      "param": {
        "location": "headers",
        "method": "POST",
        "variables": [
          "Content-Type"
        ]
      },
      "strings": [
        "derp"
      ],
      "severity": "LOW",
      "signals": {
        "diff_signals": [],
        "init_signals": [],
        "test_signals": []
      }
    }
  ]
}
@cneill
Copy link
Author

cneill commented Aug 24, 2016

Updated to use "failure_id" instead of "test_id"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment