Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-5296

metrics REST API (GET /metrics/{metricName}) results in NPE when the metric name is given wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 1.7.0, 1.8.0
    • Fix Version/s: 1.6.0, 1.7.0, 1.8.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      onos-1.7

    • Story Points:
      2

      Description

      1. GET metric by using GET /metrics/

      {metricName}

      REST API
      2. Provide wrong metric name that is not supported
      3. Resulting nullpointer exception.

      Expected Output
      1. It should throw exception like "Metric Name Not Found/Not Supported"

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jayasree Jayasree Ghosh
            Reporter:
            jayasree Jayasree Ghosh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: