Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7409

Ability: get latest PDX configuration of cluster in REST API for Management

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: management, rest (admin)
    • Labels:
      None

      Description

          1. WHY
            1. need to show the latest PDX configuration to customer for check and validation
            1. need to know the latest PDX configuration, as an input for next updates
          1. WHAT
            1. endpoint: `management/v1/configurations/pdx`
          1. Acceptance Criteria
      • Scenario: show default config, configuration equals to runtimeInfo
      • Scenario: show latest config, configuration does *NOT* equal to runtimeInfo

      ```gherkin
      Scenario: show default config, configuration equals to runtimeInfo
      Given REST API for Management is turned on on a cluster
      AND A&A
      AND a customer has permission of `CLUSTER:READ`
      When the customer run [get] `management/v1/configurations/pdx`
      Then he can find the latest configuration
      ```

      ```gherkin
      Scenario: show latest config, configuration does *NOT* equal to runtimeInfo
      Given REST API for Management is turned on on a cluster
      AND A&A
      AND a customer has permission of `CLUSTER:READ`
      When the customer run [get] `management/v1/configurations/pdx`
      Then he can find the latest configuration, even it does not equals to runtimeInfo
      ```

      *Notes:*
      1. response body:
      ```JSON
      {
      "statusCode": "OK",
      "result": [
      {
      "configuration":

      { "diskStoreName": "name1", "ignoreUnreadFields": true, "pdxSerializer": "fullpath.className1", "persistent": true, "readSerialized": true }

      ,
      "runtimeInfo":

      { "diskStoreName": "name2", "ignoreUnreadFields": true, "pdxSerializer": "fullpath.className2", "persistent": true, "readSerialized": true }

      ,
      "links":

      { "self": "http://127.0.0.1:7070/management/v1/configurations/pdx" }

      }
      ]
      }
      ```

        Attachments

          Activity

            People

            • Assignee:
              echobravo Ernest Burghardt
              Reporter:
              gyan Gang Yan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 10m
                2h 10m