-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.0, 1.6.1, 1.8.0
-
Component/s: None
-
Labels:None
-
Environment:
onos -1.6
-
Story Points:2
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"