• Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Oslo Release
    • None
    • NCMP
    • None

      k6 test suite already includes test for single synchronous passthrough read operation:

      GET http://localhost:8883/ncmp/v1/ch/${cmHandleId}/data/ds/${datastoreName}

      This task is to add tests for the write operations POST, PUT, DELETE

      See test case 6 in https://wiki.onap.org/display/DW/CPS-391Spike%3A+Define+and+Agree+NCMP+REST+Interface#CPS391Spike:DefineandAgreeNCMPRESTInterface-Characteristics-WIP

      Presently, the DMI stub has a single delay for all data operations (DATA_FOR_CM_HANDLE_DELAY_MS). We need seperate DMI delays for read and write. The same DMI endpoint is used for all passthrough CRUD operations /v1/ch/{cmHandleId}/data/ds/{datastoreName}. To have different delays, we will need to check if the operation is read or write. The request body contains the information, for example:

      {"operation":"read","cmHandleProperties":{"neType":"RadioNode"},"moduleSetTag":""}

      So the read DMI delay will be used if operation is 'read', otherwise the write delay will be used.

      A/C:

      • A single plot showing requests per second for passthrough write operations (test case 6 in characteristics page)
      • DMI is using the correct delay as in the characteristics page (670ms)

            Unassigned Unassigned
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: