Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-11470

GET on internal/privilege?_queryFilter=true is returning unexpected attributes with mysql repo

    Details

      Description

      Test admin_can_create_a_privilege_and_user_cannot_delete_it is failing when comparing results of GET request to internal/privilege?_queryFilter=true to expected results

      {
                  'result': [{
                      '_id': 'TestPriv1_id',
                      '_rev': '{{hex-str}}',
                      'name': 'TestPriv1',
                      'description': 'a test privilege',
                      'path': 'managed/user',
                      'permissions': ['VIEW']
                  }]
              }

      because the response body contains additional elements

      {
          "result": [
              {
                  "_id": "TestPriv1_id",
                  "_rev": "0",
                  "name": "TestPriv1",
                  "description": "a test privilege",
                  "path": "managed/user",
                  "permissions": [
                      "VIEW"
                  ],
                  "actions": null,
                  "filter": null,
                  "accessFlags": null
              }
          ]
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                katie.gonzalez Katie Gonzalez
                Reporter:
                markg Mark Gibson
                QA Assignee:
                Garyl Erickson
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: