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

Searches endpoint gives back empty list however there are already available cmhandles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Kohn Release
    • Jakarta Release
    • NCMP
    • None

      Current behavior
       
      Searches endpoint gives back empty list even if there are cmhandles in ready state
       
      Tried to query the cmhandles:

      POST https://<ncmp_url>/ncmp/v1/ch/searches

        {
          "conditions": [
          {
            "name": "hasAllModules",
            "conditionParameters": [
              {"moduleName": "ericsson-enm-GNBDU"}
            ]
          }
        ]
        }

        
      POST https://<ncmp_url>/ncmp/v1/ch/searches

        {
          "cmHandleQueryParameters": [
      {       "conditionName": "hasAllModules",       "conditionParameters": [        
      {"moduleName": "ericsson-enm-GNBDU"}
      ,
              {"moduleName": "ericsson-enm-LratEe"}
            ]
          }
        ]
        }

       
       
       id-searches endpoint gives back empty list if we call it with the new filtering:
       POST https://<ncmp_url>/ncmp/v1/ch/id-searches

        {
          "conditions": [
          {
            "name": "hasAllModules",
            "conditionParameters": [
              {"moduleName": "ericsson-enm-GNBDU"}
            ]
          }
        ]
        }

        
        But gives back cmhandles if we call it with old one:
       POST https://<ncmp_url>/ncmp/v1/ch/id-searches

        {
          "cmHandleQueryParameters": [
      {       "conditionName": "hasAllModules",       "conditionParameters": [        
      {"moduleName": "ericsson-enm-GNBDU"}
      ,
              {"moduleName": "ericsson-enm-LratEe"}
            ]
          }
        ]
        }

       ** 
      Expected behavior
      Both searches and id-searches should give back the ready cmhandles

       

      Reproduction

      See current behavior section
       

      CPS version

      https://gerrit.onap.org/r/gitweb?p=cps.git;a=commit;h=060499cb5a89a0fd3d8480132ed82d2e291839dc

            lukegleeson lukegleeson
            csaba.eder csaba Eder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: