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

Issue With Meters REST API- DROP Type causing NPE,Wrong UNIT Type & Meter Type not throwing Exception on Response Body to prevent to create meter with Wrong Band Type Or Wrong Unit type

    XMLWordPrintable

    Details

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

      onos -1.6

    • Story Points:
      2

      Description

      1. Create a meter by Using meters REST API - POST /meters/

      {deviceId}

      2. Create Meter Of Wrong Type or a BAND of wrong type leads to NPE

      { "code": 500, "message": "com.google.common.base.Preconditions.checkNotNull(Preconditions.java:212)" }

      3. Create Meter Of Wrong UNIT Type leads to craeting meter of wrong Unit type.

      Expected Result:

      1. In case of Wrong Band Type, it should throw exception like "he requested type is not defined for meter".
      2. In case of "DROP" Band Type, it should create a meter without precedence.
      3. In case of Wrong Unit Type, It should throw exception like "he requested unit is not defined for meter"

        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: