alaCarteSet unrecognized field 41/19141/1
authorRob Daugherty <rd472p@att.com>
Mon, 16 Oct 2017 22:05:26 +0000 (18:05 -0400)
committerRob Daugherty <rd472p@att.com>
Mon, 16 Oct 2017 22:12:20 +0000 (18:12 -0400)
commite34e4d0df23d1919fd9630ba34a8659279086908
treea874cca335abb3489f923c7f8f59516b6e86ede6
parent09c8a0f61868c69315115156447b34acaf907bad
alaCarteSet unrecognized field

The aLaCarte and aLaCarteSet fields in RequestParameters class
and their corresponsding methods are not consistently named,
and thus they are not serialized/deserialized correctly by
the Jackson JSON utilities.

We were seeing this sort of thing in the requests database:

"requestParameters": {
  "subscriptionServiceType": "vFW",
  "aLaCarte": true,
  "autoBuildVfModules": false,
  "cascadeDelete": false,
  "usePreload": true,
  "rebuildVolumeGroups": false,
  "alaCarteSet": true,
  "alaCarte": true
}

We obviously shouldn't have "alaCarte" as well as "aLaCarte".
And I don't think we want "alaCarteSet" to be persisted in the
DB at all (it should be ignored by the JSON mapper).

Issue: SO-219
Change-Id: Ia943d2970cb7db153f3af73289f426a154917f7e
Signed-off-by: Rob Daugherty <rd472p@att.com>
mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/MsoRequest.java
mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/ServiceInstances.java
mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/serviceinstancebeans/RequestParameters.java
mso-api-handlers/mso-api-handler-infra/src/test/java/org/openecomp/mso/apihandlerinfra/MsoRequestTest.java