Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-951

CPS-Core - Integer values returned as float

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Jakarta Release
    • Jakarta Release
    • None
    • None

      Integer values are returned as float. The same issue was fixed in the Istanbul release, it is re-occurring.

      Already reported issue ID: https://jira.onap.org/browse/CPS-591

      Steps to reproduce:

      create dataspace:
      ----------------
      curl -k -H "Content-Type: application/json" -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST http://localhost:8883/cps/api/v1/dataspaces?dataspace-name='E2EDemo'

      Schemaset:
      ---------------
      curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDemo/schema-sets' --form 'file=@"cps-cavsta-onap-internal@2021-01-28.yang"' --form 'schema-set-name="ran-coverage-area"'

      Anchor:
      ---------
      curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDemo/anchors?schema-set-name='ran-coverage-area'&anchor-name='coverage-area-onap''

      Initial data:
      ------------
      curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDemo/anchors/coverage-area-onap/nodes' \
      --header 'Content-Type: application/json' -d @cavstareq.json

      GET API:
      -----------
      curl -g -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request GET 'http://localhost:8883/cps/api/v1/dataspaces/E2EDemo/anchors/coverage-area-onap/nodes/query?cps-path=//coverageAreaTAList[@nRTAC=101]&include-descendants=true'

      Response received:
      ----------------------
      [{
      "nRTAC": 101.0,
      "taCellsList": [

      { "cellLocalId": 15290.0 }

      ,

      { "cellLocalId": 15289.0 }

      ,

      { "cellLocalId": 15296.0 }

      ]
      }]

            lukegleeson lukegleeson
            ahilap ahilap
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: