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

[ONOS-YMS-TEST] Error inconsistency for types when invalid value is input

    XMLWordPrintable

    Details

      Description

      Error returned for invalid values of all types are not consistent.

      { "code": 500, "message": "YANG file error : 256 is greater than maximum value 255." }

      {
      "cont":

      { "lfint8Min": -128, "lfbool1": false, "lfint8Max": 127, "lfint16Min": -32768, "lfint16Max": 32767, "lfint32Min": -2147483648, "lfint32Max": 2147483647, "lfint64Min": -9223372036854775808, "lfuint8Max": 256 <<<<<<<<<<<<<<<<<<<<<<< }

      }

      { "code": 500, "message": "YANG file error : Input value \"128\" is not a valid int8." }

      {
      "cont":

      { "lfint8Min": -128, "lfbool1": false, "lfint8Max": 128, <<<<<<<<<<<<<<<<<< "lfint16Min": -32768, "lfint16Max": 32767, "lfint32Min": -2147483648, "lfint32Max": 2147483647, "lfint64Min": -9223372036854775808, "lfuint8Max": 255 }

      }

      { "code": 500, "message": "YANG file error : 18446744073709551616 is greater than maximum value 18446744073709551615." }

      {
      "cont":

      { "lfint8Min": -128, "lfbool1": false, "lfint8Max": 127, "lfint16Min": -32768, "lfint16Max": 32767, "lfint32Min": -2147483648, "lfint32Max": 2147483647, "lfint64Min": -9223372036854775808, "lfuint8Max": 255, "lfuint16Max": 65535, "lfuint32Max": 4294967295, "lfuint64Max": 18446744073709551616 <<<<<<<<<<<<<<< }

      }

      {
      "cont":

      { "lfint8Min": -128, "lfbool1": false, "lfint8Max": 127, "lfint16Min": -32768, "lfint16Max": 32767, "lfint32Min": -2147483648, "lfint32Max": 2147483647, "lfint64Min": -9223372036854775808, "lfuint8Max": 255, "lfuint16Max": 65535, "lfuint32Max": 4294967295, "lfuint64Max": 18446744073709551615, "lfstr": "Testing", "lfstr1": "Testing", <<<<<<<<<<<<<<< length is 2 "lfdecimal1": -92233720368547758.08, "lfdecimal2": 92233720368547758.07 }

      }

        Attachments

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

          Activity

            People

            Assignee:
            gauravagrawal Gaurav Agrawal
            Reporter:
            huawei-adarsh Adarsh m
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: