Uploaded image for project: 'mod-oai-pmh'
  1. mod-oai-pmh
  2. MODOAIPMH-371

mod-oai-pmh API tests fail due to an issue with assigning permissions to the test user.

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • Firebird Sprint 126
    • 3
    • Firebird

    Description

      Purpose/Overview:
      mod-oai-pmh API tests fail due to an issue with assigning permissions to the test user.
      It seems like the module cannot be enabled for the tenant in API tests flow which causes some permissions to be absent and as a result, required permissions cannot be loaded and assigned to the test user. This problem breaks down all further oai-pmh tests.

      Error log
      status code was: 422, expected: 201, response time in milliseconds: 30, url: http://ec2-34-203-232-219.compute-1.amazonaws.com:9130/perms/users, response:

      {
        "errors" : [ {
          "message" : "Unable to update derived fields: Attempting to add non-existent permissions oai-pmh.all,inventory-storage.all to permission user with id 7c7356bf-0ebd-4ab5-b0b4-75996daaeaa5",
          "type" : "1",
          "code" : "-1",
          "parameters" : [ {
            "key" : "id",
            "value" : "7c7356bf-0ebd-4ab5-b0b4-75996daaeaa5"
          } ]
        } ]
      }
      

      Requirements/Scope:

      1. The issue root cause defined
      2. Tests fixed

      Acceptance criteria:

      • Tests fixed and pass

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Oleksandr_Bozhko Oleksandr Bozhko
                TotoroDev Illia Daliek
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases